zhenfeizhang / pasta-solidity

A Solidity implementation of Halo2's Pasta curves

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pasta curves on solidity

Solidity implementation of Pasta curves, with test vectors from Arkworks.

Test

  • nix-shell
  • hivemind & pasta-test-all

Gas cost

  • on curve testing: 22724
  • doubling: 24812
  • addition: 26155
  • projective scalar mul: 389487
  • affine scalar mul: 890704

About

A Solidity implementation of Halo2's Pasta curves


Languages

Language:Rust 43.0%Language:Solidity 38.1%Language:Nix 7.0%Language:Shell 4.4%Language:Python 4.3%Language:TypeScript 3.2%Language:Procfile 0.0%