SCITT R. Bryce Internet-Draft Intended status: Standards Track J. Geater Expires: 2 June 2027 29 November 2026 COSE Receipts for MMRs draft-ietf-scitt-receipts-mmr-profile-01 Abstract This document defines a new verifiable data structure type for COSE Receipts (RFC 9942) specifically for use with ledgers based on post- order traversal binary Merkle trees and which are designed for high throughput, ease of replication and compatibility with commodity cloud storage. Post-order traversal binary Merkle trees, also known as history trees, are more commonly known as Merkle Mountain Ranges. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 2 June 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Bryce & Geater Expires 2 June 2027 [Page 1] Internet-Draft COSE Receipts for MMRs November 2026 This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 4 3. Description of the Verifiable Data Structure . . . . . . . . 4 4. Leaf Values . . . . . . . . . . . . . . . . . . . . . . . . . 5 4.1. Entries . . . . . . . . . . . . . . . . . . . . . . . . . 6 4.2. Transparency service leaf data . . . . . . . . . . . . . 6 4.3. leaf_value . . . . . . . . . . . . . . . . . . . . . . . 7 5. Inclusion Proofs . . . . . . . . . . . . . . . . . . . . . . 7 5.1. inclusion_proof_path . . . . . . . . . . . . . . . . . . 8 6. COSE Receipt of Inclusion . . . . . . . . . . . . . . . . . . 9 6.1. Verifying the Receipt of inclusion . . . . . . . . . . . 11 6.2. included_root . . . . . . . . . . . . . . . . . . . . . . 12 7. Consistency Proof . . . . . . . . . . . . . . . . . . . . . . 13 7.1. consistency_proof_paths . . . . . . . . . . . . . . . . . 14 8. COSE Receipt of Consistency . . . . . . . . . . . . . . . . . 15 8.1. Verifying the Receipt of consistency . . . . . . . . . . 16 8.1.1. consistent_roots . . . . . . . . . . . . . . . . . . 18 9. Appending a leaf . . . . . . . . . . . . . . . . . . . . . . 20 9.1. add_leaf_hash . . . . . . . . . . . . . . . . . . . . . . 21 9.2. Node values . . . . . . . . . . . . . . . . . . . . . . . 22 9.2.1. hash_pospair64 . . . . . . . . . . . . . . . . . . . 23 10. Essential supporting algorithms . . . . . . . . . . . . . . . 23 10.1. index_height . . . . . . . . . . . . . . . . . . . . . . 23 10.2. peaks . . . . . . . . . . . . . . . . . . . . . . . . . 24 10.3. leaf_count . . . . . . . . . . . . . . . . . . . . . . . 24 10.4. mmr_size_for_leaf_count . . . . . . . . . . . . . . . . 25 11. Privacy Considerations . . . . . . . . . . . . . . . . . . . 26 12. Security Considerations . . . . . . . . . . . . . . . . . . . 26 12.1. Leaf value separation . . . . . . . . . . . . . . . . . 26 12.2. Declared tree sizes . . . . . . . . . . . . . . . . . . 26 12.3. The empty tree as trusted state . . . . . . . . . . . . 27 12.4. Hash algorithm . . . . . . . . . . . . . . . . . . . . . 27 13. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 27 13.1. Additions to Existing Registries . . . . . . . . . . . . 27 13.1.1. COSE Verifiable Data Structure Algorithms . . . . . 27 13.1.2. COSE Verifiable Data Structure Proofs . . . . . . . 27 13.1.3. COSE Header Parameters . . . . . . . . . . . . . . . 28 Bryce & Geater Expires 2 June 2027 [Page 2] Internet-Draft COSE Receipts for MMRs November 2026 13.2. New Registries . . . . . . . . . . . . . . . . . . . . . 28 14. References . . . . . . . . . . . . . . . . . . . . . . . . . 28 14.1. Normative References . . . . . . . . . . . . . . . . . . 28 14.2. Informative References . . . . . . . . . . . . . . . . . 29 Appendix A. Leaf value examples . . . . . . . . . . . . . . . . 30 Appendix B. Assumed bit primitives . . . . . . . . . . . . . . . 31 B.1. log2floor . . . . . . . . . . . . . . . . . . . . . . . . 31 B.2. most_sig_bit . . . . . . . . . . . . . . . . . . . . . . 31 B.3. bit_length . . . . . . . . . . . . . . . . . . . . . . . 32 B.4. all_ones . . . . . . . . . . . . . . . . . . . . . . . . 32 B.5. ones_count . . . . . . . . . . . . . . . . . . . . . . . 32 Appendix C. Implementation Status . . . . . . . . . . . . . . . 32 C.1. sebbi.pro . . . . . . . . . . . . . . . . . . . . . . . . 33 C.2. Forestrie . . . . . . . . . . . . . . . . . . . . . . . . 33 C.3. Test vectors . . . . . . . . . . . . . . . . . . . . . . 34 Appendix D. Acknowledgments . . . . . . . . . . . . . . . . . . 34 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 34 1. Introduction The COSE Receipts document [RFC9942] defines a common framework for defining different types of proofs, such as proof of inclusion, about verifiable data structures (VDS). For instance, inclusion proofs guarantee to a verifier that a given serializable element is recorded in the VDS, while consistency proofs are used to establish that an inclusion proof is still consistent with the new state of the VDS at a later time. In this document, we define a new type of VDS: a post ordered binary merkle tree [KnuthTBT] is, logically, the unique series of perfect binary merkle trees required to commit its leaves. Such structures are also commonly known as Merkle Mountain Ranges [PeterTodd]. Example, 6 2 5 0 1 3 4 7 This illustrates MMR(8), which is comprised of two perfect trees rooted at 6 and 7. 7 is the root of a tree comprised of a single element. The peaks of the perfect trees form the accumulator. The storage of a tree maintained in this way is addressed as a linear array, and additions to the tree are always appends. Bryce & Geater Expires 2 June 2027 [Page 3] Internet-Draft COSE Receipts for MMRs November 2026 Proving and verifying are defined in terms of the cryptographic asynchronous accumulator described by [ReyzinYakoubov]. The technical advantages of post-order traversal binary Merkle trees are discussed in [CrosbyWallach] (Section 3.3, "Storing the log on secondary storage") and [PostOrderTlog]. 2. Conventions and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. * A complete MMR(n) defines an mmr with n nodes where no equal height sibling trees exist. MMR(n) is complete if and only if index_height(n) is 0, that is, the node that would be stored at index n is a leaf. * i shall be the zero-based index of any node, including leaf nodes, in the MMR. Nodes are assigned indices in the order they are appended to the linear array. * pos shall be the one-based position of a node, pos = i + 1. The position is included in the hash of every node, leaf and interior (see Leaf Values (Section 4) and hash_pospair64), binding each node's value to its location in the tree. * g shall be the zero-based height of a node in the tree. * H(x) shall be the digest of any value x using the hash algorithm identified by the vds value, for example SHA-256 for MMR_SHA256; see Description of the Verifiable Data Structure (Section 3). * || shall mean concatenation of raw byte representations of the referenced values. In this specification, all numbers are unsigned 64 bit integers. The maximum height of a single tree is 63 (which will have g=62 for its peak), so that every quantity the algorithms compute, in particular the sibling offset 2^(g+1), fits in 64 bits. A tree of that height has 2^63 - 1 nodes. 3. Description of the Verifiable Data Structure The linearly addressed, position committing MMR defined in this document is specified for any hash algorithm H that: Bryce & Geater Expires 2 June 2027 [Page 4] Internet-Draft COSE Receipts for MMRs November 2026 * is deterministic and computable by any verifier from public inputs alone, and produces an output of a fixed size, which is the node value size; and * is collision resistant and second preimage resistant at a security strength of at least 128 bits, so that the node value size is at least 32 bytes. As Section 4.4.1 of [RFC9942] requires, each value in the "COSE Verifiable Data Structure Algorithms" registry that refers to this MMR identifies exactly one such H. This document registers one value: +============+=======+================+===========+==============+ | Name | Value | Hash algorithm | COSE | Node value | | | | | algorithm | size (bytes) | +============+=======+================+===========+==============+ | MMR_SHA256 | TBD_1 | SHA-256 | -16 | 32 | | | | [FIPS180-4] | [RFC9054] | | +------------+-------+----------------+-----------+--------------+ Table 1: Verifiable Data Structure Algorithms Other specifications MAY register further values for this MMR. Such a specification MUST name H, by its identifier in the "COSE Algorithms" registry ([RFC9054]) where it has one, and the node value size, MUST state that H meets the requirements above, and MUST register the inclusion proof (-1) and consistency proof (-2) entries in the "COSE Verifiable Data Structure Proofs" registry for its value, as Section 8.2.1 of [RFC9942] requires. It meets the requirements of Section 4.4.1 of [RFC9942] by normative reference to this document: the proof encodings are those of Inclusion Proofs (Section 5) and Consistency Proof (Section 7), and the algorithms of this document apply unchanged, with H and the node value size substituted. The vds value in the protected header of a receipt fixes H and the node value size. The hash algorithm of the tree is declared only by the vds value. A verifier MUST reject a receipt whose vds value it does not support. 4. Leaf Values The value of every leaf is f = H(x), where the leaf pre-image x is x = 0x00 || pos || H(ts-leaf-data) || entry-digest Bryce & Geater Expires 2 June 2027 [Page 5] Internet-Draft COSE Receipts for MMRs November 2026 * 0x00 is a single zero byte, which makes x one byte longer than any interior pre-image. * pos is the position of the leaf, i + 1, as 8 bytes big-endian, as for interior nodes. * ts-leaf-data is a byte string, possibly empty, that the transparency service fixes when it appends the leaf; see Section 4.2. * entry-digest is H applied to the bytes of the entry the leaf records; see Section 4.1. Each hash is the H identified by the vds value. With a node value size of N bytes, x is 2N + 9 bytes long and the pre-image of every interior node is 2N + 8 bytes, so for every vds value a leaf value equal to an interior node value is a collision in H. Because x includes pos, every node value, leaf or interior, binds its position. A receipt of inclusion therefore binds the index of the node it proves whatever the length of its inclusion path, and an empty path needs no special treatment. 4.1. Entries For a Signed Statement registered by a Transparency Service ([RFC9943]), the entry is the Signed Statement as registered, and entry-digest is the data-hash defined in Section 2.2 of [I-D.ietf-scitt-receipts-ccf-profile], computed with H: the digest of the COSE_Sign1 encoding with CBOR tag 18 retained (Section 6.1 of [RFC9943]) and an empty unprotected header map (Section 6.3 of [RFC9943]), other elements as submitted. A verifier holding a Transparent Statement recovers these bytes as that section describes. With the same H the two profiles compute the same digest for the same registered Signed Statement: for MMR_SHA256, entry-digest equals the CCF_LEDGER_SHA256 data-hash. Other applications of this profile define their entry as a byte string, and entry-digest is H of those bytes. 4.2. Transparency service leaf data ts-leaf-data lets the transparency service commit, in each leaf, values it fixes when it appends the leaf, for example a time or a sequence number it assigns. This profile does not define those values. They are committed in x, not carried in a header parameter of a receipt, because a receipt is signed after the leaf is appended, possibly many times, and its header parameters are asserted at that signing. A value in x is set when the leaf is appended, and the root Bryce & Geater Expires 2 June 2027 [Page 6] Internet-Draft COSE Receipts for MMRs November 2026 of every tree size that includes the leaf commits to it. A transparency service that commits nothing in a leaf uses the empty byte string as its ts-leaf-data. An inclusion proof for a leaf carries its ts-leaf-data when it is not empty (Section 5), and a verifier hashes it without interpreting it. A transparency service that wants its ts-leaf-data to identify its own format can begin it with a type or version byte; that byte is committed with the rest of the leaf when it is appended, so it cannot disagree with the bytes it describes. An auditor that recomputes the leaves of the log needs the ts-leaf-data of every leaf, so a transparency service that expects to be audited publishes it with its entries. 4.3. leaf_value leaf_value(i, ts_leaf_data, entry_digest) returns the value f of the leaf at index i. Given: * i the zero-based index of the leaf. * ts_leaf_data the ts-leaf-data of the leaf, possibly empty. * entry_digest the entry-digest of the entry the leaf records. We define leaf_value as def leaf_value(i, ts_leaf_data, entry_digest): # H is the hash algorithm identified by the vds value, # SHA-256 (MMR_SHA256) in this example h = hashlib.sha256() # A zero byte, then the big endian representation of pos h.update(b"\x00") h.update((i + 1).to_bytes(8, byteorder="big", signed=False)) h.update(hashlib.sha256(ts_leaf_data).digest()) h.update(entry_digest) return h.digest() Example values for MMR_SHA256 are given in Appendix A. 5. Inclusion Proofs The CBOR representation of an inclusion proof is Bryce & Geater Expires 2 June 2027 [Page 7] Internet-Draft COSE Receipts for MMRs November 2026 ; a node value: the output of H, whose size is fixed by ; the vds value, for example 32 bytes for MMR_SHA256 hash = bstr inclusion-proof = bstr .cbor inclusion-proof-content inclusion-proof-content = [ ; zero-based index of a tree node index: uint ; path proving the node's inclusion, ; empty when the node is a peak inclusion-path: [ * hash ] ; the ts-leaf-data of the node when it ; is a leaf, absent when it is empty ? ts-leaf-data: bstr ] Every element of an inclusion-path, a consistency-path or right-peaks is a node value. The size of a node value is fixed by the vds value, see Table 1. A verifier MUST reject a proof in which any such element is not of that size. An absent ts-leaf-data is the empty byte string. A transparency service MUST omit ts-leaf-data when it is empty, so that an inclusion proof has one encoding. Only the value of a leaf depends on ts-leaf-data, so a proof for an interior node does not carry it. 5.1. inclusion_proof_path inclusion_proof_path(i, c) is used to produce the verification paths for inclusion proofs and consistency proofs. Given: * c the index of the last node in any tree which contains i. * i the index of the mmr node whose verification path is required. And the methods: * index_height (Section 10.1) which obtains the zero-based height g of any node. And the constraints: * i <= c Bryce & Geater Expires 2 June 2027 [Page 8] Internet-Draft COSE Receipts for MMRs November 2026 * MMR(c+1) is complete, that is, index_height(c+1) is 0. We define inclusion_proof_path as def inclusion_proof_path(i, c): path = [] g = index_height(i) while True: # The sibling of i is at i +/- 2^(g+1) siblingoffset = (2 << g) # If the index after i is higher, it is the left parent, # and i is the right sibling if index_height(i+1) > g: # The witness to the right sibling is offset behind i isibling = i - siblingoffset + 1 # The parent of a right sibling is stored immediately # after i += 1 else: # The witness to a left sibling is offset ahead of i isibling = i + siblingoffset - 1 # The parent of a left sibling is stored immediately after # its right sibling i += siblingoffset # When the computed sibling exceeds the range of MMR(C+1), # we have completed the path if isibling > c: return path path.append(isibling) # Set g to the height of the next item in the path. g += 1 6. COSE Receipt of Inclusion The cbor representation of the protected header of a receipt of inclusion is: Bryce & Geater Expires 2 June 2027 [Page 9] Internet-Draft COSE Receipts for MMRs November 2026 protected-header-map = { &(alg: 1) => int &(vds: 395) => int ; e.g. MMR_SHA256 (TBD_1) * cose-label => cose-value } * alg (label: 1): REQUIRED. Signature algorithm identifier. Value type: int. * vds (label: 395): REQUIRED. verifiable data structure algorithm identifier, a value identifying the MMR defined in this document, such as MMR_SHA256, see Section 3. It fixes the hash algorithm H. Value type: int. The protected header MUST meet the encoding requirements given in COSE Receipt of Consistency (Section 8), and a verifier MUST apply the same acceptance rules to it. The unprotected header for an inclusion proof signature is: inclusion-proofs = [ + inclusion-proof ] verifiable-proofs = { &(inclusion-proof: -1) => inclusion-proofs } unprotected-header-map = { &(vdp: 396) => verifiable-proofs * cose-label => cose-value } The payload of an inclusion proof signature is the accumulator peak that commits the node, which included_root (Section 6.2) obtains. A transparency service MUST sign a receipt of inclusion only for a peak of an accumulator it has signed in a receipt of consistency. It can do so by signing, with each receipt of consistency, a receipt of inclusion with an empty inclusion-path for each peak of that accumulator; replacing the inclusion proof of such a receipt gives a receipt of inclusion for any node under the peak. In every receipt of inclusion, whether the transparency service or another party assembles it, the inclusion-proofs MUST be in increasing order of the position of the node each proves. The order is an encoding and interoperability requirement, not a condition for verifying any single inclusion proof. Bryce & Geater Expires 2 June 2027 [Page 10] Internet-Draft COSE Receipts for MMRs November 2026 The payload MUST be detached. Detaching the payload forces verifiers to recompute the root from the inclusion proof, this protects against implementation errors where the signature is verified but the payload merkle root does not match the inclusion proof. 6.1. Verifying the Receipt of inclusion A receipt of inclusion proves that a value is the node of the tree at the index of the proof. It commits nothing outside the subtree under the peak its path implies: neither the tree size nor the entries before that subtree. Receipts of consistency whose accumulators include that peak commit both. Verification is the same for every node, leaf or interior. Consistency proofs rely on this: a consistency path is the inclusion path of an origin peak in the later tree, and consistent_roots (Section 8.1.1) proves each origin peak by applying included_root (Section 6.2) to its node value. To verify that an entry, for SCITT a candidate Signed Statement, is in the tree, the verifier uses the value of its leaf: leaf_value (Section 4.3) applied to the index, the ts-leaf-data of the proof and entry-digest, which the verifier computes from the bytes of the entry as Section 4.1 describes. entry-digest MUST NOT be taken from the receipt. This defines how the inclusion proofs of this profile are consumed (Section 4.4.1 of [RFC9942]). The verifier does not need to check that the index is that of a leaf; see Section 12.1. Perform the following, in order. Verification fails if any step fails. 1. Decode the protected header. It MUST be deterministically encoded as required in COSE Receipt of Consistency (Section 8); the vds value MUST be one the verifier supports, see Description of the Verifiable Data Structure (Section 3). Labels the verifier does not recognise are skipped. 2. index_height (Section 10.1) of the index plus the length of the inclusion-path MUST NOT exceed 62, the greatest height of a peak (Section 2). 3. Apply included_root (Section 6.2) to the index, the value and the inclusion-path. The result is the peak the path implies. 4. Set the COSE Sign1 payload to the bytes of that peak and verify the signature of the COSE Sign1. It is recommended that implementations return a single boolean result for Receipt verification operations, to reduce the chance of accepting a valid signature over an invalid inclusion proof. Bryce & Geater Expires 2 June 2027 [Page 11] Internet-Draft COSE Receipts for MMRs November 2026 A verifier that holds a trusted tree size and accumulator can additionally check that the peak the path implies is one of the peaks of that accumulator, which ties the node to that tree size. When it does so, the protected vds value MUST equal the vds value of the trusted accumulator. A receipt of inclusion stays valid as the tree grows, and the check above can be made against any trusted accumulator that commits to its peak. To make it against a later accumulator, a verifier first verifies the receipt, then extends its path for the accumulator check using a consistency proof from an accumulator containing the receipt's peak, or data from any log replica, including its own, without contacting the log. 6.2. included_root The algorithm included_root calculates the accumulator peak for the provided proof and node value. Given: * i is the index the nodeHash is to be shown at * nodehash the value whose inclusion is to be shown * proof is the path of sibling values committing i. And the methods: * index_height (Section 10.1) which obtains the zero-based height g of any node. * hash_pospair64 (Section 9.2.1) which applies H to the new node position and its children. We define included_root as Bryce & Geater Expires 2 June 2027 [Page 12] Internet-Draft COSE Receipts for MMRs November 2026 def included_root(i, nodehash, proof): root = nodehash g = index_height(i) for sibling in proof: # If the index after i is higher, it is the left parent, # and i is the right sibling if index_height(i + 1) > g: # The parent of a right sibling is stored immediately after i = i + 1 # Set `root` to `H(i+1 || sibling || root)` root = hash_pospair64(i + 1, sibling, root) else: # The parent of a left sibling is stored immediately after # its right sibling. i = i + (2 << g) # Set `root` to `H(i+1 || root || sibling)` root = hash_pospair64(i + 1, root, sibling) # Set g to the height of the next item in the path. g = g + 1 # If the path length was zero, the original nodehash is returned return root 7. Consistency Proof A consistency proof shows that the accumulator, defined in [ReyzinYakoubov], for tree-size-1 is a prefix of the accumulator for tree-size-2. The signature is over the complete accumulator for tree-size-2 obtained using the proof and the, supplied, possibly empty, list of right-peaks which complete the accumulator for tree-size-2. The detached payload is the node values of that accumulator concatenated in descending height order. Bryce & Geater Expires 2 June 2027 [Page 13] Internet-Draft COSE Receipts for MMRs November 2026 The receipt of consistency is defined so that a chain of cumulative consistency proofs can be verified together. The cbor representation of a consistency proof is: consistency-path = [ * hash ] consistency-proof = bstr .cbor consistency-proof-content consistency-proof-content = [ ; previous tree size tree-size-1: uint ; latest tree size tree-size-2: uint ; the inclusion path from each accumulator peak in ; tree-size-1 to its new peak in tree-size-2. ; empty when tree-size-1 is 0: the empty tree has no peaks consistency-paths: [ * consistency-path ] ; the additional peaks that ; complete the accumulator for tree-size-2, ; when appended to those produced by the consistency paths right-peaks: [ * hash ] ] 7.1. consistency_proof_paths Produces the verification paths for inclusion of the peaks of tree- size-1 under the peaks of tree-size-2. right-peaks are the node values of the peaks of tree-size-2 that no consistency path leads to, in descending height order. Given: * ifrom is the last index of tree-size-1 * ito is the last index of tree-size-2 And the methods: * inclusion_proof_path (Section 5.1) * Section 10.2 Bryce & Geater Expires 2 June 2027 [Page 14] Internet-Draft COSE Receipts for MMRs November 2026 And the constraints: * ifrom <= ito We define consistency_proof_paths as def consistency_proof_paths(ifrom, ito): proof = [] for i in peaks(ifrom): proof.append(inclusion_proof_path(i, ito)) return proof 8. COSE Receipt of Consistency The cbor representation of the protected header of a receipt of consistency is: protected-header-map = { &(alg: 1) => int &(vds: 395) => int ; e.g. MMR_SHA256 (TBD_1) &(tree-size-2: -65933) => uint ; TBD_2, private use until assigned * cose-label => cose-value } * alg (label: 1): REQUIRED. Signature algorithm identifier. Value type: int. * vds (label: 395): REQUIRED. verifiable data structure algorithm identifier, a value identifying the MMR defined in this document, such as MMR_SHA256, see Section 3. It fixes the hash algorithm H. Value type: int. * tree-size-2 (label: TBD_2): REQUIRED. The tree size to which consistency is proven; the accumulator of this tree size is the detached payload. MUST equal tree-size-2 of the last consistency- proof in the unprotected header. Value type: uint (CBOR major type 0). tree-size-1 is not carried in the protected header: the verifier holds the tree size and accumulator it verifies consistency from, as described in Verifying the Receipt of consistency (Section 8.1). A receipt of consistency under this profile that omits the protected tree-size-2 MUST be rejected. Bryce & Geater Expires 2 June 2027 [Page 15] Internet-Draft COSE Receipts for MMRs November 2026 The protected header MUST be encoded as deterministic CBOR (Section 4.2.1 of [RFC8949]): definite lengths only, arguments in shortest form, and keys sorted in the bytewise lexicographic order of their encodings. The protected header map MUST occupy the whole of the protected header byte string. A verifier MUST reject a receipt whose protected header is not so encoded, contains duplicate labels, or contains bytes beyond the protected header map. A verifier MUST ignore protected header labels it does not recognise, whatever the type of their values, unless the label is listed in the crit header parameter (Section 3.1 of [RFC9052]). tree-size-2 need not be listed in crit; a receipt that omits it is rejected regardless. These requirements give the protected header a single encoding, so that a verifier can meet the duplicate-label prohibition of Section 9 of [RFC9052], by checking that labels strictly increase, without a general CBOR decoder. The unprotected header for a consistency proof signature is: consistency-proofs = [ + consistency-proof ] verifiable-proofs = { &(consistency-proof: -2) => consistency-proofs } unprotected-header-map = { &(vdp: 396) => verifiable-proofs * cose-label => cose-value } The payload MUST be detached. Detaching the payload forces verifiers to recompute the roots from the consistency proofs. This protects against implementation errors where the signature is verified but the payload is not genuinely produced by the included proof. 8.1. Verifying the Receipt of consistency Verification accommodates verifying the result of a cumulative series of consistency proofs. The verifier MUST hold, from a source it already trusts, the vds value, the tree size and the accumulator of the state it is verifying consistency from; these are referred to below as the trusted vds value, the trusted tree size and the trusted accumulator. The empty tree, with tree size 0 and an empty accumulator, is a valid trusted state; see The empty tree as trusted state (Section 12.3) for what verification from it establishes. A verifier that verifies from the empty tree takes the trusted vds value from the protected header of that receipt; it is thereafter part of the trusted state. Bryce & Geater Expires 2 June 2027 [Page 16] Internet-Draft COSE Receipts for MMRs November 2026 Trusted state advances only forwards. Step 4 below rejects a receipt whose first consistency-proof starts from any size other than the trusted size, including a receipt that starts from the empty tree once a later state is held. A verifier MAY nevertheless choose to accept such a receipt, for example after a ledger has re-issued receipts under new credentials following a key compromise (Section 9.4.2 of [RFC9943]), but it MUST do so as a new verification from a trusted state at the size the receipt declares, discarding the state it previously held, and MUST NOT treat the receipt as a continuation of that state. Perform the following, in order. Verification fails if any step fails. 1. Decode the protected header. It MUST be deterministically encoded as required in COSE Receipt of Consistency (Section 8); tree-size-2 MUST be present and MUST be an unsigned integer. Labels the verifier does not recognise are skipped. 2. The protected vds value MUST equal the trusted vds value. 3. The protected tree-size-2 MUST equal tree-size-2 of the last consistency-proof. 4. tree-size-1 of the first consistency-proof MUST equal the trusted tree size. 5. Initialize sizefrom to the trusted tree size and accumulatorfrom to the trusted accumulator. 6. For each consistency-proof, in order: 1. tree-size-1 of the proof MUST equal sizefrom. 2. Apply consistent_roots (Section 8.1.1) to sizefrom, tree- size-2 of the proof, accumulatorfrom and the consistency- paths of the proof, obtaining roots and nright. 3. The length of right-peaks MUST equal nright. 4. Set accumulatorfrom to roots followed by right-peaks, and sizefrom to tree-size-2 of the proof. 7. Use the final accumulatorfrom as the detached payload and verify the signature of the COSE Sign1. Bryce & Geater Expires 2 June 2027 [Page 17] Internet-Draft COSE Receipts for MMRs November 2026 consistent_roots requires the proof to have exactly the shape the two sizes imply: tree-size-2 MUST be a complete MMR size; each consistency path MUST have exactly the length that inclusion_proof_path (Section 5.1) produces for its peak; and every path leading to the same peak of tree-size-2 MUST produce the same value. The number of roots it returns and the number of right-peaks it requires are fixed by the two sizes. It is recommended that implementations return a single boolean result for Receipt verification operations, to reduce the chance of accepting a valid signature over an invalid consistency proof. 8.1.1. consistent_roots consistent_roots returns the peaks of the accumulator for tree-size-2 that the proof proves from the accumulator for tree-size-1, in descending height order, together with the number of right-peaks the prover must supply to complete that accumulator. It requires the proof to have exactly the shape the two tree sizes imply. For a complete MMR the set bits of leaf_count (Section 10.3)(size - 1) are the heights of the accumulator peaks, from the highest bit to the lowest, which is accumulator order. Let split be the highest bit on which the leaf counts of the two sizes differ. Because tree- size-2 is greater than tree-size-1, the target has that bit set and the origin does not. An origin peak above split is also a peak of the target: its path is empty and its value is returned unchanged. Every origin peak below split is committed by the target peak of height split: its path has length split - h, and every such path MUST produce the same value. The remaining peaks of the target are below every origin peak, so no path reaches them; the prover supplies them as right-peaks and their number is returned. Given: * sizefrom the trusted tree size, tree-size-1. * sizeto the tree size consistency is proven to, tree-size-2. * accumulatorfrom the node values of the accumulator for sizefrom. * proofs the consistency-paths, one for each entry in accumulatorfrom. And the methods: * included_root (Section 6.2) Bryce & Geater Expires 2 June 2027 [Page 18] Internet-Draft COSE Receipts for MMRs November 2026 * leaf_count (Section 10.3) * mmr_size_for_leaf_count (Section 10.4) * bit_length (Appendix B.3) * ones_count (Appendix B.5) And the constraints: * sizefrom < sizeto * sizeto is a complete MMR size. * sizefrom is a complete MMR size, or 0. This is not checked: every trusted size was itself a checked tree-size-2. We define consistent_roots as def consistent_roots( sizefrom, sizeto, accumulatorfrom, proofs): # if sizeto <= sizefrom -> ERROR leavesto = leaf_count(sizeto - 1) # if mmr_size_for_leaf_count(leavesto) != sizeto -> ERROR if sizefrom > 0: leavesfrom = leaf_count(sizefrom - 1) else: leavesfrom = 0 n = ones_count(leavesfrom) # if length(accumulatorfrom) != n -> ERROR # if length(proofs) != n -> ERROR nto = ones_count(leavesto) if n == 0: return [], nto # The highest bit on which the leaf counts differ. split = bit_length(leavesfrom ^ leavesto) - 1 roots = [] # The number of nodes preceding the sub tree of the # current origin peak. A peak of height h is at # offset + 2^(h+1) - 2, and its sub tree has 2^(h+1) - 1 nodes. Bryce & Geater Expires 2 June 2027 [Page 19] Internet-Draft COSE Receipts for MMRs November 2026 offset = 0 i = 0 # Origin peaks above the split are peaks of the target. # The path is not read; requiring it to be empty # rejects unused material. for h in range(bit_length(leavesfrom) - 1, split, -1): if not (leavesfrom >> h) & 1: continue # if length(proofs[i]) != 0 -> ERROR roots.append(accumulatorfrom[i]) offset += (1 << (h + 1)) - 1 i += 1 # Origin peaks below the split are all committed by the # target peak of height split, so each path has length # split - h and every path must produce the same value. above = len(roots) root = None for h in range(split - 1, -1, -1): if not (leavesfrom >> h) & 1: continue # if length(proofs[i]) != split - h -> ERROR subtree = (1 << (h + 1)) - 1 proven = included_root( offset + subtree - 1, accumulatorfrom[i], proofs[i]) if i == above: root = proven # elif proven != root -> ERROR offset += subtree i += 1 if n > above: roots.append(root) return roots, nto - len(roots) 9. Appending a leaf An algorithm for appending to a tree maintained in post order layout is provided. Bryce & Geater Expires 2 June 2027 [Page 20] Internet-Draft COSE Receipts for MMRs November 2026 9.1. add_leaf_hash When a new node is appended, if its height matches the height of its immediate predecessor, then the two equal height siblings MUST be merged. Merging is defined as the append of a new node which takes the adjacent peaks as its left and right children. This process MUST proceed until there are no more completable sub trees. add_leaf_hash(f) adds the leaf hash value f to the tree. Given: * f the value of the leaf, from leaf_value (Section 4.3) for the index the leaf will occupy, which is the number of nodes in db before the append. * db an interface supporting append(entry) -> count and get(index) -> entry methods. append stores the entry and returns the number of nodes in the store after the append, which is the index at which the next node will be stored. And the methods: * index_height (Section 10.1) * Section 9.2.1 We define add_leaf_hash as Bryce & Geater Expires 2 June 2027 [Page 21] Internet-Draft COSE Receipts for MMRs November 2026 def add_leaf_hash(db, f: bytes): # Set g to 0, the height of the leaf item f g = 0 # Set i to the index the next node will occupy, which is the # number of nodes after appending f i = db.append(f) # While the node that would be stored at i is a parent, which # is exactly when MMR(i) is not complete (#looptarget) while index_height(i) > g: # Set ileft to the index of the left child of i, # which is i - 2^(g+1) ileft = i - (2 << g) # Set iright to the index of the right child of i, # which is i - 1 iright = i - 1 # Set v to H(i + 1 || Get(ileft) || Get(iright)) # Set i to the result of invoking Append(v) i = db.append( hash_pospair64(i+1, db.get(ileft), db.get(iright))) # Set g to the height of the node just appended, which is g + 1 g += 1 # i is the number of nodes, the MMR size after the append return i add_leaf_hash returns the MMR size after the append, which is a complete MMR size. The index of the leaf itself is one less than the value of i immediately after the first append. Because f binds the index of the leaf, it can only be computed once that index is known. An implementation that may retry an append, or that can race another writer for the index, MUST compute f again for the index at which the leaf is finally stored. 9.2. Node values Interior nodes in the tree MUST prefix the value provided to H(x) with pos. Bryce & Geater Expires 2 June 2027 [Page 22] Internet-Draft COSE Receipts for MMRs November 2026 The value v for any interior node MUST be H(pos || Get(LEFT_CHILD) || Get(RIGHT_CHILD)) Leaf values are defined in Section 4; the algorithm for leaf addition is provided the leaf value directly. 9.2.1. hash_pospair64 Returns H(pos || a || b) Given: * pos the one-based position of the node being computed * a the first value to include in the hash after pos * b the second value to include in the hash after pos And the constraints: * pos < 2^64 * a and b MUST be node values produced by H. We define hash_pospair64 as def hash_pospair64(pos, a, b): # H is the hash algorithm identified by the vds value, # SHA-256 (MMR_SHA256) in this example h = hashlib.sha256() # Take the big endian representation of pos h.update(pos.to_bytes(8, byteorder="big", signed=False)) h.update(a) h.update(b) return h.digest() 10. Essential supporting algorithms 10.1. index_height index_height(i) returns the zero-based height g of the node index i Given: * i the index of any mmr node. Bryce & Geater Expires 2 June 2027 [Page 23] Internet-Draft COSE Receipts for MMRs November 2026 We define index_height as def index_height(i) -> int: pos = i + 1 while not all_ones(pos): pos = pos - most_sig_bit(pos) + 1 return bit_length(pos) - 1 10.2. peaks peaks(i) returns the peak indices for MMR(i+1), which is also its accumulator. Requires MMR(i+1) to be complete. MMR(i+1) is complete if and only if index_height(i+1) is 0, that is, the next node to be appended would be a leaf; see Conventions and Definitions (Section 2). Given: * i the index of any mmr node. We define peaks def peaks(i): peak = 0 peaks = [] s = i+1 while s != 0: # find the highest peak size in the current MMR(s) highest_size = (1 << log2floor(s+1)) - 1 peak = peak + highest_size peaks.append(peak-1) s -= highest_size return peaks 10.3. leaf_count leaf_count(i) returns the number of leaves in MMR(i+1). The bits of the count also form a mask with a single bit set for each peak in the accumulator, where the bit position is the height of the peak. Read from the highest bit to the lowest, the set bits give the accumulator peaks in order. Given: Bryce & Geater Expires 2 June 2027 [Page 24] Internet-Draft COSE Receipts for MMRs November 2026 * i the index of any mmr node. And the methods: * bit_length (Appendix B.3) We define leaf_count as def leaf_count(i): s = i + 1 peaksize = (1 << bit_length(s)) - 1 peakmap = 0 while peaksize > 0: peakmap <<= 1 if s >= peaksize: s -= peaksize peakmap |= 1 peaksize >>= 1 return peakmap 10.4. mmr_size_for_leaf_count mmr_size_for_leaf_count(leaves) returns the number of nodes in the complete MMR with leaves leaves. Every leaf adds itself and one interior node for each binary carry, and each peak is a carry that has not happened. Because leaf_count rounds an incomplete size down to the largest complete MMR below it, mmr_size_for_leaf_count(leaf_count(size - 1)) == size holds exactly when size is a complete MMR size. Given: * leaves a leaf count. And the methods: * ones_count (Appendix B.5) We define mmr_size_for_leaf_count as def mmr_size_for_leaf_count(leaves): return 2 * leaves - ones_count(leaves) Bryce & Geater Expires 2 June 2027 [Page 25] Internet-Draft COSE Receipts for MMRs November 2026 11. Privacy Considerations See the privacy considerations section of [RFC9942]. A leaf commits a digest of its entry, not the entry itself. Confidentiality of entry contents, including resistance to guess-and- confirm of low-entropy entries, is the responsibility of the application that defines the entry (for SCITT, see the privacy considerations of [RFC9943]). The ts-leaf-data of a leaf is carried in every receipt of inclusion for it, so a transparency service should not commit confidential values in it. 12. Security Considerations The security considerations of [RFC9942] apply. 12.1. Leaf value separation Leaf values are separated from interior values by the length of their pre-images, not by a prefix as in [RFC9162]. A leaf pre-image is 2N + 9 bytes and an interior pre-image is 2N + 8 bytes, so taking an interior node for a leaf, or a leaf for an interior node, requires a collision in H. Verification therefore needs no check that an index is that of a leaf: a leaf value at an interior index, or an interior node value at a leaf index, does not verify. A verifier that accepts entry-digest or a leaf value from the presenter of a receipt, instead of computing them from the entry, establishes only that some node is in the tree, not that the entry is. The transparency service chooses ts-leaf-data, and its meaning is the transparency service's statement. A different ts-leaf-data for a leaf gives a different tree. A receipt of consistency exposes that only to a verifier whose trusted tree size includes the leaf: a tree size that does not include the leaf does not commit it, so trees that differ only in later leaves are both consistent with it. 12.2. Declared tree sizes The shape of a consistency proof does not fix tree-size-2 when there are right-peaks: a right-peak carries no height, so the same consistency paths and right-peaks complete the accumulator of every tree size that adds the same number of peaks. A verifier that takes tree-size-2 from the unprotected proof, or omits the comparison with the protected tree-size-2, lets the presenter choose the size it records, and the ledger's next receipt then fails against that state although the ledger has behaved correctly. Bryce & Geater Expires 2 June 2027 [Page 26] Internet-Draft COSE Receipts for MMRs November 2026 12.3. The empty tree as trusted state Every accumulator is consistent with the empty tree. A verifier that verifies from the empty tree places all of its trust in the signing key, the signed vds value and the signed tree-size-2; the hash algorithm and size it records are the signer's assertion, not values derived from a state it held. The rules for accepting such a receipt once a later state is held are given in Verifying the Receipt of consistency (Section 8.1). 12.4. Hash algorithm A log uses one hash algorithm for its lifetime, as in Section 9 of [RFC9162]. Consistency verification carries origin peaks above the split and the right-peaks without rehashing them, so a verifier that does not compare the protected vds value with its trusted one can be left holding peaks computed with two hash algorithms. 13. IANA Considerations 13.1. Additions to Existing Registries 13.1.1. COSE Verifiable Data Structure Algorithms IANA is requested to add the following value to the "COSE Verifiable Data Structure Algorithms" registry established by [RFC9942]. Values for other hash algorithms may be registered by other specifications, as described in Section 3. +============+=======+================+============+===========+ | Name | Value | Description | Change | Reference | | | | | Controller | | +============+=======+================+============+===========+ | MMR_SHA256 | TBD_1 | SHA-256 Merkle | IETF | RFCthis | | | | Mountain Range | | | +------------+-------+----------------+------------+-----------+ Table 2: Additions to the COSE Verifiable Data Structure Algorithms registry 13.1.2. COSE Verifiable Data Structure Proofs Section 8.2.1 of [RFC9942] requires each entry in the "COSE Verifiable Data Structure Algorithms" registry to have corresponding entries in the "COSE Verifiable Data Structure Proofs" registry. IANA is requested to add the following entries for MMR_SHA256 to that registry: Bryce & Geater Expires 2 June 2027 [Page 27] Internet-Draft COSE Receipts for MMRs November 2026 +==========+===========+=====+=====+===========+==========+=========+ |Verifiable|Name |Label|CBOR |Description|Change |Reference| |Data | | |Type | |Controller| | |Structure | | | | | | | +==========+===========+=====+=====+===========+==========+=========+ |TBD_1 |inclusion |-1 |array|Proof of |IETF |Section 5| | |proofs | |(of |inclusion | |of | | | | |bstr)|under an | |RFCthis | | | | | |accumulator| | | | | | | |peak | | | +----------+-----------+-----+-----+-----------+----------+---------+ |TBD_1 |consistency|-2 |array|Proof of |IETF |Section 7| | |proofs | |(of |append-only| |of | | | | |bstr)|property | |RFCthis | +----------+-----------+-----+-----+-----------+----------+---------+ Table 3: Additions to the COSE Verifiable Data Structure Proofs registry 13.1.3. COSE Header Parameters IANA is requested to add the following entry to the "COSE Header Parameters" registry (Section 11.1 of [RFC9052]), in the Specification Required range: * Name: tree-size-2 * Label: TBD_2 * Value Type: uint * Value Registry: none * Description: The tree size to which a receipt of consistency proves consistency, and whose accumulator is its payload * Reference: RFCthis Until this label is assigned, implementations use the private use value -65933 for tree-size-2. 13.2. New Registries This document requests no new registries. 14. References 14.1. Normative References Bryce & Geater Expires 2 June 2027 [Page 28] Internet-Draft COSE Receipts for MMRs November 2026 [FIPS180-4] National Institute of Standards and Technology, "Secure Hash Standard (SHS)", FIPS PUB 180-4, August 2015, . [I-D.ietf-scitt-receipts-ccf-profile] Birkholz, H., Delignat-Lavaud, A., Fournet, C., and A. Chamayou, "CCF Profile for COSE Receipts", Work in Progress, Internet-Draft, draft-ietf-scitt-receipts-ccf- profile-06, 22 October 2026, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8949] Bormann, C. and P. Hoffman, "Concise Binary Object Representation (CBOR)", STD 94, RFC 8949, DOI 10.17487/RFC8949, December 2020, . [RFC9052] Schaad, J., "CBOR Object Signing and Encryption (COSE): Structures and Process", STD 96, RFC 9052, DOI 10.17487/RFC9052, August 2022, . [RFC9942] Steele, O., Birkholz, H., Delignat-Lavaud, A., and C. Fournet, "CBOR Object Signing and Encryption (COSE) Receipts", RFC 9942, DOI 10.17487/RFC9942, June 2026, . [RFC9943] Birkholz, H., Delignat-Lavaud, A., Fournet, C., Deshpande, Y., and S. Lasker, "An Architecture for Trustworthy and Transparent Digital Supply Chains", RFC 9943, DOI 10.17487/RFC9943, June 2026, . 14.2. Informative References Bryce & Geater Expires 2 June 2027 [Page 29] Internet-Draft COSE Receipts for MMRs November 2026 [CrosbyWallach] Crosby, S. A. and D. S. Wallach, "Efficient Data Structures for Tamper-Evident Logging", 2009, . [KnuthTBT] Knuth, D. E., "The Art of Computer Programming, Volume 1: Fundamental Algorithms, Section 2.3.1 Traversing Binary Trees", n.d., . [PeterTodd] Todd, P., "Merkle Mountain Ranges (bitcoin-dev mailing list)", 2016, . [PostOrderTlog] Cox, R., "Transparent Logs for Skeptical Clients (Appendix A: Storing the Log)", 2019, . [ReyzinYakoubov] Reyzin, L. and S. Yakoubov, "Efficient Asynchronous Accumulators for Distributed PKI", 2015, . [RFC7942] Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, July 2016, . [RFC9054] Schaad, J., "CBOR Object Signing and Encryption (COSE): Hash Algorithms", RFC 9054, DOI 10.17487/RFC9054, August 2022, . [RFC9162] Laurie, B., Messeri, E., and R. Stradling, "Certificate Transparency Version 2.0", RFC 9162, DOI 10.17487/RFC9162, December 2021, . Appendix A. Leaf value examples These values are for MMR_SHA256, computed with leaf_value (Section 4.3). Index 0 is the first leaf and index 7 the fifth. Bryce & Geater Expires 2 June 2027 [Page 30] Internet-Draft COSE Receipts for MMRs November 2026 entry-digest, SHA-256 of the 9 ASCII bytes "content-1": 1ef0ae7bbe4ce6c99ab744fe8c275821 78d69c660538ef6a4b201cf5a944e17a ts-leaf-data: empty H(ts-leaf-data): e3b0c44298fc1c149afbf4c8996fb924 27ae41e4649b934ca495991b7852b855 leaf value at i = 0: 60221d6ea9c3744053e7d4d82925dfef 8c95e2dc23b89a19000b83a020a34823 leaf value at i = 7: 3c3d7e81366a85002245413041b304e7 fa4e9f4b2b1909bed538b85484848293 ts-leaf-data: 010102030405060708 H(ts-leaf-data): 3e445cdee8ddfdf42c12523a5b420abb 1d013e0706bd28656a73b037fa04ca11 leaf value at i = 0: a6e76b79ceb889049edbc78abd0b144c 9b414759e7d36a6fca6bce9a0a6d7176 leaf value at i = 7: ce6e7a53b94b5a566fc8c006a352b8a3 afa69b97d56fd25f4486bd99de18714b Appendix B. Assumed bit primitives B.1. log2floor Returns the floor of log base 2 x def log2floor(x): return x.bit_length() - 1 B.2. most_sig_bit Returns the mask for the most significant bit in pos def most_sig_bit(pos) -> int: return 1 << (pos.bit_length() - 1) The following primitives are assumed for working with bits as they commonly have library or hardware support. Bryce & Geater Expires 2 June 2027 [Page 31] Internet-Draft COSE Receipts for MMRs November 2026 B.3. bit_length The minimum number of bits to represent pos. b011 would be 2, b010 would be 2, and b001 would be 1. def bit_length(pos): return pos.bit_length() B.4. all_ones Tests if all bits, from the most significant that is set, are 1, b0111 would be true, b0101 would be false. def all_ones(pos) -> bool: # most_sig_bit returns a mask, so shifting it left by one # and subtracting one sets every bit below and including it mask = (most_sig_bit(pos) << 1) - 1 return pos == mask B.5. ones_count Count of set bits. For example ones_count(b101) is 2 def ones_count(pos) -> int: return bin(pos).count("1") Appendix C. Implementation Status *Note to the RFC Editor:* please remove this section, and the reference to [RFC7942], before publication. This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist. Bryce & Geater Expires 2 June 2027 [Page 32] Internet-Draft COSE Receipts for MMRs November 2026 According to [RFC7942], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit". The information below was last updated on 29 November 2026. C.1. sebbi.pro * Organization: Monop Content (https://sebbi.pro (https://sebbi.pro)) * URL: https://sebbi.pro/scitt (https://sebbi.pro/scitt) * Maturity: live public transparency service * Coverage: SCRAPI registration and COSE Receipts for MMRs (this document), with test vectors at https://sebbi.pro/scitt/ vectors.json (https://sebbi.pro/scitt/vectors.json) (39 leaves, 139 inclusion cases, 13 consistency cases, 7 receipts) * Version compatibility: draft-ietf-scitt-receipts-mmr-profile-00; the leaf value change made after -00 is not yet implemented * Contact: Justin Dobson C.2. Forestrie * Organization: Forestrie (https://github.com/forestrie (https://github.com/forestrie)) * Maturity: prototype * Coverage: the MMR proof algorithms, receipts of consistency, and receipts of inclusion assembled from per-peak receipts signed with each receipt of consistency * Version compatibility: draft-ietf-scitt-receipts-mmr-profile-00, except that inclusion proofs are encoded as a CBOR map; the leaf values and the path length bound added since -00 are not yet implemented * Contact: Robin Bryce Bryce & Geater Expires 2 June 2027 [Page 33] Internet-Draft COSE Receipts for MMRs November 2026 C.3. Test vectors The working group repository runs the python blocks of this document as written, in CI, with tools/check_python_blocks.py. It compares their results with an independently built MMR, and checks the known- answer values in tools/known-answers.json (https://github.com/ietf- wg-scitt/draft-ietf-scitt-receipts-mmr-profile/tree/main/tools (https://github.com/ietf-wg-scitt/draft-ietf-scitt-receipts-mmr- profile/tree/main/tools)). Bassem Kudsi contributed the script and the values. Appendix D. Acknowledgments Authors' Addresses Robin Bryce Email: robinbryce@proton.me Jon Geater Email: jonathan@bowball-tech.com Bryce & Geater Expires 2 June 2027 [Page 34]