Class to help with slip0010 key derivation https://github.com/satoshilabs/slips/blob/master/slip-0010.md.
▸ Static
getMasterKeyFromSeed(seed
): Object
Get the master key from the seed.
Name | Type | Description |
---|---|---|
seed |
Uint8Array |
The seed to generate the master key from. |
Object
The key and chain code.
Name | Type |
---|---|
privateKey |
Uint8Array |
chainCode |
Uint8Array |
▸ Static
derivePath(seed
, path
): Object
Derive a key from the path.
Name | Type | Description |
---|---|---|
seed |
Uint8Array |
The seed. |
path |
Bip32Path |
The path. |
Object
The key and chain code.
Name | Type |
---|---|
privateKey |
Uint8Array |
chainCode |
Uint8Array |
▸ Static
getPublicKey(privateKey
, withZeroByte?
): Uint8Array
Get the public key from the private key.
Name | Type | Default value | Description |
---|---|---|---|
privateKey |
Uint8Array |
undefined |
The private key. |
withZeroByte |
boolean |
true |
Include a zero bute prefix. |
Uint8Array
The public key.