ibc-proto 0.52.0

ibc-proto provides Cosmos SDK & IBC Protocol Buffers definitions
Documentation
// This file is @generated by prost-build.
/// MerkleRoot defines a merkle root hash.
/// In the Cosmos SDK, the AppHash of a block header becomes the root.
#[cfg_attr(
    all(feature = "json-schema", feature = "serde"),
    derive(::schemars::JsonSchema)
)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerkleRoot {
    #[prost(bytes = "vec", tag = "1")]
    #[cfg_attr(
        all(feature = "json-schema", feature = "serde"),
        schemars(with = "String")
    )]
    pub hash: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for MerkleRoot {
    const NAME: &'static str = "MerkleRoot";
    const PACKAGE: &'static str = "ibc.core.commitment.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "ibc.core.commitment.v1.MerkleRoot".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/ibc.core.commitment.v1.MerkleRoot".into()
    }
}
/// MerklePrefix is merkle path prefixed to the key.
/// The constructed key from the Path and the key will be append(Path.KeyPath,
/// append(Path.KeyPrefix, key...))
#[cfg_attr(
    all(feature = "json-schema", feature = "serde"),
    derive(::schemars::JsonSchema)
)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerklePrefix {
    #[prost(bytes = "vec", tag = "1")]
    #[cfg_attr(
        all(feature = "json-schema", feature = "serde"),
        schemars(with = "String")
    )]
    pub key_prefix: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for MerklePrefix {
    const NAME: &'static str = "MerklePrefix";
    const PACKAGE: &'static str = "ibc.core.commitment.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "ibc.core.commitment.v1.MerklePrefix".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/ibc.core.commitment.v1.MerklePrefix".into()
    }
}
/// MerklePath is the path used to verify commitment proofs, which can be an
/// arbitrary structured object (defined by a commitment type).
/// MerklePath is represented from root-to-leaf
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerklePath {
    #[prost(string, repeated, tag = "1")]
    pub key_path: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for MerklePath {
    const NAME: &'static str = "MerklePath";
    const PACKAGE: &'static str = "ibc.core.commitment.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "ibc.core.commitment.v1.MerklePath".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/ibc.core.commitment.v1.MerklePath".into()
    }
}
/// MerkleProof is a wrapper type over a chain of CommitmentProofs.
/// It demonstrates membership or non-membership for an element or set of
/// elements, verifiable in conjunction with a known commitment root. Proofs
/// should be succinct.
/// MerkleProofs are ordered from leaf-to-root
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerkleProof {
    #[prost(message, repeated, tag = "1")]
    pub proofs: ::prost::alloc::vec::Vec<::ics23::CommitmentProof>,
}
impl ::prost::Name for MerkleProof {
    const NAME: &'static str = "MerkleProof";
    const PACKAGE: &'static str = "ibc.core.commitment.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "ibc.core.commitment.v1.MerkleProof".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/ibc.core.commitment.v1.MerkleProof".into()
    }
}