Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@kevincharm/noble-bn254-drand

kevincharm1.3kMIT0.0.1TypeScript support: included

@noble/curves/bn254 with hash-to-curve & signature implementations for drand

readme

noble-bn254-drand

As found at @noble/curves/bn254, but with hash-to-curve & signature implementations specifically tailored for drand evmnet.

Installation

You must also install @noble/curves@^1.6.0 as a peer dependency.

yarn add @noble/curves @kevincharm/noble-bn254-drand

Notable features

  • Hash-to-curve used is SVDW from RFC9380.
  • Hash function used is keccak256.
  • Signatures implemented on G1 only (short signatures).
  • (De-)serialisation is from/to Kyber format, and does not support point compression.