singular-registry
LicenseApache-2.0
Safe HaskellNone
LanguageGHC2021

Singular.Registry.AssetName

Description

Derives a unique asset name from an output reference, matching Aiken's lib.assetName:

SHA2-256(txId ++ bigEndian16(outputIndex))
Synopsis

Asset-name derivation

deriveAssetName :: OnChainTxOutRef -> ByteString Source #

Derive the asset name from an output reference, matching Aiken's lib.assetName:

SHA2-256(txId ++ bigEndian16(outputIndex))