package octez-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-libs.plompiler/Plompiler/Gadget/ArithMod64/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 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.
val scalar : Csir.Scalar.t -> scalar inputscalar s describes a scalar input holding the value s.
val to_scalar : scalar input -> Csir.Scalar.tto_scalar i retrieves the value from a scalar input.
val bool : bool -> bool inputbool b describes a boolean input holding the value b.
val to_bool : bool input -> boolto_bool i retrieves the value from a boolean input.
val unit : unit inputunit 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