class_group_vdf

Verifiable Delay Functions bindings to Chia's VDF
Library class_group_vdf
type discriminant
type challenge
type result
type proof
type difficulty = int64
val form_size_bytes : int

Group element size

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

generate_discriminant ?seed size

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

generate_challenge discriminant seed

prove_vdf discriminant challenge difficulty

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

verify_vdf discriminant challenge difficulty result proof