lib_crypto: Adding pretty printer for public keys

This commit is contained in:
Julien Tesson 2018-10-16 16:54:54 +02:00 committed by Grégoire Henry
parent 71e708830d
commit 0c9812f881
No known key found for this signature in database
GPG Key ID: 50D984F20BD445D2
2 changed files with 5 additions and 0 deletions

View File

@ -210,3 +210,6 @@ let nonce_encoding =
Data_encoding.Fixed.bytes nonce_size
let neuterize : secret_key -> public_key = Box.neuterize
let equal : public_key -> public_key -> bool = Box.equal
let pp_pk ppf pk =
MBytes.pp_hex ppf (public_key_to_bigarray pk)

View File

@ -95,3 +95,5 @@ val nonce_encoding : nonce Data_encoding.t
val neuterize : secret_key -> public_key
val equal : public_key -> public_key -> bool
val pp_pk :Format.formatter -> public_key -> unit