Skip to content

Instantly share code, notes, and snippets.

@vjuge
vjuge / snarktest.solidity
Created October 3, 2017 09:43 — forked from chriseth/snarktest.solidity
zkSNARKs test code
pragma solidity ^0.4.14;
library Pairing {
struct G1Point {
uint X;
uint Y;
}
// Encoding of field elements is: X[0] * z + X[1]
struct G2Point {
uint[2] X;