pub struct Dealer<G: Group> { /* private fields */ }
Expand description
Dealer in a Feldman verifiable secret sharing scheme.
Implementations§
Source§impl<G: Group> Dealer<G>
impl<G: Group> Dealer<G>
Sourcepub fn public_info(&self) -> (Vec<G::Element>, &ProofOfPossession<G>)
pub fn public_info(&self) -> (Vec<G::Element>, &ProofOfPossession<G>)
Returns public participant information: dealer’s public polynomial and proof of possession for the corresponding secret polynomial.
Returns a secret share for a participant with the specified index
.
§Panics
Panics if index
is out of allowed bounds.
Trait Implementations§
Source§impl<'de, G: Group> Deserialize<'de> for Dealer<G>
impl<'de, G: Group> Deserialize<'de> for Dealer<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
Auto Trait Implementations§
impl<G> Freeze for Dealer<G>
impl<G> RefUnwindSafe for Dealer<G>
impl<G> Send for Dealer<G>
impl<G> Sync for Dealer<G>
impl<G> Unpin for Dealer<G>
impl<G> UnwindSafe for Dealer<G>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)