diff --git a/src/lib/crypto.pl b/src/lib/crypto.pl index 25b5ebb6..6473e0d1 100644 --- a/src/lib/crypto.pl +++ b/src/lib/crypto.pl @@ -65,8 +65,7 @@ hex_bytes(Hs, Bytes) :- ( ground(Hs) -> - must_be(list, Hs), - maplist(must_be(atom), Hs), + must_be(chars, Hs), ( phrase(hex_bytes(Hs), Bytes) -> true ; domain_error(hex_encoding, Hs, hex_bytes/2)