account method

  1. @override
Bip44 account(
  1. int accIndex
)
override

derive account with index

Implementation

@override
Bip44 account(int accIndex) {
  if (!isLevel(Bip44Levels.coin)) {
    throw Bip44DepthError(
      "Current depth (${bip32.depth.toInt()}) is not suitable for deriving account",
    );
  }
  return Bip44._(
    bip32.childKey(Bip32KeyIndex.hardenIndex(accIndex)),
    coinConf,
  );
}