Proto/env: export Ed25519.Signature.zero
This commit is contained in:
parent
dc89432aad
commit
71e9780e5b
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user