coin property

  1. @override
Bip84 get coin
override

derive coin

Implementation

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