mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-08 16:53:07 +00:00
Merge branch 'non-inv' of github.com:mir-protocol/plonky2 into non-inv
This commit is contained in:
commit
49db35d35e
@ -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]
|
||||
|
||||
@ -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![];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user