package tezos-plonk

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Scalar = Bls12_381.Fr
module G1 = Bls12_381.G1
module G2 = Bls12_381.G2
module GT = Bls12_381.GT
module Pairing = Bls12_381.Pairing
module Fr_generation : sig ... end
module Poly = Polynomial.Polynomial
module Scalar_map : sig ... end
type secret = Poly.t SMap.t
type query = Scalar.t SMap.t
type answer = Scalar.t SMap.t SMap.t
val answer_encoding : answer Data_encoding.t
val bytes_of_query : Bls12_381.Fr.t SMap.t -> Stdlib.Bytes.t
val bytes_of_answer : answer -> Stdlib.Bytes.t
type transcript = Stdlib.Bytes.t
val pippenger : ?start:int -> ?len:int -> G1.t array -> G1.Scalar.t array -> G1.t
module Public_parameters : sig ... end
module Commitment : sig ... end
type proof = G1.t SMap.t
val proof_encoding : proof Data_encoding.t
val expand_with_proof : bytes -> G1.t SMap.t -> bytes
val expand_with_query : bytes -> Bls12_381.Fr.t SMap.t list -> bytes
val expand_with_answer : bytes -> answer list -> bytes
val compute_Ws : Public_parameters.prover -> Poly.t SMap.t -> Poly.scalar SMap.t -> Scalar.t SMap.t -> G1.t SMap.t
val verifier_check : Public_parameters.verifier -> G1.t SMap.t -> Scalar.t SMap.t SMap.t -> Scalar.t SMap.t -> Scalar.t SMap.t -> G1.t SMap.t -> bool
val sample_ys : Stdlib.Bytes.t -> 'a SMap.t -> Fr_generation.scalar SMap.t * Stdlib.Bytes.t
val batch_answer : Scalar.t SMap.t -> Scalar.t SMap.t SMap.t -> Scalar.t SMap.t * Scalar.t SMap.t SMap.t
val prove_single : Public_parameters.prover -> Stdlib.Bytes.t -> Poly.t SMap.t -> Scalar.t SMap.t -> Scalar.t SMap.t SMap.t -> G1.t SMap.t * bytes
val verify_single : Public_parameters.verifier -> Stdlib.Bytes.t -> G1.t SMap.t -> Scalar.t SMap.t -> Scalar.t SMap.t SMap.t -> G1.t SMap.t -> bool * bytes
val group_secrets : secret list -> secret
val group_cmts : Commitment.t list -> Commitment.t
val group_queries : query list -> query
val group_answers : answer list -> answer
val evaluate : Poly.t SMap.t -> query -> answer
val prove : Public_parameters.prover -> bytes -> secret list -> 'a -> query list -> answer list -> G1.t SMap.t * bytes
val verify : Public_parameters.verifier -> bytes -> Commitment.t list -> query list -> answer list -> G1.t SMap.t -> bool * bytes
OCaml

Innovation. Community. Security.