package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-shell-libs.client-base-unix/Tezos_client_base_unix/Client_context_unix/class-unix_wallet/index.html

Class Client_context_unix.unix_walletSource

method load_passwords : string Lwt_stream.t option
method read_file : string -> string Tezos_base.TzPervasives.tzresult Lwt.t

read_file path reads the content of the file given by path. Note that the whole content of the file is loaded into memory: you shouldn't read big files using this method. Errors that may be returned are implementation-dependent.

method with_lock : (unit -> 'a Lwt.t) -> 'a Lwt.t

with_lock f calls f () exclusively from any other function that is wrapped within with_lock.

method load : string -> default:'a -> 'a Tezos_base.TzPervasives.Data_encoding.encoding -> 'a Tezos_base.TzPervasives.tzresult Lwt.t

load alias ~default enc reads the file corresponding to the alias, and parses using encoding. If the file does not exist, then default is returned.

method write : string -> 'a -> 'a Tezos_base.TzPervasives.Data_encoding.encoding -> unit Tezos_base.TzPervasives.tzresult Lwt.t

write alias x encoding writes in a file corresponding to the alias the information given by x using the encoding.

method last_modification_time : string -> float option Tezos_base.TzPervasives.tzresult Lwt.t

last_modification_time alias returns the last modification time of the file corresponding to the alias, if the file exists; otherwise None.

method get_base_dir : string

Current base directory. Stores the information of keys (public key hashes, public keys, secret keys) and watermarks.

OCaml

Innovation. Community. Security.