account method

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

derive account with index

Implementation

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