pg_cardano
A suite of Cardano-related tools
Repository
Fell-x27/pg_cardano
https://github.com/Fell-x27/pg_cardano
Source
pg_cardano-1.2.0.tar.gz
pg_cardano-1.2.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_cardano | 1.2.0 | FEAT | MIT | Rust |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2920 | pg_cardano | No | Yes | No | Yes | No | No | - |
PG18 fix by https://github.com/Vonng/pg_cardano.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.2.0 | 1817161514 | pg_cardano | - |
| RPM | PIGSTY | 1.2.0 | 1817161514 | pg_cardano_$v | - |
| DEB | PIGSTY | 1.2.0 | 1817161514 | postgresql-$v-pg-cardano | - |
Build
You can build the RPM / DEB packages for pg_cardano using pig build:
Install
You can install pg_cardano directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Sources: README, Cargo.toml version 1.2.0, releases page
pg_cardano is a Rust extension for Cardano-oriented binary and crypto utilities inside PostgreSQL. The upstream repo does not publish GitHub releases or tags, but the current crate version on the default branch is 1.2.0.
Core Capabilities
- Base58 encode/decode.
- Bech32 encode/decode.
- CBOR to and from
jsonb, with both simple and extended pipelines. - Blake2b hashing.
- Ed25519 signing and signature verification.
- dRep ID helpers for CIP-105 and CIP-129.
- Shelley address builders and parsers.
- Asset-name decoding and CIP-88 pool key registration verification.
Common Patterns
Base58 and Bech32:
CBOR conversion:
Hashing and signatures:
Address and governance helpers:
Caveats
- Upstream documents PostgreSQL 12+ and Linux builds via
pgrx, but the current crate features and this repo’s package matrix target PostgreSQL 15 through 18, withpg18as the default feature. - This repo packages
pg_cardano1.2.0 withpgrx0.17.0 and the PG18 fix noted inextension.csv. - The simple CBOR helpers are intentionally lossy for some CBOR constructs; use the
*_extfunctions when exact structural round-tripping matters.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)