pg_cardano
pg_cardano · A suite of Cardano-related tools
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2920 | pg_cardano | pg_cardano | 1.2.1 | 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 |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| el8.aarch64 | N/A | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| el9.x86_64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| el9.aarch64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| el10.x86_64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| el10.aarch64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| d12.x86_64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| d12.aarch64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| d13.x86_64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| d13.aarch64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| u22.x86_64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| u22.aarch64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| u24.x86_64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| u24.aarch64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| u26.x86_64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
| u26.aarch64 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 | PIGSTY 1.2.1 |
Source
github.com/cardano-community/pg_cardano
pg_cardano-1.2.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
pg_cardano 1.2.2 provides Cardano-oriented binary and cryptographic functions from the cardano-community repository. This release documents PostgreSQL 15–19 and pgrx 0.20.1.
Core Workflow
Installation requires a superuser; the extension is non-relocatable and does not need preload. Its functions are exposed in the cardano schema.
Functions and Boundaries
The API covers Base58 and Bech32 encoding/decoding, CBOR and JSONB conversion, Blake2b hashing, Ed25519 signing/verification, CIP-105/CIP-129 dRep helpers, Shelley address construction/parsing, asset-name conversion and CIP-88 validation.
The simple CBOR conversion is intentionally lossy for some constructs. Use cardano.cbor_decode_jsonb_ext and cardano.cbor_encode_jsonb_ext with their documented typed JSON representation when structural preservation matters. Cryptographic functions do not provide key storage or access control; restrict sensitive inputs and application privileges separately.
Select binaries matching the PostgreSQL major and CPU architecture. Check the actual installed SQL update paths before updating an existing database; the same source version on two forks is not evidence that their installation files are interchangeable.
1.2.2 Verification Fixes
The release tightens CIP-88 pool-key authorization, pool identifiers, nonce validation, COSE witnesses and signed-payload checks, while processing CBOR natively in this path. Recheck application expectations for previously accepted malformed registrations. Install matching binaries; the supplied 1.2.1-to-1.2.2 SQL transition has no object changes.