File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,6 +142,14 @@ namespace ccf
142142 MERKLE_PROOF_LEAF_LABEL = 1 ,
143143 MERKLE_PROOF_PATH_LABEL = 2
144144 };
145+ // NOLINTNEXTLINE(performance-enum-size)
146+ enum MerkleProofPathBranch : int64_t
147+ {
148+ // Values set in
149+ // https://github.com/ietf-scitt/draft-birkholz-cose-cometre-ccf-profile
150+ LEFT = 0 ,
151+ RIGHT = 1
152+ };
145153 std::optional<std::vector<uint8_t >> describe_merkle_proof_v1 (
146154 const TxReceiptImpl& receipt);
147155
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ namespace ccf::crypto
1919 // Standardised: CWT claims map.
2020 static constexpr int64_t COSE_PHEADER_KEY_CWT = 15 ;
2121 // Standardised: verifiable data structure.
22+ // https://www.ietf.org/archive/id/draft-ietf-cose-merkle-tree-proofs-18.html#name-cose-header-parameter
2223 static constexpr int64_t COSE_PHEADER_KEY_VDS = 395 ;
2324 static constexpr int64_t COSE_PHEADER_VDS_CCF_LEDGER_SHA256 = 2 ;
2425 // Standardised: issued at CWT claim. Value is **PLAIN INTEGER**, as per
You can’t perform that action at this time.
0 commit comments