Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
umadayal committed Dec 5, 2024
1 parent c8cc8a6 commit 5e546ac
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 361 deletions.
3 changes: 2 additions & 1 deletion crates/core/executor/src/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ pub fn hook_r1_ecrecover(_: HookEnv, buf: &[u8]) -> Vec<Vec<u8>> {
return vec![vec![0]];
};

let bytes = recovered_key.to_sec1_bytes();
let recovered_key_encoded = recovered_key.to_encoded_point(true);
let bytes = recovered_key_encoded.as_bytes();

let (_, s) = sig.split_scalars();
let s_inverse = s.invert();
Expand Down
Loading

0 comments on commit 5e546ac

Please sign in to comment.