public static KeyRing Recover(string mnemonic, string password, string walletFilePath, Network network) { var wallet = new KeyRing(password, walletFilePath, network, mnemonic); wallet.Save(password); return(wallet); }
/// <summary> /// Creates a mnemonic, a seed, encrypts it and stores in the specified path. /// </summary> /// <param name="mnemonic">empty string</param> /// <param name="password"></param> /// <param name="walletFilePath"></param> /// <param name="network"></param> /// <returns>KeyRing</returns> public static KeyRing Create(out string mnemonic, string password, string walletFilePath, Network network) { var wallet = new KeyRing(walletFilePath, network); mnemonic = wallet.SetSeed(password).ToString(); wallet.Save(password); return(wallet); }