@bisonai/orakl-vrf
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Orakl Network VRF

Orakl Network VRF is based on ECVRF that was proposed at draft-irtf-cfrg-vrf-10. Orakl Network VRF is used in Orakl Network Core and Orakl Network CLI.

Basics

# prover
beta = VRF_hash(SK, alpha)
pi = VRF_prove(SK, alpha)

# verifier
beta = VRF_proof_to_hash(pi)
VRF_verify(PK, alpha, pi)

VRF_hash(SK, alpha) = VRF_proof_to_hash(VRF_prove(SK, alpha))

Installation

yarn install

Tests

yarn test

Linter

yarn lint

Publishing

@bisonai/orakl-vrf is published through Github Actions pipeline when package version specified in package.json changes.

Acknowledgements

Some parts of code were inspired by or copied from

Dependencies (2)

Dev Dependencies (12)

Package Sidebar

Install

npm i @bisonai/orakl-vrf

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

51.5 kB

Total Files

15

Last publish

Collaborators

  • bayram98
  • martinkersner