package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module provides Proof-Generating Virtual Machine (PVM) running WebAssembly (version 2.0.0).

module type S = sig ... end

Build a WebAssembly PVM using the given proof-supporting context.

val reference_initial_state_hash : Sc_rollup_repr.State_hash.t

This is the state hash of reference that both the prover of the node and the verifier of the protocol Protocol_implementation have to agree on (if they do, it means they are using the same tree structure).

val ticks_per_snapshot : Tezos_protocol_environment_alpha.Z.t

Number of ticks between snapshotable states, chosen low enough to maintain refutability.

Warning: This value is used to specialize the dissection predicate of the WASM PVM. Do not change it without a migration plan for already originated smart rollups.

Depends on

  • speed (tick/s) of node in slow mode (from benchmark, 6000000 tick/s)
  • the number of ticks in a commitment (Int64.max_int, as per Number_of_ticks.max_value)

see #3590 for more pointers

val outbox_validity_period : int32
val outbox_message_limit : Tezos_protocol_environment_alpha.Z.t
val well_known_reveal_hash : Sc_rollup_reveal_hash.t

The hash requested by the WASM PVM if it cannot decode the input provided by the WASM kernel, that is, if the bytes value cannot be decoded with Sc_rollup_reveal_hash.encoding.

val well_known_reveal_preimage : string

The preimage of well_known_reveal_hash.

Convert a raw reveal request of the WASM PVM into a typed reveal as defined by the protocol.

If the decoding fails, fallback to requesting the preimage of the well_known_reveal_hash.

OCaml

Innovation. Community. Security.