PACKAGE
crypto
Cryptographic functions.
Functions
- eth_ecrecover
- Compute an Ethererum public key from a signature and a hash.
- eth_privkey_to_address
- Compute a 20-byte Ethereum address from a 32-byte private key.
- eth_pubkey_to_address
- Compute a 20-byte Ethereum address from a public key.
- eth_sign
- Compute an Ethereum signature.
- get_signature
- Sign a 32-byte array with a 32-byte private key using the ECDSA (secp256k1) algorithm.
- keccak256
- Compute the Keccak256 digest (hash) of the given byte array.
- privkey_to_pubkey
- Compute a public key from a 32-byte private key.
- pubkey_encode
- Convert between public key formats.
- pubkey_to_xy
- Extract the x and y coordinates from an EC point public key. The extracted point is a tuple
- sha256
- Compute the SHA-256 digest (hash) of the given byte array.
- verify_signature
- Verify a signature against a message and public key.
- xy_to_pubkey
- Construct a public key from EC point x and y coordinates. The given x and y coordinates must