Get the message (serialized bytes) of this mark.
Get the info field as CBOR, if present.
StaticnewCreate a new provenance mark.
Optionalinfo: CborStaticfromCreate a provenance mark from a serialized message.
Get the first four bytes of the hash as a hex string identifier.
Get the first four bytes of the hash as upper-case ByteWords.
Get the first four bytes of the hash as Bytemoji.
Check if this mark precedes another mark in the chain.
Check if this mark precedes another mark, throwing on validation errors.
StaticisCheck if this is a genesis mark (seq 0 and key equals chain_id).
Encode as bytewords with the given style.
Encode as standard bytewords.
StaticfromDecode from bytewords.
Encode for URL (minimal bytewords of tagged CBOR).
StaticfromGet the UR string representation (e.g., "ur:provenance/...").
StaticfromBuild a URL with this mark as a query parameter.
StaticfromGet the untagged CBOR representation.
Get the tagged CBOR representation.
Serialize to CBOR bytes (tagged).
StaticfromStaticfromStaticfromGet the fingerprint (SHA-256 of CBOR data).
Debug string representation.
Detailed debug representation. Matches Rust format exactly for parity.
JSON serialization.
StaticfromConvert 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.
StaticfromExtract a ProvenanceMark from a Gordian Envelope.
The envelope to extract from
The extracted provenance mark
A cryptographically-secured provenance mark.