Bech32 conventions for Cardano: the CIP-5 human-readable prefix table for keys, hashes, and addresses; and the CIP-14 asset fingerprint computation.
use pallas_bech32::cip14::AssetFingerprint;
let fp = AssetFingerprint::from_parts(
"7eae28af2208be856f7a119668ae52a49b73725e326dc16579dcc373",
"",
)?;
assert_eq!(fp.finger_print()?, "asset1rjklcrnsdzqp65wjgrg55sy9723kw09mlgvlc3");cip5—KEYS,HASHES, andMISCELLANEOUSconstants holding the bech32 HRPs assigned by CIP-5 (e.g.addr,stake,pool,vrf_vk).cip14—AssetFingerprintbuilds and prints theasset1…fingerprint for a (policy id, asset name) pair.