package octez-libs
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
    
    
  sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
    
    
  doc/octez-libs.crypto-dal/Tezos_crypto_dal/Cryptobox/Verifier/index.html
Module Cryptobox.VerifierSource
Parameters to build a value of type t
An encoding for values of type parameters.
make precomputes the set of values needed by the cryptographic primitives defined in this module and stores them in a value of type t
parameters t returns the parameters given when t was initialised with the function make
Commitment to a polynomial.
A proof that the polynomial associated to some commitment is bounded by a constant.
verify_commitment t commitment proof returns true if and only if the size of the data committed via commitment does not exceed the slot_size declared in t.
The verification time is constant.
The original slot can be split into a list of pages of fixed size. This size is given by the parameter page_size given to the function make.
A proof that the evaluation of points of a polynomial is part of a commitment.
An encoding for the proof of a page.
pages_per_slot t returns the number of expected pages per slot.
val verify_page : 
  t ->
  commitment ->
  page_index:int ->
  page ->
  page_proof ->
  (unit,
    [> `Invalid_degree_strictly_less_than_expected of
         (int, int) error_container
    | `Invalid_page
    | `Page_length_mismatch
    | `Page_index_out_of_range ])
    Result.tverify_page t commitment ~page_index page proof returns Ok () if the proof certifies that the page is the page_index-th page of the slot with the given commitment.
Fails with:
Error `Invalid_pageif the verification FailsError `Invalid_degree_strictly_less_than_expected _if the SRS contained intis too small to proceed with the verificationError `Page_length_mismatchif the page is not of the expected lengthpage_sizegiven for the initialisation oftError `Page_index_out_of_rangeifpage_indexis out of the range0, slot_size/page_size - 1whereslot_sizeandpage_sizeare given for the initialisation oft
Ensures:
verify_page t commitment ~page_index page proof = Ok ()if and only ifpage = Bytes.sub slot (page_index * t.page_size) t.page_size),proof = prove_page t polynomial page_index,p = polynomial_from_slot t slot, andcommitment = commit t p.