deriveBaseAddress method

Bip32KeyPair deriveBaseAddress({
  1. int purpose = defaultPurpose,
  2. int coinType = defaultCoinType,
})

Implementation

Bip32KeyPair deriveBaseAddress(
    {int purpose = defaultPurpose, int coinType = defaultCoinType}) {
  final rootKeys =
      Bip32KeyPair(privateKey: _rootSigningKey, publicKey: rootVerifyKey);
  final pair0 = derive(keys: rootKeys, index: purpose);
  return derive(keys: pair0, index: coinType);
}