package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/octez-libs.plompiler/Plompiler/LibCircuit/Input/index.html

Module LibCircuit.InputSource

Module for describing inputs to Plompiler circuits.

Sourcetype 'a input

Input of type 'a to a Plompiler program. These hold a value of type 'a with some additional structure used for constructing the circuit. Often, after implementing a Plompiler program, one is left with a function of the shape:

val prog : 'a input -> 'b input -> unit repr t.

If the user only wants to execute the program in order to compute the corresponding circuit, but without producing a proof, then the inputs can be set to dummy values, as they will be ignored. That is, only the structure of the input is used for building the circuit.

scalar s describes a scalar input holding the value s.

Sourceval to_scalar : scalar input -> Csir.Scalar.t

to_scalar i retrieves the value from a scalar input.

Sourceval bool : bool -> bool input

bool b describes a boolean input holding the value b.

Sourceval to_bool : bool input -> bool

to_bool i retrieves the value from a boolean input.

Sourceval unit : unit input

unit describes a unit input.

Sourceval pair : 'a input -> 'b input -> ('a * 'b) input

pair a b describes the input tuple (a, b) made out of inputs a and b.

Sourceval to_pair : ('a * 'b) input -> 'a input * 'b input

to_pair p retrieves the inputs (a, b) that make up the input tuple p.

Sourceval list : 'a input list -> 'a list input

list l turns a list of inputs l into an list input.

Sourceval to_list : 'a list input -> 'a input list

to_list li turns a list input li into a list of inputs.

Sourceval with_implicit_bool_check : ('a repr -> bool repr t) -> 'a input -> 'a input

with_implicit_bool_check bc i attaches an implicit bool check bc to the input i.

Sourceval with_assertion : ('a repr -> unit repr t) -> 'a input -> 'a input

with_assertion assrtn i attaches an assertion assrtn to the input i.

Sourcetype 'a t = 'a input
OCaml

Innovation. Community. Security.