package
0.0.0-20220820134905-666a20ff9307
Repository: https://github.com/entropyio/go-entropy.git
Documentation: pkg.go.dev
# Packages
Package blake2b implements the BLAKE2b hash algorithm defined by RFC 7693 and the extendable output function (XOF) BLAKE2Xb.
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
No description provided by the author
# Functions
CreateAddress creates an entropy address given the bytes and the nonce.
CreateAddress2 creates an entropy address given the address bytes, initial contract code hash and a salt.
FromECDSA exports a private key into a binary dump.
No description provided by the author
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.
No description provided by the author
SaveECDSA saves a secp256k1 private key to the given file with restrictive permissions.
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.
# 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
KeccakState wraps sha3.state.