spark_protos/opt/rustwide/workdir/src/generated/
common.rs1#[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#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct SigningCommitment {
18 #[prost(bytes = "vec", tag = "1")]
20 pub hiding: ::prost::alloc::vec::Vec<u8>,
21 #[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 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 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}