Struct frost_core::frost::BindingFactor
source · pub struct BindingFactor<C: Ciphersuite>(_);
Expand description
The binding factor, also known as rho (ρ)
Ensures each signature share is strongly bound to a signing set, specific set of commitments, and a specific message.
https://github.com/cfrg/draft-irtf-cfrg-frost/blob/master/draft-irtf-cfrg-frost.md
Implementations§
source§impl<C> BindingFactor<C>where
C: Ciphersuite,
impl<C> BindingFactor<C>where C: Ciphersuite,
sourcepub fn from_bytes(
bytes: <<C::Group as Group>::Field as Field>::Serialization
) -> Result<Self, Error<C>>
pub fn from_bytes( bytes: <<C::Group as Group>::Field as Field>::Serialization ) -> Result<Self, Error<C>>
Deserializes BindingFactor
from bytes.
sourcepub fn to_bytes(&self) -> <<C::Group as Group>::Field as Field>::Serialization
pub fn to_bytes(&self) -> <<C::Group as Group>::Field as Field>::Serialization
Serializes BindingFactor
to bytes.
Trait Implementations§
source§impl<C: Clone + Ciphersuite> Clone for BindingFactor<C>
impl<C: Clone + Ciphersuite> Clone for BindingFactor<C>
source§fn clone(&self) -> BindingFactor<C>
fn clone(&self) -> BindingFactor<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 BindingFactor<C>where
C: Ciphersuite,
impl<C> Debug for BindingFactor<C>where C: Ciphersuite,
source§impl<C: PartialEq + Ciphersuite> PartialEq<BindingFactor<C>> for BindingFactor<C>
impl<C: PartialEq + Ciphersuite> PartialEq<BindingFactor<C>> for BindingFactor<C>
source§fn eq(&self, other: &BindingFactor<C>) -> bool
fn eq(&self, other: &BindingFactor<C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<C: Eq + Ciphersuite> Eq for BindingFactor<C>
impl<C: Ciphersuite> StructuralEq for BindingFactor<C>
impl<C: Ciphersuite> StructuralPartialEq for BindingFactor<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for BindingFactor<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: RefUnwindSafe,
impl<C> Send for BindingFactor<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Send,
impl<C> Sync for BindingFactor<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Sync,
impl<C> Unpin for BindingFactor<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Unpin,
impl<C> UnwindSafe for BindingFactor<C>where <<<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