continuation-team / TonSdk.NET

Native .Net Sdk for TON Blockchain and other TVM-based blockchains
https://TonSdk.NET
MIT License
85 stars 28 forks source link

Invalid Mnemonic #10

Closed pyAndr3w closed 1 year ago

pyAndr3w commented 1 year ago

If you make a mnemonic in TonSdk.NET, then it does not pass validation in tonweb-mnemonic and you cannot enter Tonkeeper with it

using TonSdk.Core.Crypto;

var mnemonic = new Mnemonic();

foreach(var word in mnemonic.Words)
{
    Console.Write(word + " ");
}
import { validateMnemonic } from "tonweb-mnemonic";

var x = ("room raise steak endless leg weird involve lava cancel napkin stick garlic patrol ancient veteran fall arrive carry theme paper name hurt sample neglect").split(" ")

const main = async () => {
    console.log(await validateMnemonic(x))
}

main()
pyAndr3w commented 1 year ago

@purpleguy99, you did mnemonics, can you fix it?)

purpleguy99 commented 1 year ago

Fixed. Will be updated with the next version. Thanks for your help 🥳