spark_protos/opt/rustwide/workdir/src/generated/
common.rs

1// This file is @generated by prost-build.
2///
3/// A map from a string to a bytes. It's a workaround to have map arrays in
4/// proto.
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct PackageMap {
7    #[prost(map = "string, bytes", tag = "1")]
8    pub packages: ::std::collections::HashMap<
9        ::prost::alloc::string::String,
10        ::prost::alloc::vec::Vec<u8>,
11    >,
12}
13///
14/// A commitment for frost signing.
15/// It's a pair of public keys (points) in secp256k1 curve.
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct SigningCommitment {
18    /// The public key for hiding. 33 bytes.
19    #[prost(bytes = "vec", tag = "1")]
20    pub hiding: ::prost::alloc::vec::Vec<u8>,
21    /// The public key for binding. 33 bytes.
22    #[prost(bytes = "vec", tag = "2")]
23    pub binding: ::prost::alloc::vec::Vec<u8>,
24}
25#[derive(Clone, PartialEq, ::prost::Message)]
26pub struct SigningResult {
27    #[prost(bytes = "vec", tag = "1")]
28    pub signature_share: ::prost::alloc::vec::Vec<u8>,
29}
30#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
31#[repr(i32)]
32pub enum SignatureIntent {
33    Creation = 0,
34    Transfer = 1,
35    Aggregate = 2,
36    Refresh = 3,
37    Extend = 4,
38}
39impl SignatureIntent {
40    /// String value of the enum field names used in the ProtoBuf definition.
41    ///
42    /// The values are not transformed in any way and thus are considered stable
43    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
44    pub fn as_str_name(&self) -> &'static str {
45        match self {
46            Self::Creation => "CREATION",
47            Self::Transfer => "TRANSFER",
48            Self::Aggregate => "AGGREGATE",
49            Self::Refresh => "REFRESH",
50            Self::Extend => "EXTEND",
51        }
52    }
53    /// Creates an enum from field names used in the ProtoBuf definition.
54    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
55        match value {
56            "CREATION" => Some(Self::Creation),
57            "TRANSFER" => Some(Self::Transfer),
58            "AGGREGATE" => Some(Self::Aggregate),
59            "REFRESH" => Some(Self::Refresh),
60            "EXTEND" => Some(Self::Extend),
61            _ => None,
62        }
63    }
64}