package tezos-plonk

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type prover = {
  1. srs1 : Polynomial.Srs.t;
  2. encoding_1 : G2.t;
  3. encoding_x : G2.t;
  4. d : int;
}
val to_bytes : prover -> bytes
type verifier = {
  1. encoding_1 : G2.t;
  2. encoding_x : G2.t;
}
val verifier_encoding : verifier Data_encoding.t
type setup_params = int * int
val get_d : prover -> int
val create_srs1 : int -> G1.Scalar.t -> G1.t array
val encoding : G1.Scalar.t -> G1.t
val encoding_2 : G2.Scalar.t -> G2.t
val setup : ?state:Stdlib.Random.State.t -> (int * 'a) -> prover * verifier
val prv_import : int -> (string * string) -> prover
val vrf_import : verifier
val import : (int * 'a) -> ((string * string) * 'b) -> prover * verifier
OCaml

Innovation. Community. Security.