package octez-plonk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Message.MakeSource

Parameters

Signature

module MP = MP

Plonk Main Protocol

Sourcetype 'a step =
  1. | S_ctw : [ `Commit_to_wires ] step
  2. | S_ctp : [ `Commit_to_plook ] step
  3. | S_pppi : [ `PP_prepare_ids ] step
  4. | S_ppctt : [ `PP_commit_to_t ] step
  5. | S_ppkeax : [ `PP_kzg_eval_at_x ] step
  6. | S_pcd : [ `PC_distribution ] step

Type witness for a protocol step.

Sourcetype ctw_payload = {
  1. index : int;
  2. content : MP.worker_inputs Plonk.SMap.t;
}
Sourcetype ctpap_payload = {
  1. index : int;
  2. content : MP.PP.transcript;
}
Sourcetype pppi_payload = {
  1. index : int;
  2. content : MP.PP.transcript;
}
Sourcetype ppctt_payload = {
  1. index : int;
  2. content : string list * Plonk.Bls.Scalar.t;
}
Sourcetype ppkeax_payload = {
  1. index : int;
  2. content : MP.PP.transcript;
}
Sourcetype pcd_payload = {
  1. index : int;
  2. content : MP.PP.PC.worker_msg;
}
Sourcetype 'step request =
  1. | Commit_to_wires : ctw_payload -> [ `Commit_to_wires ] request
  2. | Commit_to_plook : ctpap_payload -> [ `Commit_to_plook ] request
  3. | PP_prepare_ids : pppi_payload -> [ `PP_prepare_ids ] request
  4. | PP_commit_to_t : ppctt_payload -> [ `PP_commit_to_t ] request
  5. | PP_KZG_eval_at_x : ppkeax_payload -> [ `PP_kzg_eval_at_x ] request
  6. | PC_Distribution : pcd_payload -> [ `PC_distribution ] request
Sourcetype ctw_res_payload = {
  1. index : int;
  2. content : MP.commit_to_wires_reply;
}
Sourcetype ctpap_res_payload = {
  1. index : int;
  2. content : MP.commit_to_plook_rc_reply;
}
Sourcetype pppi_res_payload = {
  1. index : int;
  2. content : string list;
}
Sourcetype ppctt_res_payload = {
  1. index : int;
  2. content : Plonk.Bls.Evaluations.t;
}
Sourcetype ppkeax_res_payload = {
  1. index : int;
  2. content : MP.PP.PC.answer list;
}
Sourcetype pcd_res_payload = {
  1. index : int;
  2. content : MP.PP.PC.main_prover_msg;
}
Sourcetype 'step reply =
  1. | Commit_to_wires_res : ctw_res_payload -> [ `Commit_to_wires ] reply
  2. | Commit_to_plook_res : ctpap_res_payload -> [ `Commit_to_plook ] reply
  3. | PP_prepare_ids_res : pppi_res_payload -> [ `PP_prepare_ids ] reply
  4. | PP_commit_to_t_res : ppctt_res_payload -> [ `PP_commit_to_t ] reply
  5. | PP_KZG_eval_at_x_res : ppkeax_res_payload -> [ `PP_kzg_eval_at_x ] reply
  6. | PC_Distribution_res : pcd_res_payload -> [ `PC_distribution ] reply
Sourcetype t = bytes
Sourceval request_step : 'step request -> 'step step
Sourceval of_request : 'a request -> t
Sourceval of_reply : 'a reply -> t
Sourceval to_request : 'step step -> t -> 'step request option
Sourceval to_reply : 'step step -> t -> 'step reply option
Sourceval index : t -> int
Sourceval string_of_message : t -> string
OCaml

Innovation. Community. Security.