Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKey ¶
type AccountMnemonic ¶
type AccountNew ¶
type AccountNew struct { Address *address.Address Mnemonic *AccountMnemonic Key *AccountKey }
func New ¶
func New(bitSize int, childKeyPath string) (*AccountNew, error)
Creates a new account based on the specified bit size for entropy. For generating 12 words, the bit size must be 128, and for 24 words, it must be 256. Optionally, a custom child derivation path can be provided. For the default path (m/44'/195'/0'/0/0), leave it empty.
Click to show internal directories.
Click to hide internal directories.