vrf

package
v0.0.0-...-8de788b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package vrf provides optimized Secp256k1Sha256Tai functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prove

func Prove(sk *ecdsa.PrivateKey, alpha []byte) (beta, pi []byte, err error)

Prove constructs a VRF proof `pi` for the given input `alpha`, using the private key `sk`. The hash output is returned as `beta`.

func Verify

func Verify(pk *ecdsa.PublicKey, alpha, pi []byte) (beta []byte, err error)

Verify checks the proof `pi` of the message `alpha` against the given public key `pk`. The hash output is returned as `beta`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL