pg_cardano
A suite of Cardano-related tools
pg_cardano : A suite of Cardano-related tools
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2920 | pg_cardano | pg_cardano | 1.2.0 |
FEAT | MIT | Rust |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| See Also | pgsodium pgcrypto shacrypt cryptint pguecc pgcryptokey hashlib md5hash hashtypes xxhash |
PG18 fix by https://github.com/Vonng/pg_cardano.
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.2.0 |
18 17 16 15 14 | pg_cardano |
- |
| RPM | PIGSTY | 1.2.0 |
18 17 16 15 14 | pg_cardano_$v |
- |
| DEB | PIGSTY | 1.2.0 |
18 17 16 15 14 | postgresql-$v-pg-cardano |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| el8.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| el9.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| el9.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| el10.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| el10.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| d12.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| d12.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| d13.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| d13.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| u22.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| u22.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| u24.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| u24.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.1.1 |
| u26.x86_64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| u26.aarch64 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | PIGSTY 1.2.0 | N/A |
| Package | Version | OS | ORG | SIZE | File URL |
|---|---|---|---|---|---|
postgresql-14-pg-cardano |
1.1.1 |
d12.x86_64 | pigsty | 445.3 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~bookworm_amd64.deb |
postgresql-14-pg-cardano |
1.1.1 |
d12.aarch64 | pigsty | 311.5 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~bookworm_arm64.deb |
postgresql-14-pg-cardano |
1.1.1 |
d13.x86_64 | pigsty | 445.1 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~trixie_amd64.deb |
postgresql-14-pg-cardano |
1.1.1 |
d13.aarch64 | pigsty | 311.6 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~trixie_arm64.deb |
postgresql-14-pg-cardano |
1.1.1 |
u22.x86_64 | pigsty | 494.2 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~jammy_amd64.deb |
postgresql-14-pg-cardano |
1.1.1 |
u22.aarch64 | pigsty | 357.0 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~jammy_arm64.deb |
postgresql-14-pg-cardano |
1.1.1 |
u24.x86_64 | pigsty | 488.4 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~noble_amd64.deb |
postgresql-14-pg-cardano |
1.1.1 |
u24.aarch64 | pigsty | 351.9 KiB | postgresql-14-pg-cardano_1.1.1-1PIGSTY~noble_arm64.deb |
Source
github.com/Fell-x27/pg_cardano
pg_cardano-1.2.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
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.