1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/// A commitment to a polynomial, as a list of group elements.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifiableSecretSharingCommitment {
    /// Each of these bytes should be the serialization of a group element.
    #[prost(bytes = "vec", repeated, tag = "1")]
    pub elements: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
impl ::prost::Name for VerifiableSecretSharingCommitment {
    const NAME: &'static str = "VerifiableSecretSharingCommitment";
    const PACKAGE: &'static str = "penumbra.crypto.decaf377_frost.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.crypto.decaf377_frost.v1.{}", Self::NAME)
    }
}
/// The public package sent in round 1 of the DKG protocol.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DkgRound1Package {
    /// A commitment to the polynomial for secret sharing.
    #[prost(message, optional, tag = "1")]
    pub commitment: ::core::option::Option<VerifiableSecretSharingCommitment>,
    /// A proof of knowledge of the underlying secret being shared.
    #[prost(bytes = "vec", tag = "2")]
    pub proof_of_knowledge: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for DkgRound1Package {
    const NAME: &'static str = "DKGRound1Package";
    const PACKAGE: &'static str = "penumbra.crypto.decaf377_frost.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.crypto.decaf377_frost.v1.{}", Self::NAME)
    }
}
/// A share of the final signing key.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigningShare {
    /// These bytes should be a valid scalar.
    #[prost(bytes = "vec", tag = "1")]
    pub scalar: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for SigningShare {
    const NAME: &'static str = "SigningShare";
    const PACKAGE: &'static str = "penumbra.crypto.decaf377_frost.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.crypto.decaf377_frost.v1.{}", Self::NAME)
    }
}
/// The per-participant package sent in round 2 of the DKG protocol.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DkgRound2Package {
    /// This is the share we're sending to that participant.
    #[prost(message, optional, tag = "1")]
    pub signing_share: ::core::option::Option<SigningShare>,
}
impl ::prost::Name for DkgRound2Package {
    const NAME: &'static str = "DKGRound2Package";
    const PACKAGE: &'static str = "penumbra.crypto.decaf377_frost.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.crypto.decaf377_frost.v1.{}", Self::NAME)
    }
}
/// Represents a commitment to a nonce value.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NonceCommitment {
    /// These bytes should be a valid group element.
    #[prost(bytes = "vec", tag = "1")]
    pub element: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for NonceCommitment {
    const NAME: &'static str = "NonceCommitment";
    const PACKAGE: &'static str = "penumbra.crypto.decaf377_frost.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.crypto.decaf377_frost.v1.{}", Self::NAME)
    }
}
/// Represents the commitments to nonces needed for signing.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigningCommitments {
    /// One nonce to hide them.
    #[prost(message, optional, tag = "1")]
    pub hiding: ::core::option::Option<NonceCommitment>,
    /// Another to bind them.
    #[prost(message, optional, tag = "2")]
    pub binding: ::core::option::Option<NonceCommitment>,
}
impl ::prost::Name for SigningCommitments {
    const NAME: &'static str = "SigningCommitments";
    const PACKAGE: &'static str = "penumbra.crypto.decaf377_frost.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.crypto.decaf377_frost.v1.{}", Self::NAME)
    }
}
/// A share of the final signature. These get aggregated to make the actual thing.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignatureShare {
    /// These bytes should be a valid scalar.
    #[prost(bytes = "vec", tag = "1")]
    pub scalar: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for SignatureShare {
    const NAME: &'static str = "SignatureShare";
    const PACKAGE: &'static str = "penumbra.crypto.decaf377_frost.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.crypto.decaf377_frost.v1.{}", Self::NAME)
    }
}