package tezos-plonk

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Bls end
module type Scalar_sig = Bls.Scalar_sig
module Scalar = Bls.Scalar
module G1 = Bls.G1
module G2 = Bls.G2
module GT = Bls.GT
module Pairing = Plonk.Bls.Pairing
module Fr_generation : sig ... end
module Polynomial = Bls12_381_polynomial
module Scalar_map : sig ... end
type secret = Poly.t SMap.t
type query = Scalar.t SMap.t
val query_t : Scalar.t SMap.t Repr.ty
type answer = Scalar.t SMap.t SMap.t
val answer_t : Scalar.t SMap.t SMap.t Repr.ty
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_t : G1.t SMap.t Repr.ty
val expand_with_proof : G1.t SMap.t -> bytes -> bytes
val expand_with_query : Scalar.t SMap.t list -> bytes -> bytes
val expand_with_answer : Scalar.t SMap.t SMap.t list -> bytes -> bytes
val sample_ys : Stdlib.Bytes.t -> 'a SMap.t -> Fr_generation.scalar SMap.t * Stdlib.Bytes.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