Skip to content
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

Use of native random function to generate seed phrase #81

Closed
lolero opened this issue Mar 11, 2021 · 1 comment
Closed

Use of native random function to generate seed phrase #81

lolero opened this issue Mar 11, 2021 · 1 comment

Comments

@lolero
Copy link

lolero commented Mar 11, 2021

Good morning!

I wanted to ask if the following would be a proper and safe approach to generating a seed phrase, as opposed to using the generate function in the mnemonic class:

  • use the native python random function to pick the first 23 words of the seed phrase
  • iterate over all 2048 words in the word list to find the 8 valid options for the 24th word
  • use the native python random function again to pick one of the valid 8 seed phrases

Thank you!

@prusnak
Copy link
Member

prusnak commented Mar 11, 2021

Yes, this sounds safe.

@prusnak prusnak closed this as completed Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants