defaultHwPath method

String defaultHwPath(
  1. CryptoCoins<BaseCoinConfig> coin
)

Full default path m/purpose'/coinIdx'/defPath (defPath already contains the account level, e.g. BTC 0'/0/0, Tezos 0'/0').

Implementation

String defaultHwPath(CryptoCoins coin) {
  final conf = _bipConf(coin, 'defaultHwPath');
  final purpose =
      Bip32KeyIndex.unhardenIndex(coin.proposal.purpose.index).index;
  return "m/$purpose'/${conf.coinIdx}'/${conf.defPath}";
}