tendermint_proto/prost/v0_37/
tendermint.crypto.rs

1// This file is @generated by prost-build.
2#[derive(::serde::Deserialize, ::serde::Serialize)]
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Proof {
6    #[prost(int64, tag = "1")]
7    #[serde(with = "crate::serializers::from_str")]
8    pub total: i64,
9    #[prost(int64, tag = "2")]
10    #[serde(with = "crate::serializers::from_str")]
11    pub index: i64,
12    #[prost(bytes = "vec", tag = "3")]
13    #[serde(with = "crate::serializers::bytes::base64string")]
14    pub leaf_hash: ::prost::alloc::vec::Vec<u8>,
15    #[prost(bytes = "vec", repeated, tag = "4")]
16    #[serde(with = "crate::serializers::bytes::vec_base64string")]
17    pub aunts: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
18}
19#[allow(clippy::derive_partial_eq_without_eq)]
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct ValueOp {
22    /// Encoded in ProofOp.Key.
23    #[prost(bytes = "vec", tag = "1")]
24    pub key: ::prost::alloc::vec::Vec<u8>,
25    /// To encode in ProofOp.Data
26    #[prost(message, optional, tag = "2")]
27    pub proof: ::core::option::Option<Proof>,
28}
29#[allow(clippy::derive_partial_eq_without_eq)]
30#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct DominoOp {
32    #[prost(string, tag = "1")]
33    pub key: ::prost::alloc::string::String,
34    #[prost(string, tag = "2")]
35    pub input: ::prost::alloc::string::String,
36    #[prost(string, tag = "3")]
37    pub output: ::prost::alloc::string::String,
38}
39/// ProofOp defines an operation used for calculating Merkle root
40/// The data could be arbitrary format, providing nessecary data
41/// for example neighbouring node hash
42#[derive(::serde::Deserialize, ::serde::Serialize)]
43#[allow(clippy::derive_partial_eq_without_eq)]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct ProofOp {
46    #[prost(string, tag = "1")]
47    pub r#type: ::prost::alloc::string::String,
48    #[prost(bytes = "vec", tag = "2")]
49    pub key: ::prost::alloc::vec::Vec<u8>,
50    #[prost(bytes = "vec", tag = "3")]
51    pub data: ::prost::alloc::vec::Vec<u8>,
52}
53/// ProofOps is Merkle proof defined by the list of ProofOps
54#[derive(::serde::Deserialize, ::serde::Serialize)]
55#[allow(clippy::derive_partial_eq_without_eq)]
56#[derive(Clone, PartialEq, ::prost::Message)]
57pub struct ProofOps {
58    #[prost(message, repeated, tag = "1")]
59    pub ops: ::prost::alloc::vec::Vec<ProofOp>,
60}
61/// PublicKey defines the keys available for use with Validators
62#[allow(clippy::derive_partial_eq_without_eq)]
63#[derive(Clone, PartialEq, ::prost::Message)]
64pub struct PublicKey {
65    #[prost(oneof = "public_key::Sum", tags = "1, 2")]
66    pub sum: ::core::option::Option<public_key::Sum>,
67}
68/// Nested message and enum types in `PublicKey`.
69pub mod public_key {
70    #[derive(::serde::Deserialize, ::serde::Serialize)]
71    #[serde(tag = "type", content = "value")]
72    #[allow(clippy::derive_partial_eq_without_eq)]
73    #[derive(Clone, PartialEq, ::prost::Oneof)]
74    pub enum Sum {
75        #[prost(bytes, tag = "1")]
76        #[serde(
77            rename = "tendermint/PubKeyEd25519",
78            with = "crate::serializers::bytes::base64string"
79        )]
80        Ed25519(::prost::alloc::vec::Vec<u8>),
81        #[prost(bytes, tag = "2")]
82        #[serde(
83            rename = "tendermint/PubKeySecp256k1",
84            with = "crate::serializers::bytes::base64string"
85        )]
86        Secp256k1(::prost::alloc::vec::Vec<u8>),
87    }
88}