getPrivateKey method
Bip32PrivateKey
getPrivateKey({
- required Bip32KeyIndex firstIndex,
- required Bip32KeyIndex secondIndex,
Retrieves and returns the private key associated with the specified key indices.
Parameters:
- 'firstIndex': The first key index for key derivation.
- 'secondIndex': The second key index for key derivation.
Implementation
Bip32PrivateKey getPrivateKey(
{required Bip32KeyIndex firstIndex, required Bip32KeyIndex secondIndex}) {
final derive = deriveKey(firstIndex, secondIndex);
return derive.privateKey;
}