package tezos-protocol-015-PtLimaPt

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Tx_rollup_message_repr/index.html

Module Tezos_raw_protocol_015_PtLimaPt.Tx_rollup_message_reprSource

Communication from the layer-1 (Tezos) to the layer-2 (a transaction rollup) happens thanks to messages, crafted in the layer-1 to be interpreted in the layer-2.

Messages are constructed and gathered in the layer-1, in inboxes (see Tx_rollup_repr_storage.append_message).

Smart contract on the layer-1 can deposit tickets into a transaction rollup, for the benefit of a Tx_rollup_l2_address.t. The sender is an implicit account where the deposit is returned in form of a withdrawal, should the application of the deposit fail.

Sourcetype t =
  1. | Batch of string
  2. | Deposit of deposit

A message is a piece of data originated from the layer-1 to be interpreted by the layer-2.

Transaction rollups feature two kind of messages:

  • An array of bytes that supposedly contains a valid sequence of layer-2 operations; their interpretation and validation is deferred to the layer-2..
  • A deposit order for a L1 ticket.
Sourceval size : t -> int

size msg returns the number of bytes that are allocated in an inbox by msg.

OCaml

Innovation. Community. Security.