mirror of
https://github.com/lux-apps/papers.git
synced 2026-10-30 18:15:21 +00:00
Restructured from flat .tex/.pdf files into per-paper subdirectories. Added Antje Worring as co-author on all papers. Synced PDFs to pdfs/ for download site.
37 lines
1.5 KiB
TeX
37 lines
1.5 KiB
TeX
\section{The 20 Precompiles}
|
|
|
|
|
|
\begin{table}[H]
|
|
\centering
|
|
\small
|
|
\begin{tabular}{@{}clrl@{}}
|
|
\toprule
|
|
\textbf{Addr} & \textbf{Name} & \textbf{Gas} & \textbf{Function} \\
|
|
\midrule
|
|
0x0200 & BLS12-381 Pairing & 113K/pair & Multi-pairing check \\
|
|
0x0201 & BLS12-381 G1 Add & 500 & Elliptic curve addition \\
|
|
0x0202 & BLS12-381 G1 Mul & 45K & Scalar multiplication \\
|
|
0x0203 & BLS12-381 Map-to-G1 & 5.5K & Hash to curve \\
|
|
0x0204 & BLS12-381 G2 Add & 800 & G2 point addition \\
|
|
0x0205 & BLS12-381 G2 Mul & 128K & G2 scalar multiplication \\
|
|
0x0206 & BLS12-381 Map-to-G2 & 23K & Hash to G2 \\
|
|
0x0207 & BLS12-381 Aggregate & 12K & Aggregate BLS signatures \\
|
|
0x0210 & BN254 Pairing & 65K/pair & BN254 multi-pairing \\
|
|
0x0211 & BN254 G1 Mul Batch & 6K/point & Batched scalar mul \\
|
|
0x0220 & Batch ecrecover & 1.8K/sig & Batch secp256k1 verify \\
|
|
0x0230 & ML-DSA Verify & 35K & Dilithium-3 verification \\
|
|
0x0231 & FALCON Verify & 22K & FALCON-512 verification \\
|
|
0x0240 & FHE Encrypt & 55K & TFHE encryption \\
|
|
0x0241 & FHE Add & 2K & Ciphertext addition \\
|
|
0x0242 & FHE Multiply & 100K & Ciphertext multiplication \\
|
|
0x0243 & FHE Decrypt & 45K & Ciphertext decryption \\
|
|
0x0250 & Warp Verify & 12K & Cross-chain message verify \\
|
|
0x0260 & NTT Forward & 500 & Forward NTT-256 \\
|
|
0x0261 & NTT Inverse & 500 & Inverse NTT-256 \\
|
|
\bottomrule
|
|
\end{tabular}
|
|
\caption{All 20 Lux Network precompiles with address and gas cost.}
|
|
\end{table}
|
|
|
|
%% ============================================================
|