Struct snarkvm_wasm::EdwardsParameters
source · pub struct EdwardsParameters;
Trait Implementations
sourceimpl Clone for EdwardsParameters
impl Clone for EdwardsParameters
sourcefn clone(&self) -> EdwardsParameters
fn clone(&self) -> EdwardsParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EdwardsParameters
impl Debug for EdwardsParameters
sourceimpl Hash for EdwardsParameters
impl Hash for EdwardsParameters
sourceimpl ModelParameters for EdwardsParameters
impl ModelParameters for EdwardsParameters
type BaseField = Fp256<FrParameters>
type ScalarField = Fp256<FrParameters>
sourceimpl MontgomeryParameters for EdwardsParameters
impl MontgomeryParameters for EdwardsParameters
sourceconst MONTGOMERY_A: Fp256<FrParameters> = Fq{
0:
BigInteger256([13800168384327121454u64, 6841573379969807446u64,
12529593083398462246u64, 853978956621483129u64]),
1: std::marker::PhantomData,}
const MONTGOMERY_A: Fp256<FrParameters> = Fq{ 0: BigInteger256([13800168384327121454u64, 6841573379969807446u64, 12529593083398462246u64, 853978956621483129u64]), 1: std::marker::PhantomData,}
MONTGOMERY_A = 3990301581132929505568273333084066329187552697088022219156688740916631500114 = 0x8D26E3FADA9010A26949031ECE3971B93952AD84D4753DDEDB748DA37E8F552
sourceconst MONTGOMERY_B: Fp256<FrParameters> = Fq{
0:
BigInteger256([7239382437352637935u64, 14509846070439283655u64,
5083066350480839936u64, 1265663645916442191u64]),
1: std::marker::PhantomData,}
const MONTGOMERY_B: Fp256<FrParameters> = Fq{ 0: BigInteger256([7239382437352637935u64, 14509846070439283655u64, 5083066350480839936u64, 1265663645916442191u64]), 1: std::marker::PhantomData,}
MONTGOMERY_B = 4454160168295440918680551605697480202188346638066041608778544715000777738925 = 0x9D8F71EEC83A44C3A1FBCEC6F5418E5C6154C2682B8AC231C5A3725C8170AAD
type TwistedEdwardsParameters = EdwardsParameters
sourceimpl PartialEq<EdwardsParameters> for EdwardsParameters
impl PartialEq<EdwardsParameters> for EdwardsParameters
sourcefn eq(&self, other: &EdwardsParameters) -> bool
fn eq(&self, other: &EdwardsParameters) -> bool
sourceimpl TwistedEdwardsParameters for EdwardsParameters
impl TwistedEdwardsParameters for EdwardsParameters
sourceconst AFFINE_GENERATOR_COEFFS: (<EdwardsParameters as ModelParameters>::BaseField, <EdwardsParameters as ModelParameters>::BaseField) = (GENERATOR_X, GENERATOR_Y)
const AFFINE_GENERATOR_COEFFS: (<EdwardsParameters as ModelParameters>::BaseField, <EdwardsParameters as ModelParameters>::BaseField) = (GENERATOR_X, GENERATOR_Y)
Generated randomly
sourceconst COFACTOR_INV: Fp256<FrParameters> = Fr{
0:
BigInteger256([10836190823041854989, 14880086764632731920,
5023208332782666747, 239524813690824359]),
1: std::marker::PhantomData,}
const COFACTOR_INV: Fp256<FrParameters> = Fr{ 0: BigInteger256([10836190823041854989, 14880086764632731920, 5023208332782666747, 239524813690824359]), 1: std::marker::PhantomData,}
COFACTOR_INV = 527778859339273151515551558673846658209717731602102048798421311598680340096
sourceconst EDWARDS_A: Fp256<FrParameters> = Fq{
0:
BigInteger256([10157024534604021774, 16668528035959406606,
5322190058819395602, 387181115924875961]),
1: std::marker::PhantomData,}
const EDWARDS_A: Fp256<FrParameters> = Fq{ 0: BigInteger256([10157024534604021774, 16668528035959406606, 5322190058819395602, 387181115924875961]), 1: std::marker::PhantomData,}
EDWARDS_A = -1
sourceconst EDWARDS_D: Fp256<FrParameters> = Fq{
0:
BigInteger256([15008245758212136496, 17341409599856531410,
648869460136961410, 719771289660577536]),
1: std::marker::PhantomData,}
const EDWARDS_D: Fp256<FrParameters> = Fq{ 0: BigInteger256([15008245758212136496, 17341409599856531410, 648869460136961410, 719771289660577536]), 1: std::marker::PhantomData,}
EDWARDS_D = 3021
sourcefn mul_by_a(
elem: &<EdwardsParameters as ModelParameters>::BaseField
) -> <EdwardsParameters as ModelParameters>::BaseField
fn mul_by_a(
elem: &<EdwardsParameters as ModelParameters>::BaseField
) -> <EdwardsParameters as ModelParameters>::BaseField
Multiplication by a
is just negation.
Is a
1 or -1?
type MontgomeryParameters = EdwardsParameters
impl Copy for EdwardsParameters
impl Eq for EdwardsParameters
impl StructuralEq for EdwardsParameters
impl StructuralPartialEq for EdwardsParameters
Auto Trait Implementations
impl RefUnwindSafe for EdwardsParameters
impl Send for EdwardsParameters
impl Sync for EdwardsParameters
impl Unpin for EdwardsParameters
impl UnwindSafe for EdwardsParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;