The resolution.
A copy of the key.
A copy of the hash, which commits to the next mark's key.
A copy of the chain id.
A copy of the sequence number's bytes.
A copy of the date's bytes.
The sequence number.
A copy of the date, at the resolution's precision.
The info CBOR, freshly decoded, if the mark carries any.
The wire message.
Sequence 0 with the key equal to the chain id.
The 32-byte Mark ID: the hash, filled from the fingerprint at resolutions whose hash is shorter.
The Mark ID as 64 hex characters.
StaticcodecThe tagged-CBOR codec: encode is toCbor, decode is fromCbor.
StaticfromA mark from its parts; the hash is computed. The key, next key and
chain id must be Uint8Arrays (a TypeError otherwise) of the
resolution's link length, the sequence number must fit the resolution,
the date must be one the resolution encodes.
StaticfromA mark from its wire message at a resolution: key ‖ obfuscated payload.
SHA-256 of the tagged CBOR.
The Mark ID as upper-case bytewords: wordCount words (4 by default,
at most 32), led by 🅟 when prefix is set. A wordCount outside 4
to 32, or not an integer, is a RangeError where the reference
asserts.
The Mark ID as bytemoji, otherwise as idBytewords.
The Mark ID as minimal bytewords (two letters a byte), otherwise as idBytewords.
StaticdisambiguatedBytewords identifiers for a set of marks, each only as long as it must be to differ from the others: four words unless two IDs share a prefix.
StaticdisambiguatedBytemoji identifiers for a set of marks, as disambiguatedIdBytewords.
Throws Validation, whose details.issue says why next does not
follow this mark: a genesis in second place, a sequence gap, a date
going backwards, or a hash that does not commit to next's key.
StaticisWhether each mark precedes the next; at least two marks, a genesis first if at 0.
The message as bytewords: standard (space-separated words) unless
uri (hyphens) or minimal (two letters a word) is given.
StaticfromStandard bytewords at a resolution; a decode failure is Bytewords.
The provenance query parameter: minimal bytewords of the tagged CBOR.
StaticfromThe provenance query parameter, parsed; a decode failure is Bytewords or Cbor.
base with the mark appended as a provenance query parameter. The
pair is appended to the query text as it stands, as the reference's
append_pair does: nothing else is re-encoded, and an existing
provenance parameter is kept (fromUrl then reads the first). A
base that is not a URL is Url.
StaticfromThe mark in the URL's first provenance query parameter. A string is
parsed first (a failure is Url); a URL without the parameter is
MissingUrlParameter.
[res, message].
Tag provenance (1347571542) over [res, message].
[TAG_PROVENANCE_MARK].
StaticfromThe tagged CBOR, decoded; the tag is required. A rejection is Cbor
with the dcbor error's message (expected CBOR tag provenance, but got …, the decoded CBOR value was not the expected type, …).
Staticfrom[res, message], decoded; a rejection is Cbor with the dcbor error's message.
Staticfromur:provenance/… over the untagged CBOR.
StaticfromThe mark a provenance UR carries. A UR of another type is Cbor
(expected UR type provenance, but found …), as is a body that does
not decode.
A leaf envelope holding the tagged CBOR.
StaticfromThe mark in the envelope's subject leaf. A subject that is not a
leaf, or a leaf that is not a mark, is Cbor.
seq, date, res, chain_id, key, hash[, info_bytes], as the reference serialises.
StaticfromThe JSON shape, read strictly: every field required but info_bytes,
the resolution its wire number, the date RFC 3339 or YYYY-MM-DD,
bytes in base64. Any fault is Json, worded as serde words it.
ProvenanceMark(<idHex>).
Every field, as the reference's Debug: hex bytes, the sequence, the
date display (the date alone at midnight) and the info in diagnostic
notation.
One link of a provenance chain: a key, the hash committing to the next key, the chain id, a sequence number, a date and optional CBOR info, laid out per its resolution. Frozen: every accessor returns a copy.