account method

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

derive account with index

Implementation

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