This commit is contained in:
parent
da29f5bae3
commit
7d4da5210e
1 changed files with 4 additions and 4 deletions
|
|
@ -144,12 +144,12 @@ let () =
|
||||||
|> RsaPublicKey.to_octets
|
|> RsaPublicKey.to_octets
|
||||||
= (rsa_pub |> B32.decode |> Result.get_ok));
|
= (rsa_pub |> B32.decode |> Result.get_ok));
|
||||||
|
|
||||||
|
let h_pub = Result.get_ok @@ DenominationHash.of_b32 h_pub in
|
||||||
let h_pub' =
|
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
|
in
|
||||||
Fmt.pr "--@."; Fmt.pr "@.%s@." h_pub; Fmt.pr "@.%s@." h_pub'
|
assert (h_pub = h_pub');
|
||||||
|
()
|
||||||
in
|
in
|
||||||
|
|
||||||
f test1; f test2
|
f test1; f test2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue