Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix rebase main issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ed255 committed May 2, 2022
1 parent 18191e0 commit 524b2bd
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 16 deletions.
45 changes: 34 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gadgets/src/evm_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ use halo2_proofs::circuit::Layouter;
pub fn r<F: Field>() -> F {
let mut hasher = Keccak256::new();
for byte in 0..=u8::MAX {
hasher.update(&[byte]);
hasher.process(&[byte]);
}
let mut r = [0; 64];
r[..32].copy_from_slice(hasher.finalize().as_slice());
r[..32].copy_from_slice(hasher.fixed_result().as_slice());
F::from_bytes_wide(&r)
}

Expand Down
3 changes: 1 addition & 2 deletions zkevm-circuits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rand = "0.8"
itertools = "0.10.3"
lazy_static = "1.4"
keccak256 = { path = "../keccak256"}
log = "0.4.14"
log = "0.4"
env_logger = "0.9"
# ecdsa = { git = "https://github.com/appliedzkp/halo2wrong.git", rev = "00b90e8c3198de0a73cdb6308f7dbea2bd6f24cc", features = ["kzg"] }
# TODO: Replace by github path once https://github.com/appliedzkp/halo2wrong/pull/25 is merged
Expand All @@ -41,7 +41,6 @@ generic-array = "0.12.4"
libsecp256k1 = "0.7"
rlp = "0.5"
num-bigint = { version = "0.4" }
log = "0.4"
subtle = "2.4"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion zkevm-circuits/src/tx_circuit/sign_verify.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use crate::{
evm_circuit::util::{not, RandomLinearCombination, Word},
gadget::is_zero::{IsZeroChip, IsZeroConfig, IsZeroInstruction},
util::Expr,
};
use ecc::{EccConfig, GeneralEccChip};
use ecdsa::ecdsa::{AssignedEcdsaSig, AssignedPublicKey, EcdsaChip};
use gadgets::is_zero::{IsZeroChip, IsZeroConfig, IsZeroInstruction};
use group::{ff::Field, prime::PrimeCurveAffine, Curve};
use halo2_proofs::{
arithmetic::{BaseExt, CurveAffine},
Expand Down

0 comments on commit 524b2bd

Please sign in to comment.