Documentation ¶
Overview ¶
Package vdf is a proof-of-concept implementation of a delay function and the security properties are not guaranteed. A more secure implementation of the VDF by Wesolowski (https://eprint.iacr.org/2018/623.pdf) will be done soon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VDF ¶
type VDF struct {
// contains filtered or unexported fields
}
VDF is the struct holding necessary state for a hash chain delay function.
func (*VDF) Execute ¶
func (vdf *VDF) Execute()
Execute runs the VDF until it's finished and put the result into output channel.
func (*VDF) GetOutput ¶
GetOutput returns the vdf output, which can be bytes of 0s is the vdf is not finished.
func (*VDF) GetOutputChannel ¶
GetOutputChannel returns the vdf output channel.
func (*VDF) IsFinished ¶
IsFinished returns whether the vdf execution is finished or not.
Click to show internal directories.
Click to hide internal directories.