package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V6/Make/Vdf/index.html

Module Make.VdfSource

Sourceval form_size_bytes : int

Size of a group element, also called form, in bytes

Sourceval discriminant_size_bytes : int

Size of the class group discriminant in bytes

Sourcetype discriminant

Class group discriminant, prime number uniquely defining a class group

Sourcetype challenge

VDF challenge

Sourcetype result

VDF result

Sourcetype proof

VDF proof

Sourcetype difficulty = Int64.t

VDF difficulty, that is log of the number of group element compositions done in the prover

Sourceval discriminant_to_bytes : discriminant -> bytes
Sourceval discriminant_of_bytes_opt : bytes -> discriminant option
Sourceval challenge_to_bytes : challenge -> bytes
Sourceval challenge_of_bytes_opt : bytes -> challenge option
Sourceval result_to_bytes : result -> bytes
Sourceval result_of_bytes_opt : bytes -> result option
Sourceval proof_to_bytes : proof -> bytes
Sourceval proof_of_bytes_opt : bytes -> proof option
Sourceval generate_discriminant : ?seed:Bytes.t -> int -> discriminant

generate_discriminant ?seed size, function generating a discriminant/group

Sourceval generate_challenge : discriminant -> Bytes.t -> challenge

generate_challenge discriminant seed, function generating a class group element used as a VDF challenge

prove_vdf discriminant challenge difficulty, function taking a class group/discriminant, a vdf challenge and a difficulty and returning a vdf result and proof

Sourceval verify : discriminant -> challenge -> difficulty -> result -> proof -> bool

verify_vdf discriminant challenge difficulty result proof function taking a class group/discriminant, a vdf challenge, difficulty, result and proof and returning true if the proof verifies else false

OCaml

Innovation. Community. Security.