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.
A compact 8-letter identifier derived from the upper-case ByteWords identifier by taking the first and last letter of each ByteWords word (4 words x 2 letters = 8 letters).
Example: "ABLE ACID ALSO APEX" -> "AEADAOAX" If prefix is true, prepends the provenance mark prefix character.
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.
Errors carry a structured validationIssue in their details, matching Rust's
Error::Validation(ValidationIssue) pattern.
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.
StaticfromStaticvalidateValidate a collection of provenance marks.
Matches Rust: ProvenanceMark::validate() which delegates to
ValidationReport::validate().
Convert this provenance mark to a Gordian Envelope.
Creates a leaf envelope containing the tagged CBOR representation.
Matches Rust: Envelope::new(mark.to_cbor()) which creates a CBOR leaf.
StaticfromExtract a ProvenanceMark from a Gordian Envelope.
Matches Rust: envelope.subject().try_leaf()?.try_into()
The envelope to extract from
The extracted provenance mark
A cryptographically-secured provenance mark.