purpose property

  1. @override
Cip1852 get purpose
override

derive purpose

Implementation

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