deriveLastThreeLayers method

Bip32KeyPair deriveLastThreeLayers({
  1. int account = defaultAccountIndex,
  2. int change = defaultChange,
  3. int address = defaultAddressIndex,
})

Implementation

Bip32KeyPair deriveLastThreeLayers(
    {int account = defaultAccountIndex,
    int change = defaultChange,
    int address = defaultAddressIndex}) {
  final rootKeys =
      Bip32KeyPair(privateKey: _rootSigningKey, publicKey: rootVerifyKey);
  final pair0 = derive(keys: rootKeys, index: account);
  final pair1 = derive(keys: pair0, index: change);
  return derive(keys: pair1, index: address);
}