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

    Class URI

    Implements

    • CborTaggedEncodable
    • CborTaggedDecodable<URI>
    • UREncodable
    Index

    Methods

    • Check if URI starts with given prefix.

      Parameters

      • prefix: string

      Returns boolean

    • Returns the CBOR tags associated with URI.

      Returns Tag[]

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

      Returns Cbor

    • Returns the tagged CBOR encoding.

      Returns Cbor

    • Returns the tagged value in CBOR binary representation.

      Returns Uint8Array

    • Creates a URI by decoding it from untagged CBOR.

      Parameters

      • cborValue: Cbor

      Returns URI

    • Creates a URI by decoding it from tagged CBOR.

      Parameters

      • cborValue: Cbor

      Returns URI

    • Static method to decode from tagged CBOR binary data.

      Parameters

      • data: Uint8Array

      Returns URI

    • Static method to decode from untagged CBOR binary data.

      Parameters

      • data: Uint8Array

      Returns URI

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

      Returns UR

    • Returns the UR string representation.

      Returns string