package octez-protocol-016-PtMumbai-libs

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

In_memory is a context that can be used to instantiate an Arith or Wasm PVM. It's signature is Protocol.Alpha_context.Sc_rollup.ArithPVM.P = Protocol.Alpha_context.Sc_rollup.Wasm_2_0_0PVM.P

include P with type Tree.tree = Tezos_context_memory.Context_binary.tree and type Tree.t = Tezos_context_memory.Context_binary.t and type proof = Tezos_context_memory.Context.Proof.tree Tezos_context_memory.Context.Proof.t

Tree provides immutable, in-memory partial mirror of the context, with lazy reads and delayed writes. The trees are Merkle trees that carry the same hash as the part of the context they mirror.

type tree = Tree.tree
val verify_proof : proof -> (tree -> (tree * 'a) Lwt.t) -> (tree * 'a) option Lwt.t
val produce_proof : Tree.t -> tree -> (tree -> (tree * 'a) Lwt.t) -> (proof * 'a) option Lwt.t
val make_empty_context : ?root:string -> unit -> Tree.t
OCaml

Innovation. Community. Security.