public async Task MnemonicFromRandom(byte dictionary, byte wordCount) { ResultOfMnemonicFromRandom result = await _tonClient.Crypto.MnemonicFromRandom(new ParamsOfMnemonicFromRandom { Dictionary = dictionary, WordCount = wordCount }); result.Phrase.Split(" ").Length.Should().Be(wordCount); }
public async Task MnemonicFromRandomVerify(byte dictionary, byte wordCount) { ResultOfMnemonicFromRandom result = await _tonClient.Crypto.MnemonicFromRandom(new ParamsOfMnemonicFromRandom { Dictionary = dictionary, WordCount = wordCount }); ResultOfMnemonicVerify verifyResult = await _tonClient.Crypto.MnemonicVerify(new ParamsOfMnemonicVerify { Phrase = result.Phrase, Dictionary = dictionary, WordCount = wordCount }); verifyResult.Valid.Should().BeTrue(); }