Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Class ARID

    Implements

    • CborTaggedEncodable
    • CborTaggedDecodable<ARID>
    • UREncodable
    Index

    Properties

    ARID_SIZE: 32

    Methods

    • Create a new ARID from the given hexadecimal string.

      Parameters

      • hex: string

      Returns ARID

      Error if the string is not exactly 64 hexadecimal digits.

    • Returns the CBOR tags associated with ARID.

      Returns Tag[]

    • Returns the untagged CBOR encoding (as a byte string).

      Returns Cbor

    • Returns the tagged CBOR encoding.

      Returns Cbor

    • Returns the tagged value in CBOR binary representation.

      Returns Uint8Array

    • Creates an ARID by decoding it from untagged CBOR.

      Parameters

      • cbor: Cbor

      Returns ARID

    • Creates an ARID by decoding it from tagged CBOR.

      Parameters

      • cbor: Cbor

      Returns ARID

    • Returns the UR representation of the ARID. Note: URs use untagged CBOR since the type is conveyed by the UR type itself.

      Returns UR

    • Returns the UR string representation.

      Returns string