package class_group_vdf

  1. Overview
  2. Docs
Verifiable Delay Functions bindings to Chia's VDF

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-chia-vdf-v0.0.4.tar.gz
md5=9dedb6584bf23877136c328703d47532
sha512=265f4c76fe995524260bff055347a9bb40cce9b5adf0f0222fd71a0cce29d51fe1fbac7b961577b6d28e16c8aa4630805c6365924e6fc0d06c4d07c84d2c6c78

doc/class_group_vdf/Class_group_vdf/Vdf_self_contained/index.html

Module Class_group_vdf.Vdf_self_containedSource

Sourcetype discriminant
Sourcetype challenge
Sourcetype result
Sourcetype proof
Sourcetype difficulty = int64
Sourceval form_size_bytes : int

Group element size

Sourceval discriminant_size_bytes : int
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

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

generate_challenge discriminant seed

prove_vdf discriminant challenge difficulty

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

verify_vdf discriminant challenge difficulty result proof