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

    Class UUID

    Implements

    • CborTaggedEncodable
    • CborTaggedDecodable<UUID>
    • UREncodable
    Index

    Properties

    UUID_SIZE: 16 = UUID_SIZE

    Methods

    • Create a UUID from string representation (standard UUID format) Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

      Parameters

      • uuidString: string

      Returns UUID

    • Get standard UUID string representation. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

      Returns string

    • Returns the CBOR tags associated with UUID.

      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 a UUID by decoding it from untagged CBOR.

      Parameters

      • cbor: Cbor

      Returns UUID

    • Creates a UUID by decoding it from tagged CBOR.

      Parameters

      • cbor: Cbor

      Returns UUID

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

      Returns UR

    • Returns the UR string representation.

      Returns string