pub struct BigUintModPowHint;Implementations§
Source§impl BigUintModPowHint
impl BigUintModPowHint
pub const fn new() -> Self
Sourcepub fn call(
builder: &CircuitBuilder,
base: &[Wire],
exp: &[Wire],
modulus: &[Wire],
) -> Vec<Wire>
pub fn call( builder: &CircuitBuilder, base: &[Wire], exp: &[Wire], modulus: &[Wire], ) -> Vec<Wire>
Modular exponentiation.
Computes (base^exp) % modulus.
This is a hint - a deterministic computation that happens only on the prover side.
The result should be additionally constrained using bignum circuits.
Trait Implementations§
Source§impl Default for BigUintModPowHint
impl Default for BigUintModPowHint
Source§impl Hint for BigUintModPowHint
impl Hint for BigUintModPowHint
Auto Trait Implementations§
impl Freeze for BigUintModPowHint
impl RefUnwindSafe for BigUintModPowHint
impl Send for BigUintModPowHint
impl Sync for BigUintModPowHint
impl Unpin for BigUintModPowHint
impl UnsafeUnpin for BigUintModPowHint
impl UnwindSafe for BigUintModPowHint
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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