reth_node_core::primitives::transaction::signature

Function recover_signer

pub fn recover_signer(
    signature: &PrimitiveSignature,
    hash: FixedBytes<32>,
) -> Option<Address>
Expand description

Recover signer address from message hash. This ensures that the signature S value is greater than secp256k1n / 2, as specified in EIP-2.

If the S value is too large, then this will return None