コード例 #1
0
        public static Seed FromMnemonic(Mnemonic mnemonic, string salt = "LIBRA")
        {
            var bytes = mnemonic.ToBytes().Pbkdf($"{Constant.KeyPrefixes.MnemonicSalt}{salt}", 2048, 32, HashAlgorithm.SHA3_256);

            return(new Seed(bytes));
        }
コード例 #2
0
        public static Seed FromMnemonic(string[] words, string salt = "LIBRA")
        {
            var mnemonic = new Mnemonic(words);

            return(FromMnemonic(mnemonic, salt));
        }