-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method for bip39 mnemonic validation #1663
Comments
I see that we need to open another issue to request the addition of method of bip39 mnemonic word suggestion (as nano ledger does). I will track progress on this one and open it if does not get solved. Just mentioning because this is a planned feature. |
Does anyone own this issue @flexsurfer? |
@rachelhamlin don't think so :( |
Okay - thanks :) I added to core project board. FYI @cammellos @pombeirp @adambabik this is a new status-go v1 requirement. |
Is this something I could work on? Seems like this would just adding in some new validations for |
Keen to learn go @acolytec3? Let's try it - I've invited you to a bounty, and I think @adambabik can offer advice if you need help getting started on this one. |
@gravityblast could assist as well, so @acolytec3 what we need here is a separate method we can call from status-react, which will validate mnemonic, checks if all words from our dictionary and checksum is valid |
@flexsurfer Hey, are there any similar beginner level issues I could help out with? |
@karansinghgit hey, go or clojure? |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work has been started. These users each claimed they can complete the work by 6 days, 9 hours from now. 1) acolytec3 has been approved to start work. I would like to work on this bounty per our discussion on the issue on Github. Learn more on the Gitcoin Issue Details page. |
@rachelhamlin Yes! I've tinkered in Go before though nothing too serious and would love to get my feet wet in the backend of the project. |
Awesome - have at it, you're approved @acolytec3! |
cc @gravityblast so that he does not do the work too :) |
a good starting point would be taking a look at the |
Thanks! I'll try and dig into it over the weekend.
…On Fri, Nov 22, 2019 at 10:18 AM Andrea Franz ***@***.***> wrote:
a good starting point would be taking a look at the MnemonicPhrase method
of the Mnemonic struct of the extkeys package.
That method generates the mnemonic phrase from the entropy and its
checksum, so basically what we need is the validation doing the same but
from phrase to entropy+checksum.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1663?email_source=notifications&email_token=AEENFXCMGYV2H7VSJ3U66JDQU7Z4FA5CNFSM4JJYZNRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE56CPY#issuecomment-557572415>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEENFXGXFLYJGNWD43IT4M3QU7Z4FANCNFSM4JJYZNRA>
.
|
@flexsurfer Go :) |
@acolytec3 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@gitcoinbot Yes, thanks for bugging me. |
@gravityblast To make sure I'm following, validate that the seed phrase matches the status dictionary (like |
sorry @acolytec3 , yeah it makes sense! |
@acolytec3 I think the path forward is:
You'll have to augment
To that end, I think we need to introduce a Finally,
After implementing the above, it should look like: func (m *Mnemonic) ValidMnemonic(mnemonic string, language Language) bool {
return m.ValidateMnemonic(mnemonic, language) != nil
}
func (m *Mnemonic) ValidateMnemonic(mnemonic string, language Language) error {
// Validations go here
} Does this make sense? |
@andremedeiros I think so. I've started looking at the Go bip39 implementation you referenced so will try and get a PR started in the next few days. |
Hi, any news on that ? |
@guylouis I believe my PR is ready for review but need input on whether to leave the current additional test in place. My instinct says remove the validation step I added to the part of the test that looks at the precomputed seed vectors since it looks like at least the Japanese ones use words not in the Japanese word dictionary. I believe the code that validates the checksum is sound and ready for merging on its own. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work for 1.267 ETH (187.33 USD @ $147.85/ETH) has been submitted by: @StatusSceptre please take a look at the submitted work:
|
@flexsurfer @gravityblast |
@guylouis we're actively reviewing and it's just taking a little bit of polish to get merged. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done The funding of 1.267 ETH (179.15 USD @ $141.39/ETH) attached to this issue has been approved & issued to @acolytec3.
|
Problem
status-im/status-mobile#9050
We want to recover only valid mnemonics (words from the dictionary and checksum is valid)
Implementation
validateMnemonic(mnemonicString)
words from the dictionary and checksum are valid
The text was updated successfully, but these errors were encountered: