pub enum FixedGenerators {
ProofGenerationKey = 0,
NoteCommitmentRandomness = 1,
NullifierPosition = 2,
ValueCommitmentValue = 3,
ValueCommitmentRandomness = 4,
SpendingKeyGenerator = 5,
Max = 6,
}
Expand description
Fixed generators of the Jubjub curve of unknown exponent.
Variants§
ProofGenerationKey = 0
The prover will demonstrate knowledge of discrete log with respect to this base when they are constructing a proof, in order to authorize proof construction.
NoteCommitmentRandomness = 1
The note commitment is randomized over this generator.
NullifierPosition = 2
The node commitment is randomized again by the position in order to supply the nullifier computation with a unique input w.r.t. the note being spent, to prevent Faerie gold attacks.
ValueCommitmentValue = 3
The value commitment is used to check balance between inputs and outputs. The value is placed over this generator.
ValueCommitmentRandomness = 4
The value commitment is randomized over this generator, for privacy.
SpendingKeyGenerator = 5
The spender proves discrete log with respect to this base at spend time.
Max = 6
Trait Implementations§
Source§impl Clone for FixedGenerators
impl Clone for FixedGenerators
Source§fn clone(&self) -> FixedGenerators
fn clone(&self) -> FixedGenerators
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for FixedGenerators
Auto Trait Implementations§
impl Freeze for FixedGenerators
impl RefUnwindSafe for FixedGenerators
impl Send for FixedGenerators
impl Sync for FixedGenerators
impl Unpin for FixedGenerators
impl UnwindSafe for FixedGenerators
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more