purpose property

  1. @override
Bip86 get purpose
override

derive purpose

Implementation

@override
Bip86 get purpose {
  if (!isLevel(Bip44Levels.master)) {
    throw Bip44DepthError(
      "Current depth (${bip32.depth.toInt()}) is not suitable for deriving purpose",
    );
  }
  return Bip86._(
    bip32.childKey(coinConf.purpose ?? Bip86Const.purpose),
    coinConf,
  );
}