Converts an TokenHolder to its CBOR (Concise Binary Object Representation) encoding. This encodes the account address as a CBOR tagged value with tag 40307, containing both the coin information (tagged as 40305) and the account's decoded address.
This corresponds to a concordium-specific subtype of the tagged-address type from [BCR-2020-009]https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-009-address.md, identified by tagged-coininfo corresponding to the Concordium network from [BCR-2020-007]https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-007-hdkey.md
tagged-address
tagged-coininfo
Example of CBOR diagnostic notation for an encoded account address:
40307({ 1: 40305({1: 919}), 3: h'abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789'})
Where 919 is the Concordium network identifier and the hex string is the raw account address.
The CBOR encoded representation of the token holder.
The token holder to convert to CBOR format.
Generated using TypeDoc
Converts an TokenHolder to its CBOR (Concise Binary Object Representation) encoding. This encodes the account address as a CBOR tagged value with tag 40307, containing both the coin information (tagged as 40305) and the account's decoded address.
This corresponds to a concordium-specific subtype of the
tagged-address
type from [BCR-2020-009]https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-009-address.md, identified bytagged-coininfo
corresponding to the Concordium network from [BCR-2020-007]https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-007-hdkey.mdExample of CBOR diagnostic notation for an encoded account address:
Where 919 is the Concordium network identifier and the hex string is the raw account address.
Throws
Returns
The CBOR encoded representation of the token holder.