Versions in this module Expand all Collapse all v0 v0.5.1 Apr 28, 2022 Changes in this version + var ErrKeyMismatch = errors.New("key mismatch") + var ErrWrongChecksum = errors.New("wrong check sum") + var ErrWrongKeyLen = errors.New("wrong key len") + var ErrWrongPrefix = errors.New("wrong prefix") + func SignBufferSha256(bufSha256 []byte, privateKey *ecdsa.PrivateKey) []byte + type PrivateKey struct + func NewPrivateKey() (*PrivateKey, error) + func PrivateKeyFromBytes(privKey []byte) (*PrivateKey, error) + func PrivateKeyFromString(wif string) (*PrivateKey, error) + func (p *PrivateKey) PublicKey() *PublicKey + func (p *PrivateKey) Serialize() []byte + func (p *PrivateKey) Sign(hash []byte) []byte + func (p *PrivateKey) String() string + type PublicKey struct + func NewPublicKey(pubKey string) (*PublicKey, error) + func PublicKeyFromBytes(key []byte) (*PublicKey, error) + func (p *PublicKey) MarshalTransaction(encoder *transaction.Encoder) error + func (p *PublicKey) Serialize() []byte + func (p *PublicKey) String() string + func (p *PublicKey) Verify(digest []byte, signature []byte) error