pub struct Accumulator {
pub state: BigUint,
pub trapdoor: BigUint,
pub modulus: BigUint,
pub elements: HashMap<Vec<u8>, BigUint>,
}Expand description
An accumulator state.
Fields§
§state: BigUintThe accumulated value.
trapdoor: BigUintThe trapdoor (prime factorization of the modulus).
modulus: BigUintThe modulus N = p * q.
elements: HashMap<Vec<u8>, BigUint>Element → prime representation.
Implementations§
Trait Implementations§
Source§impl Clone for Accumulator
impl Clone for Accumulator
Source§fn clone(&self) -> Accumulator
fn clone(&self) -> Accumulator
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 moreSource§impl Debug for Accumulator
impl Debug for Accumulator
Auto Trait Implementations§
impl Freeze for Accumulator
impl RefUnwindSafe for Accumulator
impl Send for Accumulator
impl Sync for Accumulator
impl Unpin for Accumulator
impl UnsafeUnpin for Accumulator
impl UnwindSafe for Accumulator
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