public async Task MnemonicVerifyInvalidPhrase() { ResultOfMnemonicVerify result = await _tonClient.Crypto.MnemonicVerify(new ParamsOfMnemonicVerify { Phrase = "one two" }); result.Valid.Should().BeFalse(); }
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(); }