Proto/env: export Ed25519.Signature.zero

This commit is contained in:
Grégoire Henry 2018-02-23 16:12:03 -05:00 committed by Benjamin Canou
parent dc89432aad
commit 71e9780e5b
3 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,7 @@ module Signature = struct
let to_bytes x = x
let size = Sign.bytes
let zero = MBytes.init size '\000'
let () =
Base58.check_encoded_prefix b58check_encoding "edsig" 99

View File

@ -81,6 +81,8 @@ module Signature : sig
val size: int
val zero: t
(** Check a signature *)
val check: Public_key.t -> t -> MBytes.t -> bool

View File

@ -80,6 +80,8 @@ module Signature : sig
(** Append a signature *)
val append: Secret_key.t -> MBytes.t -> MBytes.t
val zero: t
end
val sign: Secret_key.t -> MBytes.t -> Signature.t