Elixir, Bitcoin, Testing, Software Development, Programming.
The generate/0 function generated a random set of bytes and converted it into a BIP-39-style mnemonic. def generate do entropy |> attach_checksum |> map_onto_wordlist end Moving forward, we should separate the encoding functionality from the entropy generation so we can test the encoding algorithm