package tezos-protocol-environment

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Plonk.Main_protocol end
include module type of struct include Plonk.Main_protocol_intf end
module type S = Plonk.Main_protocol.S
include sig ... end
exception Rest_not_null of string
exception Entry_not_in_table of string
module Input_commitment = Plonk.Main_protocol.Input_commitment
type scalar = Plonk.Bls.Scalar.t
val scalar_t : scalar Repr.t
val scalar_encoding : scalar Data_encoding.t
type circuit_map = (Plonk.Circuit.t * int) Plonk.SMap.t
val prover_public_parameters_t : prover_public_parameters Repr.t
val verifier_public_parameters_t : verifier_public_parameters Repr.t
val verifier_public_parameters_encoding : verifier_public_parameters Data_encoding.t
val proof_t : proof Repr.t
val proof_encoding : proof Data_encoding.t
type circuit_prover_input = Make(Plonk.Polynomial_protocol).circuit_prover_input = {
  1. witness : scalar array;
  2. input_commitments : Input_commitment.t list;
}
val circuit_prover_input_t : circuit_prover_input Repr.t
type prover_inputs = circuit_prover_input list Plonk.SMap.t
val prover_inputs_t : prover_inputs Repr.t
type public_inputs = Plonk.Bls.Scalar.t array list
val public_inputs_t : public_inputs Repr.t
type verifier_inputs = (public_inputs * Input_commitment.public list list) Plonk.SMap.t
val verifier_inputs_t : verifier_inputs Repr.t
val input_commit : ?size:int -> ?shift:int -> prover_public_parameters -> scalar array -> Input_commitment.t
val setup : zero_knowledge:bool -> circuit_map -> srs: (Octez_bls12_381_polynomial.Bls12_381_polynomial.Srs.t * Octez_bls12_381_polynomial.Bls12_381_polynomial.Srs.t) -> prover_public_parameters * verifier_public_parameters
val update_prover_public_parameters : Stdlib.Bytes.t -> prover_public_parameters -> prover_public_parameters
val update_verifier_public_parameters : Stdlib.Bytes.t -> verifier_public_parameters -> verifier_public_parameters
val verify : verifier_public_parameters -> inputs:verifier_inputs -> proof -> bool
module Internal_for_tests = Plonk.Main_protocol.Internal_for_tests
type transcript = bytes
type public_parameters = verifier_public_parameters * transcript
val transcript_encoding : Stdlib.Bytes.t Data_encoding.encoding
val public_parameters_encoding : (verifier_public_parameters * Stdlib.Bytes.t) Data_encoding.encoding
val scalar_array_encoding : scalar array Data_encoding.encoding
OCaml

Innovation. Community. Security.