package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
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.