[−][src]Struct frost_dalek::keygen::IndividualPublicKey
A public verification share for a participant.
Any participant can recalculate the public verification share, which is the
public half of a SecretKey
, of any other participant in the protocol.
Fields
index: u32
The participant index to which this key belongs.
The public verification share.
Implementations
impl IndividualPublicKey
[src]
pub fn verify(
&self,
parameters: &Parameters,
commitments: &[RistrettoPoint]
) -> Result<(), ()>
[src]
&self,
parameters: &Parameters,
commitments: &[RistrettoPoint]
) -> Result<(), ()>
Any participant can compute the public verification share of any other participant.
This is done by re-computing each IndividualPublicKey
as \(Y_i\) s.t.:
\[ Y_i = \prod_{j=1}^{n} \prod_{k=0}^{t-1} \phi_{jk}^{i^{k} \mod q} \]
for each Participant
index \(i\).
Inputs
- The
Parameters
of this threshold signing instance, and - A vector of
commitments
regarding the secret polynomialCoefficients
that thisIndividualPublicKey
was generated with.
Returns
A Result
with either an empty Ok
or Err
value, depending on
whether or not the verification was successful.
Trait Implementations
impl Clone for IndividualPublicKey
[src]
pub fn clone(&self) -> IndividualPublicKey
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for IndividualPublicKey
[src]
impl From<&'_ SecretKey> for IndividualPublicKey
[src]
pub fn from(source: &SecretKey) -> IndividualPublicKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for IndividualPublicKey
[src]
impl Send for IndividualPublicKey
[src]
impl Sync for IndividualPublicKey
[src]
impl Unpin for IndividualPublicKey
[src]
impl UnwindSafe for IndividualPublicKey
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,