HDWalletPath.fromPurpose constructor
- HDWalletPurpose purpose,
- UTXONetworkType network
Implementation
factory HDWalletPath.fromPurpose(
HDWalletPurpose purpose,
UTXONetworkType network,
) {
final coinType = "${network.coinType}'";
return switch (purpose) {
HDWalletPurpose.NO_STRUCTURE => NSHDWalletPath(coinType),
HDWalletPurpose.BIP44 => Bip44HDWalletPath(coinType),
HDWalletPurpose.BIP49 => Bip49HDWalletPath(coinType),
HDWalletPurpose.BIP84 => Bip84HDWalletPath(coinType),
};
}