Skip to content

RonTuretzky/SimpleBLS

Repository files navigation

Simple BLS

This project demonstrates a basic Hardhat and typescript approach to signing data offchain and having it verified with bls signatures on chain.

Make sure your env matches the .example.env

npm i 
cd crypto 
npm i 
cd .. 
npx hardhat compile 
npx hardhat run script/deploy.ts --network holesky 
npx ts-node crypto/generate_registration_data.ts
npx hardhat run script/register.ts --network holesky 
source .env 
npx hardhat verify $BLS_CONTRACT_ADDRESS --network holesky 

Then check out $BLS_CONTRACT_ADDRESS on holeskyscan to see your registration

Missing from this project:

  • BLS apk caching optimizations
  • Deregistering
  • Verifying some APK is a subset of the contract APK
  • Voting power
  • More robust domain hash conforming to EIP712

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published