coin property

  1. @override
Bip86 get coin
override

derive coin

Implementation

@override
Bip86 get coin {
  if (!isLevel(Bip44Levels.purpose)) {
    throw Bip44DepthError(
        "Current depth (${bip32.depth.toInt()}) is not suitable for deriving coin");
  }
  final coinIndex = coinConf.coinIdx;
  return Bip86._(
      bip32.childKey(Bip32KeyIndex.hardenIndex(coinIndex)), coinConf);
}