Elixir, Bitcoin, Testing, Software Development, Programming.
wrapped in an :ok tuple. Otherwise, we need to return an :error tuple. We can do this with a second encode/1 function head: def encode(_), do: {:error, :invalid_data} Wrapping our Bip39.Mnemonic.encode/1 result in an :ok tuple breaks our test. We’ll need to fix that: check all bytes <-