From a64a29791dc01236bd3c82b26b11c94c4110db79 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Thu, 13 Apr 2017 15:20:26 +0200 Subject: [PATCH] EIP-212: pairing checking precompiled contract As described in https://github.com/ethereum/EIPs/pull/212 --- Paper.tex | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/Paper.tex b/Paper.tex index 856a373c..c4884cd1 100644 --- a/Paper.tex +++ b/Paper.tex @@ -1520,6 +1520,62 @@ \subsection{zkSNARK Related Precompiled Contracts} \end{eqnarray} We define $G_2$ to be the subgroup of $(C_2,+)$ generated by $P_2$. $G_2$ is known to be a cyclic group of order $q$. For a point $P$ in $G_2$, we define $\log_{P_2}(P)$ be the smallest natural number $n$ satisfying $n\cdot P_2=P$. With this definition, $\log_{P_2}(P)$ is at most $q-1$. +A 32 byte number $\mathbf{x}\in\mathbf{P}_{256}$ might and might not represent an element of $F_p$. +\begin{equation} +\delta_p(\mathbf x)\equiv\begin{cases} +\mathbf x&\text{if}\ \mathbf x