pub struct CommitmentKey {
pub n_tilde: BigUint,
pub h1: BigUint,
pub h2: BigUint,
}Expand description
Auxiliary commitment key (Ñ, h₁, h₂) — see the module docs.
Fields§
§n_tilde: BigUintSafe-prime product modulus.
h1: BigUintFirst generator (a random quadratic residue).
h2: BigUintSecond generator (h₁^w for discarded w).
Trait Implementations§
Source§impl Clone for CommitmentKey
impl Clone for CommitmentKey
Source§fn clone(&self) -> CommitmentKey
fn clone(&self) -> CommitmentKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommitmentKey
impl RefUnwindSafe for CommitmentKey
impl Send for CommitmentKey
impl Sync for CommitmentKey
impl Unpin for CommitmentKey
impl UnsafeUnpin for CommitmentKey
impl UnwindSafe for CommitmentKey
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