Post · 2 min read· pp. 240–241

Bulletproofs IPA for multiexp

$ \def\prove{\mathsf{Prove}} \def\ver{\mathsf{Ver}} \def\A{\mathbf{A}} \def\B{\mathbf{B}} \def\bb{\mathbf{b}} $

tl;dr: This is a post-mortem write-up on how I failed to use the Bulletproofs IPA to convince a verifier that a multi-exponentiation \A\bb=∏i(Ai)bi\A^\bb = \prod_i (A_i)^{b_i} was done correctly. The problem is that the Bulletproof verifier has to “fold” the \A\A vector by using individual exponentiations, which would be even slower than the verifier naively doing the \A\bb\A^\bb multiexp.

Notation

  • We are assuming a multiplicative group \Gr\Gr of order pp
  • “In the exponent”, we will have an associated field \F\F of the same order pp.
  • Bolded, lower-case symbols such as \bb=[b0,…,bn−1]∈\Fn\bb=[b_0,\dots,b_{n-1}]\in\F^n typically denote vectors of field elements.
  • Bolded, UPPPER-case symbols such as \A=[A1,…,Am]∈\Grm\A = [A_1, \dots, A_m]\in \Gr^m typically denote vectors of group elements.
  • ∣\A∣|\A| denotes the size of a vector \A\A
  • \Ax=[A1x,…,Amx],∀x∈\F\A^x = [A_1^x, \dots, A_m^x], \forall x\in \F
  • \A\bb=∏i=1mAibi,∀b∈\Fm\A^\bb = \prod_{i=1}^m A_i^{b_i},\forall b\in\F^m
  • \A∘\B=[A1B1,A2B2,…,AmBm]\A \circ \B = [ A_1 B_1, A_2 B_2, \dots, A_m B_m]
  • AL=[A1,…,Am/2]\textbf{A}_L=[A_1,\dots,A_{m/2}] and AR=[Am/2+1,…,Am]\textbf{A}_R=[A_{m/2+1},\dots, A_m] denote the left and right halves of \A\A

(Pointless) Bulletproofs IPA for multiexp

The protocol below assumes thes vector \A\A and \bb\bb are both of size m=2km = 2^k for some integer k≥0k \ge 0.

\prove(\A,\bb)‾\underline{\prove(\A, \bb)}\ver(V,\A,\bb)→{0,1}‾\underline{\ver(V, \A, \bb)\rightarrow \{0,1\}}
if m=1\rule[2.5pt]{8em}{0.5pt}\fbox{$\textbf{if }m = 1$}\rule[2.5pt]{8em}{0.5pt}
\xrightarrow{\mbox{$\A = [A_1], \bb = [b_1]$}}
return 1 iff. V\equalsA1b1V \equals A_1^{b_1}
else (i.e., if m≥2)\rule[2.5pt]{6em}{0.5pt}\fbox{$\textbf{else}\text{ (i.e., if }m \ge 2\text{)}$}\rule[2.5pt]{6em}{0.5pt}
VL=(\AR)\bbLV_L = (\A_R)^{\bb_L} VR=(\AL)\bbRV_R = (\A_L)^{\bb_R}
\xrightarrow{\mbox{$V_L, V_R$}}
\xleftarrow{\mbox{$x\randget \F$}}
\A′=\AL∘(\AR)x\color{red}\A' = \A_L \circ (\A_R)^x \bb′=\bbL∘(\bbR)(x−1)\bb' = \bb_L \circ (\bb_R)^{(x^{-1})}
Computes \A′,\bb′{\color{red}\A'},\bb' just like the prover V′=(VL)x⋅V⋅(VR)(x−1)V' = (V_L)^x \cdot V \cdot (V_R)^{(x^{-1})}
Recurse on (\A′,\bb′)(\A',\bb')Recurse on (V′,\A′,\bb′)(V', \A',\bb')