Elixir, Bitcoin, Testing, Software Development, Programming.
partial_checksum::bits>> == attach_checksum(data) do {:ok, data} else {:error, :bad_checksum} end That’s it! We can now encode/1 a given binary into a mnemonic wordlist, and then decode/1 it to retrieve the original binary. Putting our Solution to the Test Now that we’ve built our