Exemplo n.º 1
0
 public HdWallet(Network network = Network.MainNet)
     : this(mnemonic : new Mnemonic(Wordlist.English, WordCount.Fifteen).ToString(),
            wordList : Wordlist.English,
            passPhrase : null,
            network : network)
 {
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public HdKeyStorage(
            string mnemonic,
            Wordlist wordList       = null,
            SecureString passPhrase = null,
            Network network         = Network.MainNet)
        {
            Version = CurrentVersion;
            Network = network;

            using var scopedSeed = new ScopedBytes(new Mnemonic(mnemonic, wordList)
                                                   .DeriveSeed(passPhrase.ToUnsecuredString()));

            Seed = new SecureBytes(scopedSeed);
        }