diff --git a/src/lib_crypto/crypto_box.ml b/src/lib_crypto/crypto_box.ml index c38b98183..f3379eee7 100644 --- a/src/lib_crypto/crypto_box.ml +++ b/src/lib_crypto/crypto_box.ml @@ -208,3 +208,5 @@ let secret_key_encoding = 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 diff --git a/src/lib_crypto/crypto_box.mli b/src/lib_crypto/crypto_box.mli index 409e56548..4dc912df3 100644 --- a/src/lib_crypto/crypto_box.mli +++ b/src/lib_crypto/crypto_box.mli @@ -92,3 +92,6 @@ val secret_key_size : int val public_key_encoding : public_key Data_encoding.t val secret_key_encoding : secret_key Data_encoding.t val nonce_encoding : nonce Data_encoding.t + +val neuterize : secret_key -> public_key +val equal : public_key -> public_key -> bool