pub struct FeldmanVerifier<F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> {
pub generator: G,
pub commitments: Vec<G>,
pub marker: PhantomData<F>,
}Expand description
A Feldman verifier is used to provide integrity checking of shamir shares
T commitments are made to be used for verification.
Fields§
§generator: GThe generator for the share polynomial coefficients
commitments: Vec<G>The commitments to the polynomial
marker: PhantomData<F>Marker
Implementations§
Source§impl<F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> FeldmanVerifier<F, G>
impl<F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> FeldmanVerifier<F, G>
Sourcepub fn verify(&self, share: &Share) -> VsssResult<()>
pub fn verify(&self, share: &Share) -> VsssResult<()>
Check whether the share is valid according this verifier set
Trait Implementations§
Source§impl<F: Clone + PrimeField, G: Clone + Group + GroupEncoding + ScalarMul<F>> Clone for FeldmanVerifier<F, G>
impl<F: Clone + PrimeField, G: Clone + Group + GroupEncoding + ScalarMul<F>> Clone for FeldmanVerifier<F, G>
Source§fn clone(&self) -> FeldmanVerifier<F, G>
fn clone(&self) -> FeldmanVerifier<F, G>
Returns a duplicate 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<F: Debug + PrimeField, G: Debug + Group + GroupEncoding + ScalarMul<F>> Debug for FeldmanVerifier<F, G>
impl<F: Debug + PrimeField, G: Debug + Group + GroupEncoding + ScalarMul<F>> Debug for FeldmanVerifier<F, G>
Source§impl<'de, F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> Deserialize<'de> for FeldmanVerifier<F, G>
impl<'de, F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> Deserialize<'de> for FeldmanVerifier<F, G>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<F: PartialEq + PrimeField, G: PartialEq + Group + GroupEncoding + ScalarMul<F>> PartialEq for FeldmanVerifier<F, G>
impl<F: PartialEq + PrimeField, G: PartialEq + Group + GroupEncoding + ScalarMul<F>> PartialEq for FeldmanVerifier<F, G>
Source§impl<F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> Serialize for FeldmanVerifier<F, G>
impl<F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> Serialize for FeldmanVerifier<F, G>
impl<F: Eq + PrimeField, G: Eq + Group + GroupEncoding + ScalarMul<F>> Eq for FeldmanVerifier<F, G>
impl<F: PrimeField, G: Group + GroupEncoding + ScalarMul<F>> StructuralPartialEq for FeldmanVerifier<F, G>
Auto Trait Implementations§
impl<F, G> Freeze for FeldmanVerifier<F, G>where
G: Freeze,
impl<F, G> RefUnwindSafe for FeldmanVerifier<F, G>where
G: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, G> Send for FeldmanVerifier<F, G>
impl<F, G> Sync for FeldmanVerifier<F, G>
impl<F, G> Unpin for FeldmanVerifier<F, G>
impl<F, G> UnwindSafe for FeldmanVerifier<F, G>where
G: UnwindSafe,
F: 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