ligo/src/lib_signer_services/signer_messages.mli

51 lines
1.3 KiB
OCaml
Raw Normal View History

2018-05-22 20:04:37 +04:00
(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2018. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
2018-05-24 04:26:10 +04:00
type error += Unkwnon_alias_key of string
2018-05-22 20:04:37 +04:00
type key = string
module Sign : sig
module Request : sig
type t = {
2018-05-24 04:26:10 +04:00
key : key ;
2018-05-22 20:04:37 +04:00
data: MBytes.t ;
}
val encoding : t Data_encoding.t
end
module Response : sig
type t = {
signature : Signature.t ;
}
2018-05-24 04:26:10 +04:00
val encoding : t Data_encoding.t
2018-05-22 20:04:37 +04:00
end
end
module Public_key : sig
module Request : sig
type t = {
2018-05-24 04:26:10 +04:00
key : key ;
2018-05-22 20:04:37 +04:00
}
val encoding : t Data_encoding.t
end
module Response : sig
type t = {
2018-05-24 04:26:10 +04:00
public_key : Signature.Public_key.t ;
2018-05-22 20:04:37 +04:00
}
2018-05-24 04:26:10 +04:00
val encoding : t Data_encoding.t
2018-05-22 20:04:37 +04:00
end
end
module Request : sig
type t =
| Sign of Sign.Request.t
| Public_key of Public_key.Request.t
val encoding : t Data_encoding.t
end