From 698ab6e749f3bc5503fb5bf010f365ec075a3e53 Mon Sep 17 00:00:00 2001 From: Dima V <50062893+typ3c4t@users.noreply.github.com> Date: Wed, 11 Jan 2023 05:43:56 -0800 Subject: [PATCH 1/3] Update evm/src/bn254.rs Co-authored-by: Jacqueline Nabaglo --- evm/src/bn254.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/evm/src/bn254.rs b/evm/src/bn254.rs index 701ced16..01151ca7 100644 --- a/evm/src/bn254.rs +++ b/evm/src/bn254.rs @@ -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; From 068f74854a7eea1163593bf57ba519c0aca2faa8 Mon Sep 17 00:00:00 2001 From: Dima V <50062893+typ3c4t@users.noreply.github.com> Date: Wed, 11 Jan 2023 05:45:08 -0800 Subject: [PATCH 2/3] Update evm/src/witness/util.rs Co-authored-by: Jacqueline Nabaglo --- evm/src/witness/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/src/witness/util.rs b/evm/src/witness/util.rs index 697ebb80..eb8988a0 100644 --- a/evm/src/witness/util.rs +++ b/evm/src/witness/util.rs @@ -39,7 +39,7 @@ pub(crate) fn stack_peek(state: &GenerationState, i: usize) -> Opti ))) } -/// Peak at the entire stack. +/// Peek at the entire stack. pub(crate) fn stack_peeks(state: &GenerationState) -> Option> { let n = state.registers.stack_len; let mut stack: Vec = vec![]; From 42f98a09ae42ce048d1b85d0e4cac1ad0a90da85 Mon Sep 17 00:00:00 2001 From: Dima V <50062893+typ3c4t@users.noreply.github.com> Date: Wed, 11 Jan 2023 05:58:26 -0800 Subject: [PATCH 3/3] Update evm/src/bn254.rs Co-authored-by: Jacqueline Nabaglo --- evm/src/bn254.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/src/bn254.rs b/evm/src/bn254.rs index 01151ca7..28bc27fb 100644 --- a/evm/src/bn254.rs +++ b/evm/src/bn254.rs @@ -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]