package tezos-plonk

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module type Aggregator = sig ... end
module Pack_impl : sig ... end
include Aggregator with type scalar = Plonk.Bls.Scalar.t and type g1 = Plonk.Bls.G1.t and type g2 = Plonk.Bls.G2.t and type gt = Plonk.Bls.GT.t
type scalar = Plonk.Bls.Scalar.t
type g1 = Plonk.Bls.G1.t
type g2 = Plonk.Bls.G2.t
type gt = Plonk.Bls.GT.t
type prover_public_parameters
val prover_public_parameters_t : prover_public_parameters Repr.t
type verifier_public_parameters
val verifier_public_parameters_t : verifier_public_parameters Repr.t
type data = g1
type commitment = {
  1. cmt_t : gt;
  2. cmt_len : int;
}
val commitment_t : commitment Repr.t
type randomness = scalar
type packed = g1
val packed_t : packed Repr.t
type proof
val proof_t : proof Repr.t
type transcript = Stdlib.Bytes.t
type setup_params
val setup : int -> Bls12_381_polynomial.Srs.t -> prover_public_parameters * verifier_public_parameters
val get_setup_params : prover_public_parameters -> setup_params
val public_parameters_to_bytes : prover_public_parameters -> Stdlib.Bytes.t
val commit : prover_public_parameters -> data array -> commitment
val commitment_cardinal : commitment -> int
val partial_commit : relevant_positions:int list -> prover_public_parameters -> data array -> commitment
val empty_commitment : commitment
val combine : commitment -> commitment -> commitment
val prove_single : prover_public_parameters -> transcript -> randomness -> data array -> (packed * proof) * transcript
val prove : prover_public_parameters -> transcript -> randomness -> data array list -> (packed list * proof) * transcript
val verify_single : verifier_public_parameters -> transcript -> commitment -> randomness -> (packed * proof) -> bool * transcript
val verify : verifier_public_parameters -> transcript -> commitment list -> randomness -> (packed list * proof) -> bool * transcript
OCaml

Innovation. Community. Security.