package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-libs.plonk/Plonk/Identities/index.html

Module Plonk.IdentitiesSource

Sourcemodule SMap = Kzg.SMap
Sourcemodule Evaluations : sig ... end
Sourcemodule Identities : sig ... end
include module type of struct include Identities end
Sourcetype prover_identities = Evaluations.t SMap.t -> Evaluations.t SMap.t

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).

The type for verifier identities: functions which map an evaluation point ξ an a PC.answer into a (string) map of evaluated identities.

Sourcetype eval_point = Identities.eval_point =
  1. | X
  2. | GX
  3. | Custom of string * Kzg.Bls.Scalar.t

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 as Custom ("x", Scalar.one)
  • GX could be implemented as Custom ("gx", generator).
Sourceval eval_point_t : eval_point Repr.t
Sourceval string_of_eval_point : eval_point -> string
Sourceval 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.

Sourceval merge_prover_identities : prover_identities list -> prover_identities

A function to merge a list of prover identities into one.

Sourceval merge_verifier_identities : verifier_identities list -> verifier_identities

A function to merge a list of verifier identities into one.

OCaml

Innovation. Community. Security.