diff --git a/test/test_crypto.ml b/test/test_crypto.ml index fba6e4ce..45c82209 100644 --- a/test/test_crypto.ml +++ b/test/test_crypto.ml @@ -144,12 +144,12 @@ let () = |> RsaPublicKey.to_octets = (rsa_pub |> B32.decode |> Result.get_ok)); + let h_pub = Result.get_ok @@ DenominationHash.of_b32 h_pub in let h_pub' = - DenominationHash.to_b32 - (DenominationHash.hash_of_rsa - (Result.get_ok @@ RsaPublicKey.of_b32 rsa_pub)) + DenominationHash.hash_of_rsa (Result.get_ok @@ RsaPublicKey.of_b32 rsa_pub) in - Fmt.pr "--@."; Fmt.pr "@.%s@." h_pub; Fmt.pr "@.%s@." h_pub' + assert (h_pub = h_pub'); + () in f test1; f test2