lurk-lab / bls12_381

Implementation of the BLS12-381 pairing-friendly elliptic curve group
Other
0 stars 0 forks source link

Tracking Issue: Precompiles for Light Client #1

Open tchataigner opened 2 months ago

tchataigner commented 2 months ago

Currently, we leverage the zkvm or the decompress branch to leverage the pre-compiles in our light client implementation. I'm opening this issue to keep track of what is needed, what is available and what is to come.

Usage in Light Client

For the Light Client usage we are leveraging the bls crate on two main structures: PublicKey and Signature. PublicKey are structure defined over G1 while Signature are defined over G2. Those components have the following usage associated to them:

What's to be integrated

After some exchange with @wwared here is what we believe should be integrated in this crate for our purposes:

Current status

Already on the branch

To add

To add in future work

huitseeker commented 2 months ago

Initial PR

Already on the branch

storojs72 commented 1 month ago

G2Affine addition has been landed to dev of wp1 (https://github.com/wormhole-foundation/wp1/pull/160)

cc @tchataigner