VegeBun-csj / substrate-zk

A substrate-based chain with bellman
Apache License 2.0
2 stars 1 forks source link

Are there any plans to support bn128 elliptic curves? #3

Open atsupontio opened 1 year ago

atsupontio commented 1 year ago

The bls12_381 elliptic curve can be compiled in circom, but the circomlib that uses baby jubjub (e.g. eddsa) cannot be used because it is on bn128. Probably not even a hash function can be used.

VegeBun-csj commented 1 year ago

Ok, thank you for your suggestion. In the near future, I will start to add support for bn curves and increase support for arkworks library 😸

VegeBun-csj commented 1 year ago

Hi @atsupontio , im so excited to let you know that i have implemented the bn256 curve adapter, so we can verify the proof generated by the circom using bn128 ! :), next i will support it in substrate!