coin property
Zip32
get
coin
Implementation
Zip32 get coin {
if (!isLevel(Bip44Levels.purpose)) {
throw Bip44DepthError(
"Current depth (${zip32.depth.toInt()}) is not suitable for deriving coin",
);
}
final coinIndex = coinConf.coinIdx;
return Zip32._(
zip32:
zip32.childKey(Bip32KeyIndex.hardenIndex(coinIndex), context)
as Zip32Base,
coinConf: coinConf,
context: context,
);
}