miden_node_proto/generated/
smt.rs

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
43
44
45
46
47
48
49
// This file is @generated by prost-build.
/// Represents a single SMT leaf entry.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SmtLeafEntry {
    /// The key of the entry.
    #[prost(message, optional, tag = "1")]
    pub key: ::core::option::Option<super::digest::Digest>,
    /// The value of the entry.
    #[prost(message, optional, tag = "2")]
    pub value: ::core::option::Option<super::digest::Digest>,
}
/// Represents multiple leaf entries in an SMT.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SmtLeafEntries {
    /// The entries list.
    #[prost(message, repeated, tag = "1")]
    pub entries: ::prost::alloc::vec::Vec<SmtLeafEntry>,
}
/// A leaf in an SMT, sitting at depth 64. A leaf can contain 0, 1 or multiple leaf entries.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SmtLeaf {
    #[prost(oneof = "smt_leaf::Leaf", tags = "1, 2, 3")]
    pub leaf: ::core::option::Option<smt_leaf::Leaf>,
}
/// Nested message and enum types in `SmtLeaf`.
pub mod smt_leaf {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Leaf {
        /// An empty leaf.
        #[prost(uint64, tag = "1")]
        Empty(u64),
        /// A single leaf entry.
        #[prost(message, tag = "2")]
        Single(super::SmtLeafEntry),
        /// Multiple leaf entries.
        #[prost(message, tag = "3")]
        Multiple(super::SmtLeafEntries),
    }
}
/// The opening of a leaf in an SMT.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SmtOpening {
    /// The merkle path to the leaf.
    #[prost(message, optional, tag = "1")]
    pub path: ::core::option::Option<super::merkle::MerklePath>,
    /// The leaf itself.
    #[prost(message, optional, tag = "2")]
    pub leaf: ::core::option::Option<SmtLeaf>,
}