From 44b39a51c349b3c9e2065c9f94bd2f666159edff Mon Sep 17 00:00:00 2001 From: Vincent Bernardoff Date: Thu, 4 Jan 2018 17:30:39 +0100 Subject: [PATCH] Ed25519: typos --- lib_crypto/ed25519.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_crypto/ed25519.ml b/lib_crypto/ed25519.ml index 4c884f04d..f9d842694 100644 --- a/lib_crypto/ed25519.ml +++ b/lib_crypto/ed25519.ml @@ -115,7 +115,7 @@ module Secret_key = struct let of_b58check s = match Base58.simple_decode b58check_encoding s with | Some x -> Ok x - | None -> generic_error "Unexpected hash (ed25519 public key)" + | None -> generic_error "Unexpected hash (ed25519 secret key)" let to_b58check s = Base58.simple_encode b58check_encoding s let of_bytes s = Sodium.Sign.Bytes.to_secret_key s @@ -174,7 +174,7 @@ module Signature = struct let of_b58check s = match Base58.simple_decode b58check_encoding s with | Some x -> Ok x - | None -> generic_error "Unexpected hash (ed25519 public key)" + | None -> generic_error "Unexpected hash (ed25519 signature)" let to_b58check s = Base58.simple_encode b58check_encoding s let of_bytes s = MBytes.of_string (Bytes.to_string s)