package
1.15.2
Repository: https://github.com/ethereum/go-ethereum.git
Documentation: pkg.go.dev

# Packages

Package blake2b implements the BLAKE2b hash algorithm defined by RFC 7693 and the extendable output function (XOF) BLAKE2Xb.
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
Package kzg4844 implements the KZG crypto for EIP-4844.

# Functions

CompressPubkey encodes a public key to the 33-byte compressed format.
CreateAddress creates an ethereum address given the bytes and the nonce.
CreateAddress2 creates an ethereum address given the address bytes, initial contract code hash and a salt.
DecompressPubkey parses a public key in the 33-byte compressed format.
Ecrecover returns the uncompressed public key that created the given signature.
FromECDSA exports a private key into a binary dump.
GenerateKey generates a new private key.
HashData hashes the provided data using the KeccakState and returns a 32 byte hash.
HexToECDSA parses a secp256k1 private key.
Keccak256 calculates and returns the Keccak256 hash of the input data.
Keccak256Hash calculates and returns the Keccak256 hash of the input data, converting it to an internal Hash data structure.
Keccak512 calculates and returns the Keccak512 hash of the input data.
LoadECDSA loads a secp256k1 private key from the given file.
NewKeccakState creates a new KeccakState.
S256 returns an instance of the secp256k1 curve.
SaveECDSA saves a secp256k1 private key to the given file with restrictive permissions.
Sign calculates an ECDSA signature.
SigToPub returns the public key that created the given signature.
ToECDSA creates a private key with the given D value.
ToECDSAUnsafe blindly converts a binary blob to a private key.
UnmarshalPubkey converts bytes to a secp256k1 public key.
ValidateSignatureValues verifies whether the signature values are valid with the given chain rules.
VerifySignature checks that the given public key created signature over hash.

# Constants

DigestLength sets the signature digest exact length.
RecoveryIDOffset points to the byte offset within the signature that contains the recovery id.
64 bytes ECDSA signature + 1 byte recovery id.

# Interfaces

EllipticCurve contains curve operations.
KeccakState wraps sha3.state.