Skip to content

BLS12-381 written in cairo. Uses many non-whitelisted hints and is thus not StarkNet ready. Performance improvements forthcoming.

License

Notifications You must be signed in to change notification settings

0xNonCents/cairo-bls12-381

Repository files navigation

BLS12-381 implemented in Cairo

Deprecated please use optimized ecc cairo

A lot of code from Tekkac's bn128 implementation

Some key differences

  • Uses BLS12-381 curve parameters
  • Substituting BigInt3 for BigInt6(6 limbs of 64 bits)

To Run

git clone https://github.com/0xNonCents/cairo-bls12-381
cd cairo-bls12-381
make

BLS12-381 parameters from py_ecc

Benchmark

single pairing : 410.7343 Seconds, > 5 million steps

About

BLS12-381 written in cairo. Uses many non-whitelisted hints and is thus not StarkNet ready. Performance improvements forthcoming.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages