package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-libs.plompiler/Plompiler/Gadget/Schnorr/V/argument-1-L/Input/index.html
Module L.Input
Module for describing inputs to Plompiler circuits.
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 input
s 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.
val scalar : Csir.Scalar.t -> scalar input
scalar s
describes a scalar input holding the value s
.
val to_scalar : scalar input -> Csir.Scalar.t
to_scalar i
retrieves the value from a scalar input.
val bool : bool -> bool input
bool b
describes a boolean input holding the value b
.
val to_bool : bool input -> bool
to_bool i
retrieves the value from a boolean input.
val unit : unit input
unit
describes a unit input.
pair a b
describes the input tuple (a, b)
made out of inputs a
and b
.
to_pair p
retrieves the inputs (a, b)
that make up the input tuple p
.
with_implicit_bool_check bc i
attaches an implicit bool check bc
to the input i
.
with_assertion assrtn i
attaches an assertion assrtn
to the input i
.
type 'a t = 'a input