22
33use crate :: crypto:: { Hash , PublicKey , Signature } ;
44
5- #[ derive( Debug , Clone , PartialEq ) ]
65/// A signed tree head, as returned by the get-tree-head endpoint.
6+ #[ derive( Debug , Clone , PartialEq ) ]
77pub struct SignedTreeHead {
88 pub size : u64 ,
99 pub root_hash : Hash ,
@@ -19,23 +19,23 @@ pub struct WitnessCosignature {
1919 pub cosignature : Signature ,
2020}
2121
22- #[ derive( Debug , Clone , PartialEq ) ]
2322/// An inclusion proof, as returned by the get-inclusion-proof endpoint.
23+ #[ derive( Debug , Clone , PartialEq ) ]
2424pub struct InclusionProof {
2525 pub leaf_index : u64 ,
2626 pub node_hashes : Vec < Hash > ,
2727}
2828
29- #[ derive( Debug , Clone , PartialEq ) ]
3029/// A protoleaf, which is the data submitted to the add-leaf endpoint of a Sigsum log.
30+ #[ derive( Debug , Clone , PartialEq ) ]
3131pub struct Protoleaf {
3232 pub message : Hash ,
3333 pub signature : Signature ,
3434 pub public_key : PublicKey ,
3535}
3636
37- #[ derive( Debug , Clone , PartialEq ) ]
3837/// A tree leaf, as stored in a sigsum log.
38+ #[ derive( Debug , Clone , PartialEq ) ]
3939pub struct Leaf {
4040 pub digest : Hash ,
4141 pub signature : Signature ,
0 commit comments