1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthWrapper {
    /// Serialized version of the public key.
    #[prost(bytes, tag="1")]
    pub pub_key: std::vec::Vec<u8>,
    /// Signature is the signature of the metadata by public key.
    #[prost(bytes, tag="2")]
    pub signature: std::vec::Vec<u8>,
    #[prost(enumeration="auth_wrapper::SignatureScheme", tag="3")]
    pub scheme: i32,
    /// The serialized payload covered by the signature.
    #[prost(bytes, tag="4")]
    pub serialized_payload: std::vec::Vec<u8>,
}
pub mod auth_wrapper {
    /// Signature scheme provided.  Default is Schnorr, but can be ecdsa.
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum SignatureScheme {
        Schnorr = 0,
        Ecdsa = 1,
    }
}