getForWalletType method

NetworkType getForWalletType(
  1. HDWalletPurpose purpose
)

Implementation

bip32.NetworkType getForWalletType(HDWalletPurpose purpose) =>
    switch (purpose) {
      HDWalletPurpose.NO_STRUCTURE ||
      HDWalletPurpose.BIP44 =>
        bip32.NetworkType(
          wif: wif,
          bip32: bip32.Bip32Type(
            private: bip32XprivPrefix,
            public: bip32XpubPrefix,
          ),
        ),
      HDWalletPurpose.BIP84 => bip32.NetworkType(
          wif: wif,
          bip32: bip32.Bip32Type(
            private: bip84XprivPrefix,
            public: bip84XpubPrefix,
          ),
        ),
      HDWalletPurpose.BIP49 => bip32.NetworkType(
          wif: wif,
          bip32: bip32.Bip32Type(
            private: bip49XprivPrefix,
            public: bip49XpubPrefix,
          ),
        ),
    };