public HdKeyStorage(
     string mnemonic,
     Wordlist wordList       = null,
     SecureString passPhrase = null,
     Network network         = Network.MainNet)
 {
     Version = CurrentVersion;
     Seed    = new Mnemonic(mnemonic, wordList)
               .DeriveSeed(passPhrase.ToUnsecuredString());
     Network = network;
 }
Example #2
0
        public HdWallet(
            string mnemonic,
            Wordlist wordList,
            SecureString passPhrase = null,
            Network network         = Network.MainNet)
        {
            PathToWallet = PathEx.ToFullPath(string.Empty);

            KeyStorage = new HdKeyStorage(
                mnemonic: mnemonic,
                wordList: wordList,
                passPhrase: passPhrase,
                network: network);
        }
 public HdKeyStorage(byte[] seed, Network network = Network.MainNet)
 {
     Version = CurrentVersion;
     Seed    = seed;
     Network = network;
 }