Client_keys.V0
module Signature_type : sig ... end
Signature_type
is a small module to be included in signer to conform to the module type SIGNER
instead of rewriting all type.
module Public_key_hash :
Client_aliases.Alias
with type t = Mavryk_crypto.Signature.V0.Public_key_hash.t
module Public_key :
Client_aliases.Alias
with type t = pk_uri * Mavryk_crypto.Signature.V0.Public_key.t option
module Secret_key : Client_aliases.Alias with type t = sk_uri
val import_secret_key :
io:Client_context.io_wallet ->
pk_uri ->
(Mavryk_crypto.Signature.V0.Public_key_hash.t
* Mavryk_crypto.Signature.V0.Public_key.t option)
Mavryk_base.TzPervasives.tzresult
Lwt.t
val public_key :
pk_uri ->
Mavryk_crypto.Signature.V0.Public_key.t Mavryk_base.TzPervasives.tzresult
Lwt.t
val public_key_hash :
pk_uri ->
(Mavryk_crypto.Signature.V0.Public_key_hash.t
* Mavryk_crypto.Signature.V0.Public_key.t option)
Mavryk_base.TzPervasives.tzresult
Lwt.t
val neuterize : sk_uri -> pk_uri Mavryk_base.TzPervasives.tzresult Lwt.t
val sign :
Client_context.wallet ->
?watermark:Mavryk_crypto.Signature.V0.watermark ->
sk_uri ->
Mavryk_base.TzPervasives.Bytes.t ->
Mavryk_crypto.Signature.V0.t Mavryk_base.TzPervasives.tzresult Lwt.t
val append :
Client_context.wallet ->
?watermark:Mavryk_crypto.Signature.V0.watermark ->
sk_uri ->
Mavryk_base.TzPervasives.Bytes.t ->
Mavryk_base.TzPervasives.Bytes.t Mavryk_base.TzPervasives.tzresult Lwt.t
val check :
?watermark:Mavryk_crypto.Signature.V0.watermark ->
pk_uri ->
Mavryk_crypto.Signature.V0.t ->
Mavryk_base.TzPervasives.Bytes.t ->
bool Mavryk_base.TzPervasives.tzresult Lwt.t
val deterministic_nonce :
sk_uri ->
Mavryk_base.TzPervasives.Bytes.t ->
Mavryk_base.TzPervasives.Bytes.t Mavryk_base.TzPervasives.tzresult Lwt.t
val deterministic_nonce_hash :
sk_uri ->
Mavryk_base.TzPervasives.Bytes.t ->
Mavryk_base.TzPervasives.Bytes.t Mavryk_base.TzPervasives.tzresult Lwt.t
val supports_deterministic_nonces :
sk_uri ->
bool Mavryk_base.TzPervasives.tzresult Lwt.t
val register_key :
Client_context.wallet ->
?force:bool ->
(Mavryk_crypto.Signature.V0.Public_key_hash.t * pk_uri * sk_uri) ->
?public_key:Mavryk_crypto.Signature.V0.Public_key.t ->
string ->
unit Mavryk_base.TzPervasives.tzresult Lwt.t
val register_keys :
Client_context.wallet ->
(string
* Mavryk_crypto.Signature.V0.Public_key_hash.t
* Mavryk_crypto.Signature.V0.Public_key.t
* pk_uri
* sk_uri)
list ->
unit Mavryk_base.TzPervasives.tzresult Lwt.t
Similar to repeated calls to register_key
, but is more efficient. Always forces addition of new elements.
val list_keys :
Client_context.wallet ->
(string
* Mavryk_crypto.Signature.V0.Public_key_hash.t
* Mavryk_crypto.Signature.V0.Public_key.t option
* sk_uri option)
list
Mavryk_base.TzPervasives.tzresult
Lwt.t
val alias_keys :
Client_context.wallet ->
string ->
(Mavryk_crypto.Signature.V0.Public_key_hash.t
* Mavryk_crypto.Signature.V0.Public_key.t option
* sk_uri option)
option
Mavryk_base.TzPervasives.tzresult
Lwt.t
val get_key :
Client_context.wallet ->
Mavryk_crypto.Signature.V0.Public_key_hash.t ->
(string * Mavryk_crypto.Signature.V0.Public_key.t * sk_uri)
Mavryk_base.TzPervasives.tzresult
Lwt.t
val get_public_key :
Client_context.wallet ->
Mavryk_crypto.Signature.V0.Public_key_hash.t ->
(string * Mavryk_crypto.Signature.V0.Public_key.t)
Mavryk_base.TzPervasives.tzresult
Lwt.t
val get_keys :
Client_context.wallet ->
(string
* Mavryk_crypto.Signature.V0.Public_key_hash.t
* Mavryk_crypto.Signature.V0.Public_key.t
* sk_uri)
list
Mavryk_base.TzPervasives.tzresult
Lwt.t
val force_switch : unit -> (bool, 'ctx) Mavryk_clic.arg