juno_rust_proto/prost/ibc-go/
ibc.core.commitment.v1.rs

1/// MerkleRoot defines a merkle root hash.
2/// In the Cosmos SDK, the AppHash of a block header becomes the root.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct MerkleRoot {
6    #[prost(bytes = "vec", tag = "1")]
7    pub hash: ::prost::alloc::vec::Vec<u8>,
8}
9/// MerklePrefix is merkle path prefixed to the key.
10/// The constructed key from the Path and the key will be append(Path.KeyPath,
11/// append(Path.KeyPrefix, key...))
12#[allow(clippy::derive_partial_eq_without_eq)]
13#[derive(Clone, PartialEq, ::prost::Message)]
14pub struct MerklePrefix {
15    #[prost(bytes = "vec", tag = "1")]
16    pub key_prefix: ::prost::alloc::vec::Vec<u8>,
17}
18/// MerklePath is the path used to verify commitment proofs, which can be an
19/// arbitrary structured object (defined by a commitment type).
20/// MerklePath is represented from root-to-leaf
21#[allow(clippy::derive_partial_eq_without_eq)]
22#[derive(Clone, PartialEq, ::prost::Message)]
23pub struct MerklePath {
24    #[prost(string, repeated, tag = "1")]
25    pub key_path: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
26}
27/// MerkleProof is a wrapper type over a chain of CommitmentProofs.
28/// It demonstrates membership or non-membership for an element or set of
29/// elements, verifiable in conjunction with a known commitment root. Proofs
30/// should be succinct.
31/// MerkleProofs are ordered from leaf-to-root
32#[allow(clippy::derive_partial_eq_without_eq)]
33#[derive(Clone, PartialEq, ::prost::Message)]
34pub struct MerkleProof {
35    #[prost(message, repeated, tag = "1")]
36    pub proofs: ::prost::alloc::vec::Vec<super::super::super::super::ics23::CommitmentProof>,
37}