https://github.com/kevincharm/noble-bn254-drand
https://github.com/kevincharm/noble-bn254-drand
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kevincharm/noble-bn254-drand
- Owner: kevincharm
- License: mit
- Created: 2024-09-21T22:31:04.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-09-21T23:45:05.000Z (8 months ago)
- Last Synced: 2024-12-08T14:36:42.172Z (6 months ago)
- Language: TypeScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# noble-bn254-drand
As found at [@noble/curves/bn254](https://github.com/paulmillr/noble-curves/blob/c13d9d0dca752d2a45675c3b1508beb2eb3981ca/src/bn254.ts), but with hash-to-curve & signature implementations specifically tailored for [drand](https://drand.love) evmnet.
## Installation
You must also install `@noble/curves@^1.6.0` as a peer dependency.
```bash
yarn add @noble/curves @kevincharm/noble-bn254-drand
```## Notable features
- Hash-to-curve used is [SVDW from RFC9380](https://datatracker.ietf.org/doc/html/rfc9380/#svdw).
- Hash function used is keccak256.
- Signatures implemented on G1 only (short signatures).
- (De-)serialisation is from/to [Kyber](https://github.com/dedis/kyber) format, and does not support point compression.