Documentation
¶
Index ¶
Constants ¶
View Source
const ( // IDSize is the size of a wallet ID in bytes. // NOTE: The length of wallet ID's string is IDSize * 2. IDSize = 3 )
Variables ¶
View Source
var ( // ErrMalformedID is the error returned when a wallet ID is malformed. ErrMalformedID = errors.New("wallet: malformed ID") )
Functions ¶
This section is empty.
Types ¶
type ID ¶
ID is a wallet ID computed as a truncated hash of a public key for a specific BIP32 path.
func (ID) MarshalBinary ¶
MarshalBinary encodes a wallet ID into binary form.
func (*ID) UnmarshalBinary ¶
UnmarshalBinary decodes a binary marshaled wallet ID.
func (*ID) UnmarshalHex ¶
UnmarshalHex deserializes a hexadecimal text string into wallet ID.
Click to show internal directories.
Click to hide internal directories.