penumbra_sdk_proto/gen/
tendermint.crypto.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct Proof {
4    #[prost(int64, tag = "1")]
5    pub total: i64,
6    #[prost(int64, tag = "2")]
7    pub index: i64,
8    #[prost(bytes = "vec", tag = "3")]
9    pub leaf_hash: ::prost::alloc::vec::Vec<u8>,
10    #[prost(bytes = "vec", repeated, tag = "4")]
11    pub aunts: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
12}
13impl ::prost::Name for Proof {
14    const NAME: &'static str = "Proof";
15    const PACKAGE: &'static str = "tendermint.crypto";
16    fn full_name() -> ::prost::alloc::string::String {
17        "tendermint.crypto.Proof".into()
18    }
19    fn type_url() -> ::prost::alloc::string::String {
20        "/tendermint.crypto.Proof".into()
21    }
22}
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct ValueOp {
25    /// Encoded in ProofOp.Key.
26    #[prost(bytes = "vec", tag = "1")]
27    pub key: ::prost::alloc::vec::Vec<u8>,
28    /// To encode in ProofOp.Data
29    #[prost(message, optional, tag = "2")]
30    pub proof: ::core::option::Option<Proof>,
31}
32impl ::prost::Name for ValueOp {
33    const NAME: &'static str = "ValueOp";
34    const PACKAGE: &'static str = "tendermint.crypto";
35    fn full_name() -> ::prost::alloc::string::String {
36        "tendermint.crypto.ValueOp".into()
37    }
38    fn type_url() -> ::prost::alloc::string::String {
39        "/tendermint.crypto.ValueOp".into()
40    }
41}
42#[derive(Clone, PartialEq, ::prost::Message)]
43pub struct DominoOp {
44    #[prost(string, tag = "1")]
45    pub key: ::prost::alloc::string::String,
46    #[prost(string, tag = "2")]
47    pub input: ::prost::alloc::string::String,
48    #[prost(string, tag = "3")]
49    pub output: ::prost::alloc::string::String,
50}
51impl ::prost::Name for DominoOp {
52    const NAME: &'static str = "DominoOp";
53    const PACKAGE: &'static str = "tendermint.crypto";
54    fn full_name() -> ::prost::alloc::string::String {
55        "tendermint.crypto.DominoOp".into()
56    }
57    fn type_url() -> ::prost::alloc::string::String {
58        "/tendermint.crypto.DominoOp".into()
59    }
60}
61/// ProofOp defines an operation used for calculating Merkle root
62/// The data could be arbitrary format, providing nessecary data
63/// for example neighbouring node hash
64#[derive(Clone, PartialEq, ::prost::Message)]
65pub struct ProofOp {
66    #[prost(string, tag = "1")]
67    pub r#type: ::prost::alloc::string::String,
68    #[prost(bytes = "vec", tag = "2")]
69    pub key: ::prost::alloc::vec::Vec<u8>,
70    #[prost(bytes = "vec", tag = "3")]
71    pub data: ::prost::alloc::vec::Vec<u8>,
72}
73impl ::prost::Name for ProofOp {
74    const NAME: &'static str = "ProofOp";
75    const PACKAGE: &'static str = "tendermint.crypto";
76    fn full_name() -> ::prost::alloc::string::String {
77        "tendermint.crypto.ProofOp".into()
78    }
79    fn type_url() -> ::prost::alloc::string::String {
80        "/tendermint.crypto.ProofOp".into()
81    }
82}
83/// ProofOps is Merkle proof defined by the list of ProofOps
84#[derive(Clone, PartialEq, ::prost::Message)]
85pub struct ProofOps {
86    #[prost(message, repeated, tag = "1")]
87    pub ops: ::prost::alloc::vec::Vec<ProofOp>,
88}
89impl ::prost::Name for ProofOps {
90    const NAME: &'static str = "ProofOps";
91    const PACKAGE: &'static str = "tendermint.crypto";
92    fn full_name() -> ::prost::alloc::string::String {
93        "tendermint.crypto.ProofOps".into()
94    }
95    fn type_url() -> ::prost::alloc::string::String {
96        "/tendermint.crypto.ProofOps".into()
97    }
98}
99/// PublicKey defines the keys available for use with Validators
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct PublicKey {
102    #[prost(oneof = "public_key::Sum", tags = "1, 2")]
103    pub sum: ::core::option::Option<public_key::Sum>,
104}
105/// Nested message and enum types in `PublicKey`.
106pub mod public_key {
107    #[derive(Clone, PartialEq, ::prost::Oneof)]
108    pub enum Sum {
109        #[prost(bytes, tag = "1")]
110        Ed25519(::prost::alloc::vec::Vec<u8>),
111        #[prost(bytes, tag = "2")]
112        Secp256k1(::prost::alloc::vec::Vec<u8>),
113    }
114}
115impl ::prost::Name for PublicKey {
116    const NAME: &'static str = "PublicKey";
117    const PACKAGE: &'static str = "tendermint.crypto";
118    fn full_name() -> ::prost::alloc::string::String {
119        "tendermint.crypto.PublicKey".into()
120    }
121    fn type_url() -> ::prost::alloc::string::String {
122        "/tendermint.crypto.PublicKey".into()
123    }
124}