package
0.0.0-20220308083446-f387b464c92d
Repository: https://github.com/weijun-sh/gethscan-server.git
Documentation: pkg.go.dev

# 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.
FromECDSAPub from ecdsa public key.
GenerateKey generate 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.
PubkeyToAddress public key to address.
S256 returns an instance of the secp256k1 curve.
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

KeccakState wraps sha3.state.