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