Versions in this module Expand all Collapse all v0 v0.0.2 Nov 28, 2020 v0.0.1 Nov 28, 2020 Changes in this version + const DigestLength + const RecoveryIDOffset + const SignatureLength + func CompressPubkey(pubkey *ecdsa.PublicKey) []byte + func CreateAddress(b common.Address, nonce uint64) common.Address + func CreateAddress2(b common.Address, salt [32]byte, inithash []byte) common.Address + func DecompressPubkey(pubkey []byte) (*ecdsa.PublicKey, error) + func Ecrecover(hash, sig []byte) ([]byte, error) + func FromECDSA(priv *ecdsa.PrivateKey) []byte + func FromECDSAPub(pub *ecdsa.PublicKey) []byte + func GenerateKey() (*ecdsa.PrivateKey, error) + func HexToECDSA(hexkey string) (*ecdsa.PrivateKey, error) + func Keccak256(data ...[]byte) []byte + func Keccak256Hash(data ...[]byte) (h common.Hash) + func Keccak512(data ...[]byte) []byte + func LoadECDSA(file string) (*ecdsa.PrivateKey, error) + func PubkeyToAddress(p ecdsa.PublicKey) common.Address + func S256() elliptic.Curve + func SaveECDSA(file string, key *ecdsa.PrivateKey) error + func SigToPub(hash, sig []byte) (*ecdsa.PublicKey, error) + func Sign(hash []byte, prv *ecdsa.PrivateKey) ([]byte, error) + func ToECDSA(d []byte) (*ecdsa.PrivateKey, error) + func ToECDSAUnsafe(d []byte) *ecdsa.PrivateKey + func UnmarshalPubkey(pub []byte) (*ecdsa.PublicKey, error) + func ValidateSignatureValues(v byte, r, s *big.Int, homestead bool) bool + func VerifySignature(pubkey, hash, signature []byte) bool + type KeccakState interface + Read func([]byte) (int, error)