Struct cryptid::threshold::ThresholdParty [−][src]
pub struct ThresholdParty { /* fields omitted */ }
Implementations
impl ThresholdParty
[src]
impl ThresholdParty
[src]pub fn from_existing(
index: usize,
min_trustees: usize,
trustee_count: usize,
secret_share: Scalar,
pubkey_proof: PubkeyProof,
pubkey: PublicKey
) -> Self
[src]
index: usize,
min_trustees: usize,
trustee_count: usize,
secret_share: Scalar,
pubkey_proof: PubkeyProof,
pubkey: PublicKey
) -> Self
pub fn pubkey(&self) -> PublicKey
[src]
pub fn pubkey_proof(&self) -> PubkeyProof
[src]
pub fn private_share(&self) -> Scalar
[src]
pub fn decrypt_share<R: Rng + CryptoRng>(
&self,
ct: &Ciphertext,
rng: &mut R
) -> DecryptShare
[src]
&self,
ct: &Ciphertext,
rng: &mut R
) -> DecryptShare
pub fn index(&self) -> usize
[src]
pub fn min_trustees(&self) -> usize
[src]
pub fn trustee_count(&self) -> usize
[src]
Trait Implementations
impl Clone for ThresholdParty
[src]
impl Clone for ThresholdParty
[src]Auto Trait Implementations
impl RefUnwindSafe for ThresholdParty
impl Send for ThresholdParty
impl Sync for ThresholdParty
impl Unpin for ThresholdParty
impl UnwindSafe for ThresholdParty
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
[src]
impl<T> Pointable for T
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more