| License | Apache-2.0 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
Singular.Registry.AssetName
Contents
Description
Derives a unique asset name from an output reference,
matching Aiken's lib.assetName:
SHA2-256(txId ++ bigEndian16(outputIndex))
Synopsis
- deriveAssetName :: OnChainTxOutRef -> ByteString
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))