Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2016 Changes in this version + func CreateAddress(b common.Address, nonce uint64) common.Address + func Decrypt(prv *ecdsa.PrivateKey, ct []byte) ([]byte, error) + func Ecrecover(hash, sig []byte) ([]byte, error) + func Encrypt(pub *ecdsa.PublicKey, message []byte) ([]byte, error) + func FromECDSA(prv *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 LoadECDSA(file string) (*ecdsa.PrivateKey, error) + func PubkeyToAddress(p ecdsa.PublicKey) common.Address + func Ripemd160(data []byte) []byte + func SaveECDSA(file string, key *ecdsa.PrivateKey) error + func Sha256(data []byte) []byte + func Sha3(data ...[]byte) []byte + func Sha3Hash(data ...[]byte) common.Hash + func SigToPub(hash, sig []byte) (*ecdsa.PublicKey, error) + func Sign(data []byte, prv *ecdsa.PrivateKey) (sig []byte, err error) + func SignEthereum(data []byte, prv *ecdsa.PrivateKey) ([]byte, error) + func ToECDSA(prv []byte) *ecdsa.PrivateKey + func ToECDSAPub(pub []byte) *ecdsa.PublicKey + func ValidateSignatureValues(v byte, r, s *big.Int, homestead bool) bool