package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Manager_counter_repr/index.html

Module Tezos_raw_protocol_alpha.Manager_counter_reprSource

Counters are used as anti-replay protection mechanism in manager operations: each manager account stores a counter and each manager operation declares a value for the counter. When a manager operation is applied, the value of the counter of its manager is checked and incremented.

include Tezos_protocol_environment_alpha.Compare.S
type t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
Sourceval init : t

Initial value for a counter (zero).

Sourceval succ : t -> t

Successor of a counter.

Pretty-printer for counters.

Encoding for a counter to be used in Storage.

Encoding for a counter to be used in Operation_repr.

Encoding for a counter to be used in RPCs.

Encoding for a counter to be used in errors.

Sourcemodule Internal_for_injection : sig ... end

To be used in client injection only.

Sourcemodule Internal_for_tests : sig ... end
OCaml

Innovation. Community. Security.