1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
17 // Represents a Merkle inclusion proof for purposes of serialization,
18 // deserialization, and verification of the proof. The format for inclusion
19 // proofs in RFC 6962-bis is as follows:
21 // opaque LogID<2..127>;
22 // opaque NodeHash<32..2^8-1>;
28 // NodeHash inclusion_path<1..2^16-1>;
29 // } InclusionProofDataV2;
31 struct InclusionProofDataV2
{
35 std::vector
<Buffer
> inclusionPath
;
38 // Represents a Signed Tree Head as per RFC 6962-bis. All extensions are
39 // ignored. The signature field covers the data in the tree_head field.
43 // TreeHeadDataV2 tree_head;
44 // opaque signature<0..2^16-1>;
45 // } SignedTreeHeadDataV2;
50 // NodeHash root_hash;
51 // Extension sth_extensions<0..2^16-1>;
54 struct SignedTreeHeadDataV2
{
62 } // namespace mozilla