# Packages
No description provided by the author
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
No description provided by the author
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
# Functions
No description provided by the author
DeriveEthChainId derives the chain id from the given v parameter.
ECDSAToPrivKey converts given ecdsa public key to pubkey.
ECDSAToPubKey converts given ecdsa public key to pubkey.
No description provided by the author
GenerateKeyPair generates a random private/public key pair.
HexToECDSA parses a secp256k1 private key.
No description provided by the author
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.
NewKeccakState creates a new KeccakState.
PrivateKeyFromBytes converts the given bytes to a private key.
PrivateKeyFromBytesUnsafe blindly converts a binary blob to a private key.
PrivateKeyFromFile loads the private key from the given file.
PrivKeyToECDSA convert private key to ecdsa.
PubKeyToECDSA convert public key to ecdsa.
PublicKeyFromBytes converts the given bytes to a public key.
S256 returns an instance of the secp256k1 curve.
SignatureFromBytes converts the given bytes to a signature.
TEST_GenerateKeyPairWithSeed generates a random private/public key pair with the given seed string.
No description provided by the author
# Constants
64 bytes ECDSA signature + 1 byte recovery id.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
PrivateKey represents the private key
.
PublicKey represents the public key
.
Signature represents the digital signature
.
# Interfaces
KeccakState wraps sha3.state.