bip44Path method

String bip44Path (
  1. int index,
  2. int coinType,
  3. {int bip43Purpose: 44,
  4. int accountId: 0,
  5. int change: 0}
)

Apostrophe in the path indicates that BIP32 hardened derivation is used.

Implementation

String bip44Path(int index, int coinType,
    {int bip43Purpose = 44, int accountId = 0, int change = 0}) {
  return "m/$bip43Purpose'/$coinType'/$accountId'/$change'/$index'";
}