Struct powersoftau::Accumulator
[−]
[src]
pub struct Accumulator { /* fields omitted */ }
The Accumulator
is an object that participants of the ceremony contribute
randomness to. This object contains powers of trapdoor tau
in G1 and in G2 over
fixed generators, and additionally in G1 over two other generators of exponents
alpha
and beta
over those fixed generators. In other words:
- (τ, τ2, ..., τ222 - 2, α, ατ, ατ2, ..., ατ221 - 1, β, βτ, βτ2, ..., βτ221 - 1)1
- (β, τ, τ2, ..., τ221 - 1)2
Methods
impl Accumulator
[src]
fn new() -> Self
[src]
Constructs an "initial" accumulator with τ = 1, α = 1, β = 1.
fn serialize<W: Write>(
&self,
writer: &mut W,
compression: UseCompression
) -> Result<()>
[src]
&self,
writer: &mut W,
compression: UseCompression
) -> Result<()>
Write the accumulator with some compression behavior.
fn deserialize<R: Read>(
reader: &mut R,
compression: UseCompression,
checked: CheckForCorrectness
) -> Result<Self, DeserializationError>
[src]
reader: &mut R,
compression: UseCompression,
checked: CheckForCorrectness
) -> Result<Self, DeserializationError>
Read the accumulator from disk with some compression behavior. checked
indicates whether we should check it's a valid element of the group and
not the point at infinity.
fn transform(&mut self, key: &PrivateKey)
[src]
Transforms the accumulator with a private key.
Trait Implementations
impl PartialEq for Accumulator
[src]
fn eq(&self, __arg_0: &Accumulator) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Accumulator) -> bool
[src]
This method tests for !=
.
impl Eq for Accumulator
[src]
impl Clone for Accumulator
[src]
fn clone(&self) -> Accumulator
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more