Beispiel #1
0
        /// <summary>
        /// Generate a new 15-word mnemonic code.
        /// </summary>
        /// <returns>15 words</returns>
        public string GenerateMnemonic()
        {
            Bip39 bip39 = new Bip39();

            byte[] bytes = new byte[20];

            new Random().NextBytes(bytes);

            List <string> code = bip39.ToMnemonic(bytes);

            return(string.Join(" ", code));
        }
Beispiel #2
0
 static Bip39()
 {
     Instance = new Bip39();
 }