/// <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)); }
static Bip39() { Instance = new Bip39(); }