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 ==
.