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.shell/Tezos_shell/Shell_operation/index.html

Module Tezos_shell.Shell_operationSource

This module provides the operation representation used by the prevalidator and its dependencies. It also contains tools for parsing an operation into this representation, and updating the latter.

Sourcetype 'protocol_operation operation = private {
  1. hash : Tezos_base.TzPervasives.Operation_hash.t;
    (*

    Hash of an operation.

    *)
  2. raw : Tezos_base.Operation.t;
    (*

    Raw representation of an operation (from the point view of the shell).

    *)
  3. protocol : 'protocol_operation;
    (*

    Economic protocol specific data of an operation. It is the unserialized representation of raw.protocol_data. For convenience, the type associated to this type may be unit if we do not have deserialized the operation yet.

    *)
  4. signature_checked : bool;
    (*

    This field is initially false. It is set to true when the operation is successfully validated in any context. While this does not guarantee that the operation will still be valid in another validation context, it notably means that the signature is correct. Therefore, when this field is true, we can tell the protocol to skip signature checks.

    *)
  5. size : int;
    (*

    Size of the operation in bytes.

    *)
}

Representation of a parsed operation, used only in the shell.

Sourceval record_successful_signature_check : 'protocol_operation operation -> 'protocol_operation operation

Return the operation with the signature_checked field set to true.

Sourcemodule type PARSER = sig ... end

The purpose of this module type is to provide the parse function, whose return type depends on the protocol.

Create a PARSER tailored to a given protocol.

OCaml

Innovation. Community. Security.