franklin_crypto::plonk::circuit::goldilocks::prime_field_like

Struct GoldilocksExtAsFieldWrapper

Source
pub struct GoldilocksExtAsFieldWrapper<E: Engine, CS: ConstraintSystem<E>> { /* private fields */ }

Implementations§

Source§

impl<E: Engine, CS: ConstraintSystem<E>> GoldilocksExtAsFieldWrapper<E, CS>

Source

pub fn conditionally_select( cs: &mut CS, bit: Boolean, first: &Self, second: &Self, ) -> Self

Source

pub fn from_coeffs_in_base(coeffs: [GoldilocksField<E>; 2]) -> Self

Source

pub const fn into_coeffs_in_base(self) -> [GoldilocksField<E>; 2]

Source

pub fn from_wrapper_coeffs_in_base( coeffs: [GoldilocksAsFieldWrapper<E, CS>; 2], ) -> Self

Source

pub fn mul_by_base_and_accumulate_into( dst: &mut Self, base: &GoldilocksAsFieldWrapper<E, CS>, other: &Self, cs: &mut CS, ) -> Result<(), SynthesisError>

Source

pub fn mul_assign_by_base( &mut self, cs: &mut CS, base: &GoldilocksAsFieldWrapper<E, CS>, ) -> Result<(), SynthesisError>

Trait Implementations§

Source§

impl<E, CS: ConstraintSystem<E>> Clone for GoldilocksExtAsFieldWrapper<E, CS>
where E: Clone + Engine,

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<E: Engine, CS: ConstraintSystem<E>> Debug for GoldilocksExtAsFieldWrapper<E, CS>

Source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Engine, CS: ConstraintSystem<E>> Display for GoldilocksExtAsFieldWrapper<E, CS>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Engine, CS: ConstraintSystem<E>> From<GoldilocksFieldExt<E>> for GoldilocksExtAsFieldWrapper<E, CS>

Source§

fn from(value: GoldilocksFieldExt<E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Engine, CS: ConstraintSystem<E>> Hash for GoldilocksExtAsFieldWrapper<E, CS>

Source§

fn hash<__HECS>(&self, __state: &mut __HECS)
where __HECS: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<E: Engine, CS> PrimeFieldLike for GoldilocksExtAsFieldWrapper<E, CS>
where CS: 'static + ConstraintSystem<E>,

Source§

type Base = GoldilocksField

Source§

type Context = CS

Source§

fn zero(_ctx: &mut Self::Context) -> Self

Source§

fn one(_ctx: &mut Self::Context) -> Self

Source§

fn minus_one(_ctx: &mut Self::Context) -> Self

Source§

fn add_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self

Source§

fn sub_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self

Source§

fn mul_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self

Source§

fn square(&mut self, ctx: &mut Self::Context) -> &mut Self

Source§

fn negate(&mut self, ctx: &mut Self::Context) -> &mut Self

Source§

fn double(&mut self, ctx: &mut Self::Context) -> &mut Self

Source§

fn inverse(&self, ctx: &mut Self::Context) -> Self

Source§

fn constant(value: Self::Base, _ctx: &mut Self::Context) -> Self

Source§

fn pow_u64(&self, power: u64, ctx: &mut Self::Context) -> Self

Source§

fn mul_and_accumulate_into( acc: &mut Self, a: &Self, b: &Self, ctx: &mut Self::Context, )

Source§

fn small_pow(&mut self, pow: usize, ctx: &mut Self::Context)

Source§

impl<E, CS: ConstraintSystem<E>> Copy for GoldilocksExtAsFieldWrapper<E, CS>
where E: Copy + Engine,

Auto Trait Implementations§

§

impl<E, CS> Freeze for GoldilocksExtAsFieldWrapper<E, CS>
where <E as ScalarEngine>::Fr: Freeze,

§

impl<E, CS> RefUnwindSafe for GoldilocksExtAsFieldWrapper<E, CS>
where <E as ScalarEngine>::Fr: RefUnwindSafe,

§

impl<E, CS> Send for GoldilocksExtAsFieldWrapper<E, CS>

§

impl<E, CS> Sync for GoldilocksExtAsFieldWrapper<E, CS>

§

impl<E, CS> Unpin for GoldilocksExtAsFieldWrapper<E, CS>
where <E as ScalarEngine>::Fr: Unpin,

§

impl<E, CS> UnwindSafe for GoldilocksExtAsFieldWrapper<E, CS>
where <E as ScalarEngine>::Fr: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> PipeOp<T> for T

Source§

fn to<F, U>(self, f: F) -> U
where F: FnOnce(T) -> U,

Source§

fn op<F>(self, f: F) -> T
where F: FnOnce(&mut T),

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V