account method

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

derive account with index

Implementation

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