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

    Class ProvenanceMark

    A cryptographically-secured provenance mark.

    Index

    Methods

    • Returns Uint8Array

    • Returns Uint8Array

    • Returns Uint8Array

    • Returns Uint8Array

    • Returns Uint8Array

    • Get the message (serialized bytes) of this mark.

      Returns Uint8Array

    • Get the info field as CBOR, if present.

      Returns Cbor | undefined

    • Get the first four bytes of the hash as a hex string identifier.

      Returns string

    • Get the first four bytes of the hash as upper-case ByteWords.

      Parameters

      • prefix: boolean

      Returns string

    • Get the first four bytes of the hash as Bytemoji.

      Parameters

      • prefix: boolean

      Returns string

    • Check if this is a genesis mark (seq 0 and key equals chain_id).

      Returns boolean

    • Encode as bytewords with the given style.

      Parameters

      • style: BytewordsStyle

      Returns string

    • Encode as standard bytewords.

      Returns string

    • Encode for URL (minimal bytewords of tagged CBOR).

      Returns string

    • Get the UR string representation (e.g., "ur:provenance/...").

      Returns string

    • Build a URL with this mark as a query parameter.

      Parameters

      • base: string

      Returns URL

    • Get the untagged CBOR representation.

      Returns Cbor

    • Get the tagged CBOR representation.

      Returns Cbor

    • Serialize to CBOR bytes (tagged).

      Returns Uint8Array

    • Get the fingerprint (SHA-256 of CBOR data).

      Returns Uint8Array

    • Debug string representation.

      Returns string

    • Detailed debug representation. Matches Rust format exactly for parity.

      Returns string

    • JSON serialization.

      Returns Record<string, unknown>

    • Convert this provenance mark to a Gordian Envelope.

      The envelope contains the tagged CBOR representation of the mark.

      Note: Use provenanceMarkToEnvelope() for a standalone function alternative.

      Returns Envelope$1

    • Extract a ProvenanceMark from a Gordian Envelope.

      Parameters

      • envelope: Envelope$1

        The envelope to extract from

      Returns ProvenanceMark

      The extracted provenance mark

      ProvenanceMarkError if extraction fails