Elixir, Bitcoin, Testing, Software Development, Programming.
“misaligned” binaries, or binaries who’s lengths don’t align to thirty two bits, are rejected: property "rejects misaligned binaries" do check all data <- bitstring(min_length: 129, max_length: 256), data |> bit_size |> rem(32) != 0 do assert Bip39.Mnemonic.encode(data) == {:error, :invalid_data}