Elliptic Curve Arithmetic Precompiles #757
Closed
0xpluto
started this conversation in
Filecoin Virtual Machine
Replies: 1 comment 5 replies
-
These precompiles already exist on the network (although they execute in WASM, not native). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Simple Summary
This proposal will add helpful elliptic curve arithmetic operations to Filecoin's precompiles. This introduces modular exponentiation, elliptic curve addition, elliptic curve scalar multiplication, and bilinear function on groups for the elliptic curve 'alt_bn128'
Motivation
Currently filecoin smart contracts are fully transparent. To protect privacy of users in certain applications, zkSNARKs must be utilized. Filecoin does not have any precompiles for these complex mathmatical operations. While some of these operations could fit into execution in plain code, gas costs would be unnecessarily high.
Abstract
These EIP's suggest to add precompiled contracts for modular exponentiation, and addition, scalar multiplication, a pairing function on a pairing-friendly elliptic curve 'alt_bn128'
Precompiled contracts for addition and scalar multiplication on the elliptic curve alt_bn128
Precompiled contracts for optimal ate pairing check on the elliptic curve alt_bn128
Big integer modular exponentiation
Reference
These precompiles have specifics at evm precompiles since the Byzantium hard fork.
Modular Exponentiation - 0x05
Elliptic Curve Addition - 0x06
Elliptic Curve Multiplication - 0x07
Elliptic Curve Pairing - 0x08
Beta Was this translation helpful? Give feedback.
All reactions