Versions in this module Expand all Collapse all v1 v1.0.0 Feb 26, 2024 Changes in this version + func RecoveryFromPrivateKey(privateKey string) ([32]byte, error) + type PrivKey struct + func NewPrivKey(secret string) (*PrivKey, error) + func (pk *PrivKey) PubKey() *PubKey + func (pk *PrivKey) Sign(message []byte) (signature []byte, err error) + type PubKey struct + func NewPubKey(pubKey *ecdsa.PublicKey) *PubKey + func (pk *PubKey) Address() common.Address + func (pk *PubKey) Verify(message []byte, signature []byte) (valid bool)