mumak
mumak · Cardano CBOR parser
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100804 | mumak | mumak | 0.0.6 | UTIL | Apache-2.0 | Rust |
PostgreSQL · 11, 12, 13, 14, 15, 16
Usage
Sources:
- Project README
- Implemented function list in Rust
- Function documentation
- Extension control file
- Extension Cargo manifest
mumak 0.0.6 is a pgrx extension for inspecting Cardano CBOR inside PostgreSQL. It lets an indexer keep blocks, transactions, or UTxOs as bytea and derive hashes, addresses, fees, lovelace and asset amounts, metadata, Plutus data, epochs, slots, and other fields in SQL without first normalizing every structure.
Verify installation and query CBOR
Implemented function families include block_tx_count(bytea), block_number(bytea), tx_hash(bytea), tx_inputs(bytea), tx_outputs(bytea), tx_is_valid(bytea), utxo_lovelace(integer,bytea), and address/Bech32 conversion helpers. Use the Rust implementation as the API authority: the top-level README contains planned names that do not exactly match all functions shipped in 0.0.6.
Input and deployment cautions
Many decode failures return sentinel results such as an empty value, false, zero, or -1 instead of raising an error. Validate CBOR and its era/network context before treating those results as blockchain facts. The control file requires superuser installation. The reviewed Cargo features cover PostgreSQL 11 through 16, and the project publishes only source and limited Linux artifact guidance; build and regression-test the exact server/architecture combination.