by adzm · 5y ago · 0 comments
I assumed there would be existing implementations of something similar but have not found one that fits criteria other than some that use very small word lists. Diceware has 7776 words and pushing that to 8192 should be feasible and is a bit easier to work with.
See for BIP-39, wordlists under a folder https://github.com/bitcoin/bips/blob/master/bip-0039.mediawi...
https://github.com/luke-clifton/memorable-bits
(Also on hackage [0] but readme is missing)
It let's you define a pattern for generating "sentences" from data.
It deals with padding, lets you join word lists, or use multiple word lists in a single pattern.
Word lists can be any power of 2 long, and the library comes with a few different word lists.