reth_primitives_traits::crypto::secp256k1

Function recover_signer_unchecked

Source
pub fn recover_signer_unchecked(
    signature: &Signature,
    hash: B256,
) -> Option<Address>
Expand description

Recover signer from message hash, without ensuring that the signature has a low s value.

Using this for signature validation will succeed, even if the signature is malleable or not compliant with EIP-2. This is provided for compatibility with old signatures which have large s values.