I need code that generates a random string of words to be used as brain wallets in crypto currencies.
Does anyone have some code that does something similar written in Elixir/Phoenix? Something like this…
Thanks
I need code that generates a random string of words to be used as brain wallets in crypto currencies.
Does anyone have some code that does something similar written in Elixir/Phoenix? Something like this…
Thanks
I don’t think there are, but building something like this yourself should not be very hard:
There are lists of common (english) words available such as these ones. You can just take such a file and split it into a list of words (The ones I linked to could be directly read using File.stream!
), and then use Enum.random
a couple of times to extract some random words from the list.