Module kilt_asset_dids::asset::v1
source · Structs
- An asset reference that is identifiable only by an EVM smart contract (e.g., a fungible token). It is a modification of the CAIP-21 spec according to the rules defined in the Asset DID method specification.
- An asset identifier for an EVM smart contract collection (e.g., an NFT instance). Since the identifier can be up to 78 characters long of an unknown alphabet, this type simply contains the UTF-8 encoding of such an identifier without applying any special parsing/decoding logic.
- An asset reference that is identifiable by an EVM smart contract and an optional identifier (e.g., an NFT collection or instance thereof). It is a modification of the CAIP-22 spec and CAIP-29 spec according to the rules defined in the Asset DID method specification.
- A generic asset ID compliant with the CAIP-19 spec that cannot be boxed in any of the supported variants.
- A generic asset identifier as defined in the CAIP-19 spec.
- A generic asset namespace as defined in the CAIP-19 spec. It stores the provided UTF8-encoded namespace without trying to apply any parsing/decoding logic.
- A generic asset reference as defined in the CAIP-19 spec.
- A Slip44 asset reference. It is a modification of the CAIP-20 spec according to the rules defined in the Asset DID method specification.
Enums
- The Asset ID component as specified in the Asset DID specification.
Constants
- Namespace for Erc20 assets.
- Namespace for Erc721 assets.
- Namespace for Erc1155 assets.
- The maximum length of a valid asset ID reference.
- The maximum length, including separator symbols, an asset ID can have according to the minimum values defined by the CAIP-19 definition.
- The maximum length of a valid asset ID reference.
- The maximum length of a valid asset ID namespace.
- The minimum length of a valid asset ID identifier.
- The minimum length, including separator symbols, an asset ID can have according to the minimum values defined by the CAIP-19 definition.
- The minimum length of a valid asset ID namespace.
- The minimum length of a valid asset ID reference.
- Namespace for Slip44 assets.