Class: Ed25519Seed
Class to help with seeds.
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new Ed25519Seed(secretKeyBytes?
)
Create a new instance of Ed25519Seed.
Parameters
Name | Type | Description |
---|---|---|
secretKeyBytes? | Uint8Array | The bytes. |
Methods
fromMnemonic
▸ Static
fromMnemonic(mnemonic
): Ed25519Seed
Create the seed from a Bip39 mnemonic.
Parameters
Name | Type | Description |
---|---|---|
mnemonic | string | The mnemonic to create the seed from. |
Returns
A new instance of Ed25519Seed.
keyPair
▸ keyPair(): IKeyPair
Get the key pair from the seed.
Returns
The key pair.
Implementation of
generateSeedFromPath
▸ generateSeedFromPath(path
): ISeed
Generate a new seed from the path.
Parameters
Name | Type | Description |
---|---|---|
path | Bip32Path | The path to generate the seed for. |
Returns
The generated seed.
Implementation of
toBytes
▸ toBytes(): Uint8Array
Return the key as bytes.
Returns
Uint8Array
The key as bytes.