Versions in this module Expand all Collapse all v1 v1.0.0 May 26, 2022 Changes in this version + var ErrBadKeyLen = errors.New("bad key length") + var ErrBadKeyStr = errors.New("bad key string") + func NewXKeys(r io.Reader) (xprv XPrv, xpub XPub, err error) + func XPubKeys(xpubs []XPub) []sm2.PubKey + type XPrv [64]byte + func NewXPrv(r io.Reader) (xprv XPrv, err error) + func (xprv *XPrv) UnmarshalText(inp []byte) error + func (xprv XPrv) Bytes() []byte + func (xprv XPrv) Child(sel []byte, hardened bool) XPrv + func (xprv XPrv) Derive(path [][]byte) XPrv + func (xprv XPrv) MarshalText() ([]byte, error) + func (xprv XPrv) Sign(msg []byte) []byte + func (xprv XPrv) String() string + func (xprv XPrv) XPub() (xpub XPub) + type XPub [65]byte + func DeriveXPubs(xpubs []XPub, path [][]byte) []XPub + func (xpub *XPub) UnmarshalText(inp []byte) error + func (xpub XPub) Bytes() []byte + func (xpub XPub) Child(sel []byte) (xpubkey XPub) + func (xpub XPub) Derive(path [][]byte) XPub + func (xpub XPub) MarshalText() ([]byte, error) + func (xpub XPub) PublicKey() sm2.PubKey + func (xpub XPub) String() string + func (xpub XPub) Verify(msg []byte, sig []byte) bool