Documentation ¶
Overview ¶
Package utils contains utility functions for the wallet like hashes and crypto functions
Index ¶
Constants ¶
View Source
const ( // XpubKeyLength is the length of an xPub string key XpubKeyLength = 111 // ChainInternal internal chain num ChainInternal = uint32(1) // ChainExternal external chain num ChainExternal = uint32(0) // MaxInt32 max integer for int32 MaxInt32 = int64(1<<(32-1) - 1) )
Variables ¶
This section is empty.
Functions ¶
func DeriveChildKeyFromHex ¶
func DeriveChildKeyFromHex(hdKey *bip32.ExtendedKey, hexHash string) (*bip32.ExtendedKey, error)
DeriveChildKeyFromHex derive the child extended key from the hex string
func GetChildNumsFromHex ¶
GetChildNumsFromHex get an array of uint32 numbers from the hex string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.