Versions in this module Expand all Collapse all v1 v1.0.0 Apr 25, 2019 Changes in this version + func NewPublicKeyFromByteSlice(b []byte) (crypto.PublicKey, error) + func SigToPub(hash common.Hash, signature crypto.Signature) (crypto.PublicKey, error) + type PrivateKey struct + func NewPrivateKey() (*PrivateKey, error) + func NewPrivateKeyFromECDSA(key *ecdsa.PrivateKey) *PrivateKey + func (prv *PrivateKey) PublicKey() crypto.PublicKey + func (prv *PrivateKey) Sign(hash common.Hash) (sig crypto.Signature, err error) + type PublicKey struct + func NewPublicKeyFromECDSA(key *ecdsa.PublicKey) *PublicKey + func (pub *PublicKey) Bytes() []byte + func (pub *PublicKey) Compress() []byte + func (pub *PublicKey) VerifySignature(hash common.Hash, signature crypto.Signature) bool