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

chore: bump crypto deps #2260

Merged
merged 7 commits into from
Mar 15, 2023
Merged

chore: bump crypto deps #2260

merged 7 commits into from
Mar 15, 2023

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Mar 13, 2023

  • elliptic curve
  • k256
  • yubihsm

@tarcieri I seem to be doing something wrong with the api as the ethers-core tests fail now, maybe it's the Keccak256::new_with_prefix call?

ethers-core/src/utils/anvil.rs Show resolved Hide resolved
ethers-core/src/types/signature.rs Show resolved Hide resolved
ethers-core/src/types/signature.rs Outdated Show resolved Hide resolved
ethers-signers/Cargo.toml Outdated Show resolved Hide resolved
@gakonst gakonst merged commit 18a049b into master Mar 15, 2023
@gakonst gakonst deleted the bump-k256 branch March 15, 2023 06:13
@gakonst
Copy link
Owner Author

gakonst commented Mar 15, 2023

took some effort but overall like the new APIs, love the flexibility. also finally got rid of the Sha digest signer, what a hack dear god - ty @tarcieri !!

Comment on lines +43 to +46
if check_candidate(&sig, RecoveryId::from_byte(0).unwrap(), digest, vk) {
EthSig { r, s, v: 0 }
} else if check_candidate(&sig, RecoveryId::from_byte(1).unwrap(), digest, vk) {
EthSig { r, s, v: 1 }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little late but the corresponding API for this in the ecdsa crate is RecoveryId::trial_recovery_from_prehash

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants