Documentation ¶
Index ¶
Constants ¶
View Source
const HardenedKeyZeroIndex = 0x80000000
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountKey ¶
type AccountKey struct {
// contains filtered or unexported fields
}
func NewAccountKeyFromXPubKey ¶
func NewAccountKeyFromXPubKey(value string) (*AccountKey, error)
func (*AccountKey) DeriveP2PKAddress ¶
func (k *AccountKey) DeriveP2PKAddress(changeType ChangeType, index uint32, network Network) (*Address, error)
type Address ¶
type Address struct { HDStartPath HDStartPath `json:"hd_start_path"` HDEndPath HDEndPath `json:"hd_end_path"` Value string `json:"value"` }
type ChangeType ¶
type ChangeType uint32
const ( ExternalChangeType ChangeType = 0 InternalChangeType ChangeType = 1 )
type ExtendedKey ¶
type ExtendedKey struct {
// contains filtered or unexported fields
}
func NewKeyFromSeedBytes ¶
func NewKeyFromSeedBytes(seed []byte, net Network) (*ExtendedKey, error)
func NewKeyFromSeedHex ¶
func NewKeyFromSeedHex(seed string, net Network) (*ExtendedKey, error)
func (*ExtendedKey) BIP44AccountKey ¶
func (e *ExtendedKey) BIP44AccountKey(coinType CoinType, accIndex uint32, includePrivateKey bool) (*AccountKey, error)
type HDStartPath ¶
type Mnemonic ¶
type Mnemonic struct {
Value string
}
func NewMnemonic ¶
bitSize must be a multiple of 32
func ParseMnemonic ¶
Click to show internal directories.
Click to hide internal directories.