pub struct RandomizedParams<C: Ciphersuite> { /* private fields */ }
Expand description
Randomized parameters for a signing instance of randomized FROST.
Implementations§
Source§impl<C: Ciphersuite> RandomizedParams<C>
Auto-generated by derive_getters::Getters
.
impl<C: Ciphersuite> RandomizedParams<C>
Auto-generated by derive_getters::Getters
.
Sourcepub fn randomizer(&self) -> &Randomizer<C>
pub fn randomizer(&self) -> &Randomizer<C>
The randomizer, also called α
Sourcepub fn randomizer_element(&self) -> &<C::Group as Group>::Element
pub fn randomizer_element(&self) -> &<C::Group as Group>::Element
The generator multiplied by the randomizer.
Sourcepub fn randomized_verifying_key(&self) -> &VerifyingKey<C>
pub fn randomized_verifying_key(&self) -> &VerifyingKey<C>
The randomized group public key. The group public key added to the randomizer element.
Source§impl<C> RandomizedParams<C>where
C: RandomizedCiphersuite,
impl<C> RandomizedParams<C>where
C: RandomizedCiphersuite,
Sourcepub fn new<R: RngCore + CryptoRng>(
group_verifying_key: &VerifyingKey<C>,
signing_package: &SigningPackage<C>,
rng: R,
) -> Result<Self, Error<C>>
pub fn new<R: RngCore + CryptoRng>( group_verifying_key: &VerifyingKey<C>, signing_package: &SigningPackage<C>, rng: R, ) -> Result<Self, Error<C>>
Create a new RandomizedParams
for the given VerifyingKey
and
the given participants
.
Source§impl<C> RandomizedParams<C>where
C: Ciphersuite,
impl<C> RandomizedParams<C>where
C: Ciphersuite,
Sourcepub fn from_randomizer(
group_verifying_key: &VerifyingKey<C>,
randomizer: Randomizer<C>,
) -> Self
pub fn from_randomizer( group_verifying_key: &VerifyingKey<C>, randomizer: Randomizer<C>, ) -> Self
Create a new RandomizedParams
for the given VerifyingKey
and the
given participants
for the given randomizer
. The randomizer
MUST
be generated uniformly at random! Use RandomizedParams::new()
which
generates a fresh randomizer, unless your application requires generating
a randomizer outside.
Trait Implementations§
Source§impl<C: Clone + Ciphersuite> Clone for RandomizedParams<C>
impl<C: Clone + Ciphersuite> Clone for RandomizedParams<C>
Source§fn clone(&self) -> RandomizedParams<C>
fn clone(&self) -> RandomizedParams<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C> Debug for RandomizedParams<C>where
C: Ciphersuite,
impl<C> Debug for RandomizedParams<C>where
C: Ciphersuite,
Source§impl<C: PartialEq + Ciphersuite> PartialEq for RandomizedParams<C>
impl<C: PartialEq + Ciphersuite> PartialEq for RandomizedParams<C>
impl<C: Eq + Ciphersuite> Eq for RandomizedParams<C>
impl<C: Ciphersuite> StructuralPartialEq for RandomizedParams<C>
Auto Trait Implementations§
impl<C> Freeze for RandomizedParams<C>
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>
impl<C> Sync for RandomizedParams<C>
impl<C> Unpin for RandomizedParams<C>
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