Struct frost_rerandomized::RandomizedParams
source · pub struct RandomizedParams<C: Ciphersuite> { /* private fields */ }Expand description
Randomized params for a signing instance of randomized FROST.
Implementations§
source§impl<C> RandomizedParams<C>where
C: Ciphersuite,
impl<C> RandomizedParams<C>where C: Ciphersuite,
sourcepub fn new<R: RngCore + CryptoRng>(
public_key_package: &PublicKeyPackage<C>,
rng: R
) -> Self
pub fn new<R: RngCore + CryptoRng>( public_key_package: &PublicKeyPackage<C>, rng: R ) -> Self
Create a new RandomizedParams for the given PublicKeyPackage
sourcepub fn randomizer(&self) -> &Scalar<C>
pub fn randomizer(&self) -> &Scalar<C>
Return the randomizer.
It can be useful to the coordinator, e.g. to generate the ZK proof in Zcash. It MUST NOT be sent to other parties.
sourcepub fn randomizer_point(&self) -> &<C::Group as Group>::Element
pub fn randomizer_point(&self) -> &<C::Group as Group>::Element
Return the randomizer point.
It must be sent by the coordinator to each participant when signing.
sourcepub fn randomized_group_public_key(&self) -> &VerifyingKey<C>
pub fn randomized_group_public_key(&self) -> &VerifyingKey<C>
Return the randomized group public key.
It can be used to verify the final signature.
Auto Trait Implementations§
impl<C> RefUnwindSafe for RandomizedParams<C>where <<C as Ciphersuite>::Group as Group>::Element: RefUnwindSafe, <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: RefUnwindSafe,
impl<C> Send for RandomizedParams<C>where <<C as Ciphersuite>::Group as Group>::Element: Send, <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Send,
impl<C> Sync for RandomizedParams<C>where <<C as Ciphersuite>::Group as Group>::Element: Sync, <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Sync,
impl<C> Unpin for RandomizedParams<C>where <<C as Ciphersuite>::Group as Group>::Element: Unpin, <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Unpin,
impl<C> UnwindSafe for RandomizedParams<C>where <<C as Ciphersuite>::Group as Group>::Element: UnwindSafe, <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more