1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! The JWP Merkle floor, verbatim.
//!
//! Receipts in this crate bind their leaves with the same Merkle construction the
//! WAI worlds/provenance receipts use. The domain separators and tree shape are
//! reproduced **exactly** — every previously issued receipt and every published
//! conformance vector must still verify against this code.
const MERKLE_LEAF: & = b"moq-jwp:merkle-leaf\x01";
const MERKLE_NODE: & = b"moq-jwp:merkle-node\x01";
/// Merkle root over `object_hashes` (odd levels duplicate the last node).