Documentation ¶
Overview ¶
Package ed25519hd provides hierarchical derivation of ED255-19 keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnhardenedElement is returned when an element in a path is not hardened. ErrUnhardenedElement = errors.New("elements must be hardened") // ErrInvalidPath is returned when a path is invalid. ErrInvalidPath = errors.New("invalid path") )
View Source
var ( // ErrElementTooLarge is returned when a path element is too large. ErrElementTooLarge = errors.New("path element cannot be larger than 4294967295") )
Functions ¶
func Keys ¶
Keys generates the Ed25519 public and private keys given a seed and a path. https://github.com/satoshilabs/slips/blob/master/slip-0010.md
func SeedFromMnemonic ¶
SeedFromMnemonic takes a BIP39 mnemonic and generates a seed.
func ValidateMnemonic ¶
ValidateMnemonic returns true if the mnemonic is valid. Note that this expects mnemonics to be of 24 words; other lengths are not supported.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key is an ED255-19 key.
func MasterKeyFromSeed ¶
MasterKeyFromSeed generates a master key given a seed. The seed must be 64 bytes to be valid.
Click to show internal directories.
Click to hide internal directories.