• 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

    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.

    Throws

    • If an unsupported CBOR encoding is specified.

    Returns

    The CBOR encoded representation of the token holder.

    Parameters

    • value: TokenHolderAccount

      The token holder to convert to CBOR format.

    Returns Uint8Array

Generated using TypeDoc