reth_node_core::primitives::crypto

Module secp256k1

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.
  • Signs message with the given secret key. Returns the corresponding signature.