pub struct EccChip<FixedPoints: FixedPoints<Affine>> { /* private fields */ }
Expand description

An EccInstructions chip that uses 10 advice columns.

Implementations

Reconstructs this chip from the given config.

Side effects

All columns in advices will be equality-enabled.

Trait Implementations

Converts a base field element that exists as a variable in the circuit into a scalar to be used in variable-base scalar multiplication. Read more
A type that holds the configuration for this chip, and any other state it may need during circuit synthesis, that can be derived during Circuit::configure. Read more
A type that holds any general chip state that needs to be loaded at the start of Circuit::synthesize. This might simply be () for some chips. Read more
The chip holds its own configuration.
Provides access to general chip state loaded at the beginning of circuit synthesis. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Variable representing a full-width element of the elliptic curve’s scalar field, to be used for fixed-base scalar mul. Read more
Variable representing a signed short element of the elliptic curve’s scalar field, to be used for fixed-base scalar mul. Read more
Variable representing a scalar used in variable-base scalar mul. Read more
Variable representing an elliptic curve point.
Variable representing a non-identity elliptic curve point.
Variable representing the affine short Weierstrass x-coordinate of an elliptic curve point. Read more
Enumeration of the set of fixed bases to be used in scalar mul. TODO: When associated consts can be used as const generics, introduce Self::NUM_WINDOWS, Self::NUM_WINDOWS_BASE_FIELD, Self::NUM_WINDOWS_SHORT and use them to differentiate FixedPoints types. Read more
Constrains point a to be equal in value to point b.
Witnesses the given point as a private input to the circuit. This allows the point to be the identity, mapped to (0, 0) in affine coordinates. Read more
Witnesses the given point as a private input to the circuit. This returns an error if the point is the identity. Read more
Witnesses a full-width scalar to be used in variable-base multiplication.
Witnesses a full-width scalar to be used in fixed-base multiplication.
Converts a magnitude and sign that exists as variables in the circuit into a signed short scalar to be used in fixed-base scalar multiplication. Read more
Extracts the x-coordinate of a point.
Performs incomplete point addition, returning a + b. Read more
Performs complete point addition, returning a + b.
Performs variable-base scalar multiplication, returning [scalar] base.
Performs fixed-base scalar multiplication using a full-width scalar, returning [scalar] base.
Performs fixed-base scalar multiplication using a short signed scalar, returning [scalar] base. Read more
Performs fixed-base scalar multiplication using a base field element as the scalar. In the current implementation, this base field element must be output from another instruction. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Variable in the circuit.
Load a variable.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts self into T using Into<T>. Read more
Causes self to use its Binary implementation when Debug-formatted. Read more
Causes self to use its Display implementation when Debug-formatted. Read more
Causes self to use its LowerExp implementation when Debug-formatted. Read more
Causes self to use its LowerHex implementation when Debug-formatted. Read more
Causes self to use its Octal implementation when Debug-formatted. Read more
Causes self to use its Pointer implementation when Debug-formatted. Read more
Causes self to use its UpperExp implementation when Debug-formatted. Read more
Causes self to use its UpperHex implementation when Debug-formatted. Read more
Formats each item in a sequence. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function. Read more
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Attempts to convert self into T using TryInto<T>. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more