package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-libs.plonk/Plonk/Identities/index.html
Module Plonk.Identities
Source
include module type of struct include Identities end
The type for prover identities: functions from a (string) map of polynomials in FFT evaluations form to a (string) map of evaluated identities (also polynomials in FFT evaluations form).
type verifier_identities =
Kzg.Bls.Scalar.t ->
Kzg.Bls.Scalar.t SMap.t SMap.t ->
Kzg.Bls.Scalar.t SMap.t
The type for verifier identities: functions which map an evaluation point ξ an a PC.answer
into a (string) map of evaluated identities.
The type for evaluation points. Either X
, GX
, or a custom point, which must be specified by an evaluation point name paired with a scalar that will multiply ξ. For example:
X
could be implemented asCustom ("x", Scalar.one)
GX
could be implemented asCustom ("gx", generator)
.
val convert_eval_points :
generator:Kzg.Bls.Scalar.t ->
x:Kzg.Bls.Scalar.t ->
eval_point list ->
Kzg.Bls.Scalar.t SMap.t
convert_eval_points gen x points
maps the polynomial protocol points : eval_point list
into scalars, by evaluating the underlying "composition" polynomial at x
. The generator gen
is used in case the eval_point
equals GX
, in which case the resulting scalar is x * gen
.
get_answer answers p name
extracts the evaluation of polynomial name
at point p
from the given answers
.
A function to merge a list of prover identities into one.
A function to merge a list of verifier identities into one.