lib_crypto: Adding pretty printer for public keys
This commit is contained in:
parent
71e708830d
commit
0c9812f881
@ -210,3 +210,6 @@ let nonce_encoding =
|
|||||||
Data_encoding.Fixed.bytes nonce_size
|
Data_encoding.Fixed.bytes nonce_size
|
||||||
let neuterize : secret_key -> public_key = Box.neuterize
|
let neuterize : secret_key -> public_key = Box.neuterize
|
||||||
let equal : public_key -> public_key -> bool = Box.equal
|
let equal : public_key -> public_key -> bool = Box.equal
|
||||||
|
|
||||||
|
let pp_pk ppf pk =
|
||||||
|
MBytes.pp_hex ppf (public_key_to_bigarray pk)
|
||||||
|
@ -95,3 +95,5 @@ val nonce_encoding : nonce Data_encoding.t
|
|||||||
|
|
||||||
val neuterize : secret_key -> public_key
|
val neuterize : secret_key -> public_key
|
||||||
val equal : public_key -> public_key -> bool
|
val equal : public_key -> public_key -> bool
|
||||||
|
|
||||||
|
val pp_pk :Format.formatter -> public_key -> unit
|
||||||
|
Loading…
Reference in New Issue
Block a user