Skip to main content

Verifiable

Trait Verifiable 

Source
pub trait Verifiable: Reconstructible {
    // Required methods
    fn verify(&self, openings: &[Self::Opening]) -> Result<(), PrimitiveError>;
    fn verify_from(
        &self,
        _opening: &Self::Opening,
        _peer_index: PeerIndex,
    ) -> Result<(), PrimitiveError>;
    fn verify_all(shares: &[Self]) -> Result<(), PrimitiveError>;
}
Expand description

Verify secret share/s from one or more openings.

Required Methods§

Source

fn verify(&self, openings: &[Self::Opening]) -> Result<(), PrimitiveError>

Verify openings from all peers.

Source

fn verify_from( &self, _opening: &Self::Opening, _peer_index: PeerIndex, ) -> Result<(), PrimitiveError>

Verify an opening from a specific peer.

Source

fn verify_all(shares: &[Self]) -> Result<(), PrimitiveError>

Verify all shares by opening each share towards all other peers and performing pairwise verification of the openings.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: VerifiableWith<VerificationData = ()>> Verifiable for T