Merge branch 'non-inv' of github.com:mir-protocol/plonky2 into non-inv

This commit is contained in:
Dmitry Vagner 2023-01-11 18:20:55 +04:00
commit 49db35d35e
2 changed files with 6 additions and 6 deletions

View File

@ -5,10 +5,10 @@ use itertools::Itertools;
use rand::{thread_rng, Rng};
pub const BN_BASE: U256 = U256([
4332616871279656263,
10917124144477883021,
13281191951274694749,
3486998266802970665,
0x3c208c16d87cfd47,
0x97816a916871ca8d,
0xb85045b68181585d,
0x30644e72e131a029,
]);
pub type Fp = U256;
@ -59,7 +59,7 @@ pub fn twisted_curve_generator() -> TwistedCurve {
]
}
const ZERO: Fp = U256([0, 0, 0, 0]);
const ZERO: Fp = U256::zero();
fn embed_fp2(x: Fp) -> Fp2 {
[x, ZERO]

View File

@ -39,7 +39,7 @@ pub(crate) fn stack_peek<F: Field>(state: &GenerationState<F>, i: usize) -> Opti
)))
}
/// Peak at the entire stack.
/// Peek at the entire stack.
pub(crate) fn stack_peeks<F: Field>(state: &GenerationState<F>) -> Option<Vec<U256>> {
let n = state.registers.stack_len;
let mut stack: Vec<U256> = vec![];