purpose property

Bip32KeyIndex get purpose

Extension method to get the corresponding purpose key index for each BipProposal.

Implementation

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;
  }
}