package octez-shell-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val decrypt : Tezos_client_base.Client_context.io_wallet -> ?name:string -> Tezos_client_base.Client_keys.sk_uri -> Tezos_crypto.Signature.secret_key Tezos_base.TzPervasives.tzresult Lwt.t
val decrypt_aggregate : Tezos_client_base.Client_context.io_wallet -> ?name:string -> Tezos_client_base.Client_keys.aggregate_sk_uri -> Tezos_crypto.Aggregate_signature.secret_key Tezos_base.TzPervasives.tzresult Lwt.t
val decrypt_all : Tezos_client_base.Client_context.io_wallet -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val decrypt_list : Tezos_client_base.Client_context.io_wallet -> string list -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val encrypt : Tezos_crypto.Signature.secret_key -> bytes -> Tezos_client_base.Client_keys.sk_uri Tezos_base.TzPervasives.tzresult Lwt.t

Encrypts a secret key using the given password

val prompt_twice_and_encrypt : Tezos_client_base.Client_context.io -> Tezos_crypto.Signature.secret_key -> Tezos_client_base.Client_keys.sk_uri Tezos_base.TzPervasives.tzresult Lwt.t

Prompts password twice to user for confirmation and returns the corresponding encrypted secret key

val prompt_twice_and_encrypt_aggregate : Tezos_client_base.Client_context.io -> Tezos_crypto.Aggregate_signature.secret_key -> Tezos_client_base.Client_keys.aggregate_sk_uri Tezos_base.TzPervasives.tzresult Lwt.t

prompt_twice_and_encrypt_aggregate cctxt sk Prompts password twice to user for confirmation and returns the corresponding encrypted aggregate secret key

val encrypt_sapling_key : Tezos_client_base.Client_context.io -> Tezos_sapling.Core.Wallet.Spending_key.t -> Tezos_client_base.Client_keys.sapling_uri Tezos_base.TzPervasives.tzresult Lwt.t
val decrypt_sapling_key : Tezos_client_base.Client_context.io -> Tezos_client_base.Client_keys.sapling_uri -> Tezos_sapling.Core.Wallet.Spending_key.t Tezos_base.TzPervasives.tzresult Lwt.t
OCaml

Innovation. Community. Security.