Module secp256k1

Expand description

Secp256k1 utility functions.

Functions§

public_key_to_address
Converts a public key into an ethereum address by hashing the encoded public key with keccak256.
recover_signer
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_unchecked
Recover signer from message hash, without ensuring that the signature has a low s value.
sign_message
Signs message with the given secret key. Returns the corresponding signature.