How can I check the validity of a given mnemonic phrase using wallet-core #1948
Replies: 3 comments 3 replies
-
I just tried swift code and it returned let words = "attack tray total salon drink"
let wallet = HDWallet(mnemonic: words, passphrase: "")
XCTAssertNil(wallet) |
Beta Was this translation helpful? Give feedback.
-
Hi, @hewigovens , Thank you very much for your reply.
By the way, although you have upgraded wallet-core to 2.6.36 I know I can still use the latest version by downloading the library directly from github. It is just a friendly reminder. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to check the validity of a given mnemonic phrase by creating a HDWallet object.
It turned out that even I give it an obviously invalid mnemonic phrase, for example "attack tray total salon drink", there are only 5 words in it, the HDWallet can still be created. No exception has been thrown.
Are there any way of checking the validity of a given mnemonic phrase? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions