Rebuild a Cardano asset fingerprint from policy and name bytes
An asset fingerprint gives a compact display identifier for a native asset. A mismatch often comes from hashing printable hexadecimal text instead of its decoded bytes.
Concatenate the raw identity
Decode the 28-byte policy ID from hex and append the exact asset-name bytes. Compute BLAKE2b with a 20-byte output and encode the result using Bech32 with the asset prefix.
asset1… = bech32("asset", blake2b_160(policy_bytes || asset_name_bytes))
An asset name encoded as hex 4142 contributes the two bytes for AB. Appending the four ASCII characters 4142 gives a different fingerprint. A zero-length asset name contributes no additional bytes.
Retain the full identity for ledger operations
Fingerprints are for comparing and displaying assets. The ledger identifies a native asset by policy ID and asset-name bytes. Store both originals and the network when preparing transfers or reconciling balances. cips.cardano.org Cardano CIP-14