package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V10/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.