reth_primitives_traits::crypto

Module secp256k1

Source
Expand description

Secp256k1 utility functions.

Functionsยง

  • Converts a public key into an ethereum address by hashing the encoded public key with keccak256.
  • Recover signer address from message hash. This ensures that the signature S value is greater than secp256k1n / 2, as specified in EIP-2.
  • Recover signer from message hash, without ensuring that the signature has a low s value.
  • sign_messagesecp256k1
    Signs message with the given secret key. Returns the corresponding signature.