Crate zkp_u256

Source

Macros§

Structs§

Traits§

Functions§

  • Compute a + b + carry, returning the result and the new carry over.
  • Compute <hi, lo> / d, returning the quotient and the remainder.
  • Compute a + (b * c) + carry, returning the result and the new carry over. Both a and carry can be the full 64-bit range
  • Compute a - (b * c + borrow), returning the result and the new borrow.
  • Compute a - (b + borrow), returning the result and the new borrow.
  • Slow but compile time constant version of to_montgomery.