package octez-shell-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/octez-shell-libs.client-base/Tezos_client_base/Client_keys/index.html
Module Tezos_client_base.Client_keysSource
Cryptographic keys tables
val pk_uri_param :
?name:string ->
?desc:string ->
('a, 'b) Tezos_clic.params ->
(pk_uri -> 'a, 'b) Tezos_clic.paramsval sk_uri_param :
?name:string ->
?desc:string ->
('a, 'b) Tezos_clic.params ->
(sk_uri -> 'a, 'b) Tezos_clic.paramsval aggregate_sk_uri_param :
?name:string ->
?desc:string ->
('a, 'b) Tezos_clic.params ->
(aggregate_sk_uri -> 'a, 'b) Tezos_clic.paramstype sapling_key = {sk : sapling_uri;path : int32 list;address_index : Tezos_sapling.Core.Client.Viewing_key.index;
}Aggregate_alias contains the implementation needed for the wallet to have the correspondence between aliases and keys. It has three sub-module Public_key Public_key_hash Secret_key. The reason of a sub-module inside a sub-module is not confuse them with the alias module for the standard signature (i.e. Public_key, Public_key_hash, and Secret_key).
Interface for external signing modules.
register_signer signer registers first-class module signer as signer for keys with scheme (val signer : SIGNER).scheme.
register_aggregate_signer signer registers first-class module signer as signer for keys with scheme (val signer : AGGREGATE_SIGNER).scheme.
val aggregate_neuterize :
aggregate_sk_uri ->
aggregate_pk_uri Tezos_base.TzPervasives.tzresult Lwt.tval register_aggregate_key :
Client_context.wallet ->
?force:bool ->
(Tezos_crypto.Aggregate_signature.Public_key_hash.t
* aggregate_pk_uri
* aggregate_sk_uri) ->
?public_key:Tezos_crypto.Aggregate_signature.Public_key.t ->
string ->
unit Tezos_base.TzPervasives.tzresult Lwt.tval list_aggregate_keys :
Client_context.wallet ->
(string
* Tezos_crypto.Aggregate_signature.Public_key_hash.t
* Tezos_crypto.Aggregate_signature.Public_key.t option
* aggregate_sk_uri option)
list
Tezos_base.TzPervasives.tzresult
Lwt.tval import_aggregate_secret_key :
io:Client_context.io_wallet ->
aggregate_pk_uri ->
(Tezos_crypto.Aggregate_signature.Public_key_hash.t
* Tezos_crypto.Aggregate_signature.Public_key.t option)
Tezos_base.TzPervasives.tzresult
Lwt.tval alias_aggregate_keys :
Client_context.wallet ->
string ->
(Tezos_crypto.Aggregate_signature.Public_key_hash.t
* Tezos_crypto.Aggregate_signature.Public_key.t option
* aggregate_sk_uri option)
option
Tezos_base.TzPervasives.tzresult
Lwt.tval aggregate_sign :
Client_context.wallet ->
aggregate_sk_uri ->
Tezos_base.TzPervasives.Bytes.t ->
Tezos_crypto.Aggregate_signature.t Tezos_base.TzPervasives.tzresult Lwt.tmodule V0 :
S
with type public_key_hash := Tezos_crypto.Signature.V0.Public_key_hash.t
and type public_key := Tezos_crypto.Signature.V0.Public_key.t
and type secret_key := Tezos_crypto.Signature.V0.Secret_key.t
and type watermark := Tezos_crypto.Signature.V0.watermark
and type signature := Tezos_crypto.Signature.V0.tmodule V1 :
S
with type public_key_hash := Tezos_crypto.Signature.V1.Public_key_hash.t
and type public_key := Tezos_crypto.Signature.V1.Public_key.t
and type secret_key := Tezos_crypto.Signature.V1.Secret_key.t
and type watermark := Tezos_crypto.Signature.V1.watermark
and type signature := Tezos_crypto.Signature.V1.tmodule V_latest :
S
with type public_key_hash :=
Tezos_crypto.Signature.V_latest.Public_key_hash.t
and type public_key := Tezos_crypto.Signature.V_latest.Public_key.t
and type secret_key := Tezos_crypto.Signature.V_latest.Secret_key.t
and type watermark := Tezos_crypto.Signature.V_latest.watermark
and type signature := Tezos_crypto.Signature.V_latest.tinclude module type of V_latest
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 = Tezos_crypto.Signature.V_latest.Public_key_hash.tmodule Public_key :
Client_aliases.Alias
with type t = pk_uri * Tezos_crypto.Signature.V_latest.Public_key.t optionval import_secret_key :
io:Client_context.io_wallet ->
pk_uri ->
(Tezos_crypto.Signature.V_latest.Public_key_hash.t
* Tezos_crypto.Signature.V_latest.Public_key.t option)
Tezos_base.TzPervasives.tzresult
Lwt.tval public_key :
pk_uri ->
Tezos_crypto.Signature.V_latest.Public_key.t Tezos_base.TzPervasives.tzresult
Lwt.tval public_key_hash :
pk_uri ->
(Tezos_crypto.Signature.V_latest.Public_key_hash.t
* Tezos_crypto.Signature.V_latest.Public_key.t option)
Tezos_base.TzPervasives.tzresult
Lwt.tval sign :
Client_context.wallet ->
?watermark:Tezos_crypto.Signature.V_latest.watermark ->
sk_uri ->
Tezos_base.TzPervasives.Bytes.t ->
Tezos_crypto.Signature.V_latest.t Tezos_base.TzPervasives.tzresult Lwt.tval append :
Client_context.wallet ->
?watermark:Tezos_crypto.Signature.V_latest.watermark ->
sk_uri ->
Tezos_base.TzPervasives.Bytes.t ->
Tezos_base.TzPervasives.Bytes.t Tezos_base.TzPervasives.tzresult Lwt.tval check :
?watermark:Tezos_crypto.Signature.V_latest.watermark ->
pk_uri ->
Tezos_crypto.Signature.V_latest.t ->
Tezos_base.TzPervasives.Bytes.t ->
bool Tezos_base.TzPervasives.tzresult Lwt.tval deterministic_nonce :
sk_uri ->
Tezos_base.TzPervasives.Bytes.t ->
Tezos_base.TzPervasives.Bytes.t Tezos_base.TzPervasives.tzresult Lwt.tval deterministic_nonce_hash :
sk_uri ->
Tezos_base.TzPervasives.Bytes.t ->
Tezos_base.TzPervasives.Bytes.t Tezos_base.TzPervasives.tzresult Lwt.tval register_key :
Client_context.wallet ->
?force:bool ->
(Tezos_crypto.Signature.V_latest.Public_key_hash.t * pk_uri * sk_uri) ->
?public_key:Tezos_crypto.Signature.V_latest.Public_key.t ->
string ->
unit Tezos_base.TzPervasives.tzresult Lwt.tval register_keys :
Client_context.wallet ->
(string
* Tezos_crypto.Signature.V_latest.Public_key_hash.t
* Tezos_crypto.Signature.V_latest.Public_key.t
* pk_uri
* sk_uri)
list ->
unit Tezos_base.TzPervasives.tzresult Lwt.tSimilar to repeated calls to register_key, but is more efficient. Always forces addition of new elements.
val list_keys :
Client_context.wallet ->
(string
* Tezos_crypto.Signature.V_latest.Public_key_hash.t
* Tezos_crypto.Signature.V_latest.Public_key.t option
* sk_uri option)
list
Tezos_base.TzPervasives.tzresult
Lwt.tval alias_keys :
Client_context.wallet ->
string ->
(Tezos_crypto.Signature.V_latest.Public_key_hash.t
* Tezos_crypto.Signature.V_latest.Public_key.t option
* sk_uri option)
option
Tezos_base.TzPervasives.tzresult
Lwt.tval get_key :
Client_context.wallet ->
Tezos_crypto.Signature.V_latest.Public_key_hash.t ->
(string * Tezos_crypto.Signature.V_latest.Public_key.t * sk_uri)
Tezos_base.TzPervasives.tzresult
Lwt.tval get_public_key :
Client_context.wallet ->
Tezos_crypto.Signature.V_latest.Public_key_hash.t ->
(string * Tezos_crypto.Signature.V_latest.Public_key.t)
Tezos_base.TzPervasives.tzresult
Lwt.tval get_keys :
Client_context.wallet ->
(string
* Tezos_crypto.Signature.V_latest.Public_key_hash.t
* Tezos_crypto.Signature.V_latest.Public_key.t
* sk_uri)
list
Tezos_base.TzPervasives.tzresult
Lwt.t