Skip to content

Commit

Permalink
Perf: Pairing on BN254 using direct Fp12 extension and non-native `Ev…
Browse files Browse the repository at this point in the history
…al()` (#1339)
  • Loading branch information
yelhousni authored Dec 14, 2024
1 parent 754b26e commit e5315fb
Show file tree
Hide file tree
Showing 15 changed files with 1,769 additions and 2,678 deletions.
4 changes: 2 additions & 2 deletions internal/stats/latest_stats.csv
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ pairing_bls24315,bls24_315,plonk,0,0
pairing_bls24315,bls24_317,plonk,0,0
pairing_bls24315,bw6_761,plonk,0,0
pairing_bls24315,bw6_633,plonk,141249,141249
pairing_bn254,bn254,groth16,963003,1603091
pairing_bn254,bn254,groth16,604783,990919
pairing_bn254,bls12_377,groth16,0,0
pairing_bn254,bls12_381,groth16,0,0
pairing_bn254,bls24_315,groth16,0,0
pairing_bn254,bls24_317,groth16,0,0
pairing_bn254,bw6_761,groth16,0,0
pairing_bn254,bw6_633,groth16,0,0
pairing_bn254,bn254,plonk,3771397,3534755
pairing_bn254,bn254,plonk,2319665,2030447
pairing_bn254,bls12_377,plonk,0,0
pairing_bn254,bls12_381,plonk,0,0
pairing_bn254,bls24_315,plonk,0,0
Expand Down
6 changes: 5 additions & 1 deletion std/algebra/emulated/fields_bn254/doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Package fields_bn254 implements the fields arithmetic of the Fp12 tower
// Package fields_bn254 implements the fields arithmetic of the direct 𝔽p¹² extension
// used to compute the pairing over the BN254 curve.
//
// 𝔽p¹²[i] = 𝔽p/i¹²-18i⁶+82
//
// This direct tower is isomorphic to the 2-3-2 tower:
//
// 𝔽p²[u] = 𝔽p/u²+1
// 𝔽p⁶[v] = 𝔽p²/v³-9-u
// 𝔽p¹²[w] = 𝔽p⁶/w²-v
Expand Down
Loading

0 comments on commit e5315fb

Please sign in to comment.