Documentation ¶
Index ¶
- Constants
- type XPrv
- func (x XPrv) Bytes() []byte
- func (x XPrv) ChainCode() []byte
- func (x XPrv) Derive(index uint32) XPrv
- func (x XPrv) DeriveHard(index uint32) XPrv
- func (x XPrv) PublicKey() []byte
- func (x XPrv) Sign(message []byte) []byte
- func (x XPrv) String() string
- func (x XPrv) Verify(msg, sig []byte) bool
- func (x XPrv) XPub() XPub
- type XPub
Constants ¶
View Source
const ( XPrvSize = 96 XPubSize = 64 HardIndex = 0x80000000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XPrv ¶
type XPrv struct {
// contains filtered or unexported fields
}
XPrv is exntend private key for ed25519
func NewRootXPrv ¶
NewRootXPrv creates XPrv by seed(bip39),the seed size should be 32 bytes at least
func (XPrv) DeriveHard ¶
DeriveHard derives new XPrv by a hardend index
Click to show internal directories.
Click to hide internal directories.