purpose property
Extension method to get the corresponding Bip32KeyIndex.purpose
for each BipProposal.
Implementation
@override
Bip32KeyIndex get purpose {
switch (this) {
case BipProposal.bip44:
return Bip44Const.purpose;
case BipProposal.bip49:
return Bip49Const.purpose;
case BipProposal.bip84:
return Bip84Const.purpose;
default:
return Bip86Const.purpose;
}
}