<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Privacy and Scaling Explorations</title>
        <link>https://paragraph.com/@privacy-scaling-explorations</link>
        <description>PSE Blog has moved!

You can now find all our latest research, blog posts, and updates at our new home 👉 https://pse.dev/en/blog</description>
        <lastBuildDate>Sat, 05 Dec 2026 00:19:51 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Privacy and Scaling Explorations</title>
            <url>https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b5bc58d0a6f7ebfcb5687e29da3d277d9c67495ae2d0644de6f82d1db6a64a73.png</url>
            <link>https://paragraph.com/@privacy-scaling-explorations</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[We're moving! 👋 ]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/we-re-moving</link>
            <guid>ZHqd1RDfy8t4wL348kD3</guid>
            <pubDate>Mon, 26 May 2025 17:52:38 GMT</pubDate>
            <description><![CDATA[This will be our last post here on Mirror. From now on, all new updates and blog posts from the PSE team will be published at https://pse.dev/blog. Thanks for following us here, we&apos;ll see you at our new home. 🏠]]></description>
            <content:encoded><![CDATA[<p>This will be our last post here on Mirror. From now on, all new updates and blog posts from the PSE team will be published at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev/blog">https://pse.dev/blog</a>.</p><p>Thanks for following us here, we&apos;ll see you at our new home. 🏠</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
        </item>
        <item>
            <title><![CDATA[Code Optimizations in the Landscape of Post-Quantum Cryptography]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/code-optimizations-in-the-landscape-of-post-quantum-cryptography</link>
            <guid>WoPxefPckqXxsRMyHs5P</guid>
            <pubDate>Mon, 07 Apr 2025 11:58:40 GMT</pubDate>
            <description><![CDATA[This post was written by PSE researcher Miha Stopar. There&apos;s no doubt that lattice-based cryptography is currently the most promising branch of post-quantum cryptography. Not only is it highly performant and versatile, it also provides the only known technique to achieve fully homomorphic encryption. One reason lattice-based cryptography is so fast is that it can be heavily vectorized. This contrasts noticeably with isogeny-based cryptography, which offers far fewer opportunities for par...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by PSE researcher Miha Stopar.</em></p><p>There&apos;s no doubt that lattice-based cryptography is currently the most promising branch of post-quantum cryptography. Not only is it highly performant and versatile, it also provides the only known technique to achieve fully homomorphic encryption.</p><p>One reason lattice-based cryptography is so fast is that it can be heavily vectorized. This contrasts noticeably with isogeny-based cryptography, which offers far fewer opportunities for parallelism. In this post, I will briefly compare the potential for vectorization in both cryptographic paradigms. Of course, these two branches represent only a subset of the broader landscape of post-quantum cryptography.</p><p>Let&apos;s first take a look at what vectorization is.</p><h2 id="h-vectorization" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Vectorization</h2><p>Vectorization refers to the process of performing multiple operations simultaneously using Single Instruction, Multiple Data (SIMD) techniques. This is a powerful way to speed up computations by leveraging modern CPU instructions like SSE (Streaming SIMD Extensions), AVX (Advanced Vector Extensions), and their newer versions like AVX-512.</p><p>But what does that mean, really?</p><p>Let&apos;s say we would like to XOR 32 bytes as given below:</p><pre data-type="codeBlock" text="Input:  11001010 10101100 00011011 ...
Key  :  10110110 01100100 11100011 ...
---------------------------------
Output: 01111100 11001000 11111000 ...
"><code>Input:  <span class="hljs-number">11001010</span> <span class="hljs-number">10101100</span> 00011011 ...
Key  :  <span class="hljs-number">10110110</span> 01100100 <span class="hljs-number">11100011</span> ...
<span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span><span class="hljs-operator">-</span>
Output: 01111100 <span class="hljs-number">11001000</span> <span class="hljs-number">11111000</span> ...
</code></pre><p>Instead of doing 32 operations one byte at a time, AVX can XOR 32 bytes at once:</p><pre data-type="codeBlock" text="__m256i data  = _mm256_loadu_si256(input)
__m256i key   = _mm256_loadu_si256(key)
__m256i hash  = _mm256_xor_si256(data, key)
"><code>__m256i <span class="hljs-attr">data</span>  = _mm256_loadu_si256(input)
__m256i <span class="hljs-attr">key</span>   = _mm256_loadu_si256(key)
__m256i <span class="hljs-attr">hash</span>  = _mm256_xor_si256(data, key)
</code></pre><p>First, the AVX2 register uses <code>input</code> to load 32 bytes (256 bits) into one 256-bit register. Then, it loads 32 bytes of <code>key</code> into another register. Finally, it performs bitwise XOR between <code>data</code> and <code>key</code>, element by element. But here, 32 bytes are processed in one instruction!</p><h2 id="h-lattice-based-cryptography" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Lattice-based cryptography</h2><p>At the core of lattice-based cryptography lies matrix-vector multiplication. For example, let&apos;s consider a two-dimensional lattice $$L$$ with a basis $${v_1, v_2}$$. Lattice elements are vectors of the form $$a_1 v_1 + a_2 v_2$$, where $$a_1, a_2 \in \mathbb{Z}$$. If we construct a matrix $$M$$ such that $$v_1$$ and $$v_2$$ are the two columns of this matrix, then multiplying $$M$$ by the vector $$(a_1, a_2)^T$$ gives a lattice element.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="">Matrix multiplication illustration</figcaption></figure><p>For performance reasons, lattice-based cryptography relies on polynomial rings rather than ordinary vectors. I won’t go into the details, but let’s consider the following example.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/135ee851eb93742b292de6194b3dd99e9ff593201202de6678f8e539eb3c05bc.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The matrix-vector multiplication above is actually the multiplication of two polynomials</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/66ea671305c5f30cf34bf838b1f83bda1776ffc917744f19fb04c934fb777947.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>in the ring $$\mathbb{Z}[x]/(x^3 + 1)$$. Note that in this ring, it holds $$x^3 = -1$$. In practice, $$n$$ is typically a power of $$2$$, for example $$n = 64$$.</p><p>So, multiplying $$a(x)$$ and $$b(x)$$ and considering $$x^3 = -1$$, we obtain the same result as with the matrix-vector multiplication above:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/4efa964341cc6290f58a29e527679e99070ce1aaaf71e76abf2db99adf0c8c64.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Having matrices of this form is beneficial for two reasons: less space is required to store the matrix (only $$3$$ elements for a $$3 \times 3$$ matrix), and we can apply the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Discrete_Fourier_transform_over_a_ring">Number Theoretic Transform</a> (NTT) algorithm for polynomial multiplication instead of performing matrix-vector multiplication. When using the NTT, we multiply polynomial evaluations rather than working with polynomial coefficients, which reduces the complexity from $$O(n^2)$$ to $$O(n \log n)$$ operations.</p><p>That means that instead of directly multiplying the polynomials</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9caab420bd9cf75d323a9345af088a671f82b32dec6bd98e27dfa42a434ea4d8.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>as</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/0c6cb4a585d51946c385b7a60d947c05a8d93cdb44caff819223b00ecf61985f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>we apply the NTT to compute the evaluations $$a(\omega_1), …, a(\omega_n)$$ and $$b(\omega_1), …, b(\omega_n)$$. This allows us to perform only $$n$$ pointwise multiplications, significantly improving efficiency:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/968cbcf3de240bc8031ef00956ec8da22c2bde2a5b7942e8244af26c91fb5f45.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>This way we obtain the evaluations of $$a(x)b(x)$$ at $$\omega_1, ..., \omega_n$$. To recover the coefficients of $$a(x)b(x)$$, we apply the inverse NTT. In the next section, we will see how vectorization can further accelerate such pointwise operations.</p><h3 id="h-lattices-and-vectorization" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Lattices and vectorization</h3><p>So, why is lattice-based cryptography particularly well-suited for vectorization?</p><p>Remember, typically lattice-based cryptography deals with polynomials in $$\mathbb{Z}[x]/(x^{64}+1)$$ or $$\mathbb{Z}[x]/(x^{128}+1)$$. For $$n = 64$$, each polynomial has $$64$$ coefficients, for example:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f7821688666b2a0bdaaa2d4e6e348f09832d8e1f78ae09a4d2107236864faf1e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Now, if you want, for example, to compute $$a(x) + b(x)$$, you need to compute</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/a35787701dc76b1393537a7b2beef77f021bb129cc3c955af1da7d1859b2af90.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>This is simple to vectorize: we need to load $$a_i$$ and $$b_i$$ into an AVX register. Suppose the register has $$32$$ slots, each of length 16 bits. If the coefficients are smaller than 16 bits, we can use two registers for a single polynomial. With a single instruction, we compute the sum of the first $$32$$ coefficients:</p><pre data-type="codeBlock" text="a_1  | a_2  | ... | a_31 |
b_1  | b_2  | ... | b_31 |
-&gt;
a_1 + b_1  | a_2 + b_2  | ... | a_31 + b_31 |
"><code>a_1  <span class="hljs-operator">|</span> a_2  <span class="hljs-operator">|</span> ... <span class="hljs-operator">|</span> a_31 <span class="hljs-operator">|</span>
b_1  <span class="hljs-operator">|</span> b_2  <span class="hljs-operator">|</span> ... <span class="hljs-operator">|</span> b_31 <span class="hljs-operator">|</span>
<span class="hljs-operator">-</span><span class="hljs-operator">></span>
a_1 <span class="hljs-operator">+</span> b_1  <span class="hljs-operator">|</span> a_2 <span class="hljs-operator">+</span> b_2  <span class="hljs-operator">|</span> ... <span class="hljs-operator">|</span> a_31 <span class="hljs-operator">+</span> b_31 <span class="hljs-operator">|</span>
</code></pre><p>In the second instruction, we compute the sum of the next $$32$$ coefficients:</p><pre data-type="codeBlock" text="a_32 | a_33 | ... | a_63 |
b_32 | b_33 | ... | b_63 |
-&gt;
a_32 + b_32 | a_33 + b_33 | ... | a_63 + b_63 |
"><code>a_32 <span class="hljs-operator">|</span> a_33 <span class="hljs-operator">|</span> ... <span class="hljs-operator">|</span> a_63 <span class="hljs-operator">|</span>
b_32 <span class="hljs-operator">|</span> b_33 <span class="hljs-operator">|</span> ... <span class="hljs-operator">|</span> b_63 <span class="hljs-operator">|</span>
<span class="hljs-operator">-</span><span class="hljs-operator">></span>
a_32 <span class="hljs-operator">+</span> b_32 <span class="hljs-operator">|</span> a_33 <span class="hljs-operator">+</span> b_33 <span class="hljs-operator">|</span> ... <span class="hljs-operator">|</span> a_63 <span class="hljs-operator">+</span> b_63 <span class="hljs-operator">|</span>
</code></pre><p>Many lattice-based schemes heavily rely on matrix-vector multiplications, and similar to the approach above, these operations can be naturally expressed using vectorized instructions. Returning to the NTT, we see that these two polynomials can be multiplied efficiently using vectorization in just two instructions (performing 32 pointwise multiplications in a single instruction), along with the NTT and its inverse.</p><h2 id="h-isogenies-and-vectorization" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Isogenies and vectorization</h2><p>On the contrary, vectorizing isogeny-based schemes appears to be challenging. An isogeny is a homomorphism between two elliptic curves, and isogeny-based cryptography relies on the assumption that finding an isogeny between two given curves is difficult.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In isogeny-based cryptography, there are no structures with $$64$$ or $$128$$ elements that would allow straightforward vectorization. The optimizations used in isogeny-based cryptography are similar to those in traditional elliptic curve cryptography. Note, however, that traditional elliptic curve cryptography based on the discrete logarithm problem is not quantum-safe, while isogeny-based cryptography is believed to be quantum-safe: there is no known quantum algorithm that can efficiently find an isogeny between two elliptic curves.</p><p>Let&apos;s have a look at some optimizations used in elliptic curve cryptography:</p><ul><li><p>Choosing the prime $$p$$ such that the arithmetic in $$\mathbb{F}_p$$ is efficient,</p></li><li><p>Montgomery Reduction: efficiently computes modular reductions without expensive division operations,</p></li><li><p>Montgomery Inversion: avoids divisions entirely when used with Montgomery multiplication,</p></li><li><p>Using Montgomery or Edwards curves: enables efficient arithmetic,</p></li><li><p>Shamir’s Trick: computes $$kP+mQ$$ simultaneously, reducing the number of operations.</p></li></ul><p>It is worth noting that some of these optimizations—such as Montgomery reduction and Montgomery multiplication—also apply to lattice-based cryptography.</p><p>Let&apos;s observe a simple example that illustrates the importance of choosing a suitable prime $$p$$ for efficient finite field arithmetic. If we choose $$p \equiv 3\pmod{4}$$ (that means $$p+1$$ is divisible by $$4$$), then computing square roots becomes straightforward: to find the square root of $$x$$, one simply computes:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1ade7e8c4947c5d83649a4ac808a4c0323afb7daa7a6856a346a889813dc26f9.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Note that by Fermat&apos;s Little Theorem, it holds that $$x^p = x \pmod{p}$$, which means:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/339b1a6a48034431e249b13481c56466d4cd52f3013d714bf73c053266066231.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Elliptic curve operations can be vectorized but to a lesser extent as lattice-based operations. One <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://orbilu.uni.lu/bitstream/10993/48810/1/SAC2020.pdf">example</a> is handling field elements in radix-$$2^{29}$$ representation:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/3a4ef7777d87a415ee7634b982fb725738fc043cda7276813afe8eb717f39763.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>where $$0 \leq f_i &lt; 2^{29}$$ for $$0 \leq i \leq 8.$$</p><p>However, the number of lanes plays a crucial role in SIMD optimizations. In lattice-based cryptography, it is straightforward to have $$64$$ or $$128$$ lanes, which can significantly enhance parallel processing capabilities. In contrast, the example above only utilizes $$9$$ lanes, which limits the potential for SIMD optimization.</p><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>Lattice-based cryptography is currently at the forefront of post-quantum cryptographic advancements, with performance being one of the key reasons for its prominence. Somewhat unjustly, isogeny-based cryptography has gained a reputation for being broken in recent years. This is due to the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/975">Castryck-Decru attack</a>, which, however, applies only to schemes that expose additional information about the isogeny, namely the image of two points:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Given the images of two points under an isogeny $$\psi$$, one can compute the images of other points as well. For this, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mast.queensu.ca/~kani/papers/numgenl.pdf">Kani&apos;s lemma</a>, a remarkable result from 1997, is used. Thankfully, many isogeny-based schemes do not expose the images of points. One such example is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://sqisign.org">SQIsign</a>, which features super-compact keys and signatures, making them comparable in size to those used in elliptic-curve-based signature schemes. In summary, isogeny-based cryptography is less performant and less versatile than lattice-based cryptography; however, it offers advantages such as significantly smaller keys and signatures.</p><p>It will be interesting to see which area of post-quantum cryptography emerges as the dominant choice in the coming years. I haven&apos;t explored code-based, multivariate, or hash-based cryptography in depth yet, and each of these approaches comes with its own strengths and challenges.</p><hr><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev/"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><hr>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/846d20b5b1f20a78340cf667d3b7d9d7ce29b87e51b7ce0087b78f475c1afe6c.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Circom MPC: TL;DR and Retrospective]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/circom-mpc-tl-dr-and-retrospective</link>
            <guid>b3vtImU3XeOaCcGxVjMU</guid>
            <pubDate>Thu, 06 Mar 2025 15:55:16 GMT</pubDate>
            <description><![CDATA[This post was authored by the Circom MPC research team. Circom-MPC is a PSE Research project that enables the use of the Circom language to develop MPC applications. In this project, we envisioned MPC as a broader paradigm, where MPC serves as an umbrella for generic techniques such as Zero-Knowledge Proof, Garbled Circuit, Secret-Sharing, or Fully Homomorphic Encryption. Throughout this research the team produced some valuable resources and insights, including:Implementation of circom-2-arit...]]></description>
            <content:encoded><![CDATA[<p><em>This post was authored by the Circom MPC research team.</em></p><p>Circom-MPC is a PSE Research project that enables the use of the Circom language to develop MPC applications. In this project, we envisioned MPC as a broader paradigm, where MPC serves as an umbrella for generic techniques such as Zero-Knowledge Proof, Garbled Circuit, Secret-Sharing, or Fully Homomorphic Encryption.</p><p>Throughout this research the team produced some valuable resources and insights, including:</p><ul><li><p>Implementation of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-2-arithc">circom-2-arithc</a>, a fork of the Circom compiler that targets arithmetic circuits, which can be fed into any MPC backend</p></li><li><p>Example integration of circom-2-arithc with the popular Secret-Sharing based backend MP-SPDZ in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-mp-spdz">circom-MP-SPDZ</a>.</p></li><li><p>Proof of concept application using <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/YsWhryEtQ0WwKyerSL8oCw#Circomlib-ML-Patches-and-Benchmarks">MPC-ML</a> with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-mp-spdz/blob/main/ML-TESTS.md">keras-2-circom-MP-SPDZ</a> which extends keras-2-circom-ZK to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/keras2circom">keras-2-circom-MPC</a>.</p></li><li><p>Modular Layer benchmarks for the keras model.</p></li></ul><p>We decided to sunset the project for a few reasons:</p><ul><li><p>The overwhelming amount of effort to fully implement it.</p></li><li><p>The low current traction of users (could be due to Circom). Hence a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/voltrevo/mpc-framework">Typescript-MPC</a> variant may be of more public interest.</p></li><li><p>The existence of competitors such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cyber.ee/uploads/Sharemind_MPC_CS_integration_a01ca476a7.pdf">Sharemind MPC into Carbyne Stack</a>.</p></li></ul><p>Therefore, we will leave it as a paradigm, and we hope that any interested party will pick it up and continue its development.</p><p>In what follows we explain:</p><ul><li><p>MPC as a Paradigm</p></li><li><p>Our Circom-MPC framework</p></li><li><p>Our patched Circomlib-ML and modular benchmark to have a taste of MPC-ML</p></li></ul><h1 id="h-mpc-as-a-paradigm" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">MPC as a Paradigm</h1><p>Secure Multiparty Computation (MPC), as it is defined, allows mutually distrustful parties to jointly compute a functionality while keeping the inputs of the participants private.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bec8986d1a8dc271d67faaf01fe587e0265beb085616c0d41028e22a72cd6615.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>An MPC protocol can be either application-specific or generic:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d14e104e5a7904e870985d79495601896d35798e25f65fcf24c38fe36f7498d6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>While it is clear that Threshold Signature exemplifies application-specific MPC, one can think of generic MPC as an efficient MPC protocol for a Virtual Machine (VM) functionality that takes the joint function as a common program and the private inputs as parameters to the program and the secure execution of the program is within the said VM.</p><p><em>For readers who are familiar with Zero-Knowledge Proof (ZKP), MPC is a generalization of ZKP in which the MPC consists of two parties namely the Prover and the Verifier, where only the Prover has a secret input which is the witness.</em></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/4b9cbfea8aa19e718f079921fb7bcd1718ec4bad113bf02f75bea7014aaba1c4.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>And yes, Fully Homomorphic Encryption (FHE) is among techniques (along side Garbled-Circuit and Secret-Sharing) that can be used for MPC construction in the most straightforward mental model:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e8f3d9e50e5055c17845922c76d4c80924036fbd806c87afd5b4629900e109ff.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-programmable-mpc" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Programmable MPC</h2><p>That said, MPC is not a primitive but a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mpc.cs.berkeley.edu/">collection of techniques</a> aimed to achieve the above purpose. Efficient MPC protocols exist for specific functionalities from simple statistical aggregation such as mean aggregation (for ads), Private Set Intersection (PSI) to complex ones such as RAM (called <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Oblivious_RAM">Oblivious-RAM</a>) and even Machine Learning (ML).</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c13155a17a88982bcec5325d84abd973b93d98bab35ab80774a995e13537bdad.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>As each technique GC/SS/FHE and specialized MPC has its own advantage, it is typical to combine them into one&apos;s privacy preserving protocol for efficiency:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/2ec6cb3c74bb11783139e93af7719a3b81e31efa8f2c460fe91fc00daacf8af9.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In what follows, we present work that enables the use of Circom as a front-end language for developing privacy-preserving systems, starting with the MP-SPDZ backend.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/16483548c7bf5c35912f25ac240c79d0046b7f24abba60dc5570bcdd5960d84d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.google.com/presentation/d/1dPvNyrBWyqyX2oTGcnM52ldpISGrhwEhIZXJPwYWE6I/edit#slide=id.g2818c557dad_0_261"><em>Detailed explanation of Progammable-MPC with Circom-MPC.</em></a></p><h2 id="h-circom-mpc" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Circom-MPC</h2><p>The Circom-MPC project aims to allow a developer to write a Circom program (a Circom circuit) and run it using an MPC backend.</p><h3 id="h-the-workflow" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">The workflow</h3><ul><li><p>A circom program (prog.circom and the included libraries such as circomlib or circomlib-ml) will be interpreted as an arithmetic circuit (a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Directed_acyclic_graph">DAG</a> of wires connected with nodes with an input layer and an output layer) using <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-2-arithc">circom-2-arithc</a>.</p></li><li><p>A transpiler/builder, given the arithmetic circuit and the native capabilities of the MPC backend, translates a gate to a set of native gates so we can run the arithmetic circuit with the MPC backend.</p></li></ul><h3 id="h-circom-mp-spdz" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Circom-MP-SPDZ</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-mp-spdz/">Circom-MP-SDPZ</a> allows parties to perform Multi-Party Computation (MPC) by writing Circom code using the MP-SPDZ framework. Circom code is compiled into an arithmetic circuit and then translated gate by gate to the corresponding MP-SPDZ operators.</p><p>The Circom-MP-SDPZ workflow is described <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@mhchia/r17ibd1X0">here</a>.</p><h1 id="h-circomlib-ml-patches-and-benchmarks" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Circomlib-ML Patches and Benchmarks</h1><p>With MPC we can achieve privacy-preserving machine learning (PPML). This can be done easily by reusing <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/socathie/circomlib-ml">circomlib-ml</a> stack with Circom-MPC. We demonstrated PoC with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-mp-spdz/tree/main/ml_tests">ml_tests</a> - a set of ML circuits (fork of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/socathie/circomlib-ml">circomlib-ml</a>).</p><p>More info on ML Tests <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-mp-spdz/blob/main/ML-TESTS.md">here</a>.</p><h3 id="h-patches" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Patches</h3><p><strong>Basic Circom ops on circuit signals</strong></p><p>Circom-2-arithc enables direct usage of comparisons and division on signals. Hence the original Circom templates for comparisons or the division-to-multiplication trick are no longer needed, e.g.</p><ul><li><p>GreaterThan can be replaced with &quot;&gt;&quot;</p></li><li><p>IsPositive can be replaced with &quot;&gt; 0&quot;</p></li><li><p>x = d * q + r can be written as &quot;q = x / d&quot;</p></li></ul><p><strong>Scaling, Descaling and Quantized Aware Computation</strong></p><p>Circomlib-ML &quot;scaled&quot; a float to int to maintain precision using $$10^{18}$$:</p><ul><li><p>for input $$a$$, weight $$w$$, and bias $$b$$ that are floats</p></li><li><p>$$a$$, $$w$$ are scaled to $$a&apos; = a10^{18}$$ <em>and</em> $$w&apos; = w10^{18}$$</p></li><li><p>$$b$$ is scaled to $$b&apos; = b10^{36}$$<em>,</em> due to in a layer we have computation in the form of $$aw + b \longrightarrow$$ the outputs of this layer is scaled with $$10^{36}$$</p></li><li><p>To proceed to the next layer, we have to &quot;descale&quot; the outputs of the current layer by (int) dividing the outputs with $$10^{18}$$</p><ul><li><p>say, with an output $$x$$, we want to obtain $$x&apos;$$ s.t.</p></li><li><p>$$x = x&apos;*10^{18} + r$$</p></li><li><p>so effectively in this case $$x&apos;$$ is our actual output</p></li><li><p>in ZK $$x&apos;$$ and $$r$$ are provided as witness</p></li><li><p>in MPC $$x&apos;$$ and $$r$$ have to be computed using division (expensive)</p></li></ul></li></ul><p>For efficiency we replace this type of scaling with bit shifting, i.e.</p><ul><li><p>instead of $$*10^{18}$$ ($$*10^{36}$$) we do $$*2^s$$ ($$*2^{2s}$$)where $$s$$ is called the scaling factor</p><ul><li><p>The scaling is done prior to the MPC</p></li><li><p>$$s$$ can be set accordingly to the bitwidth of the MPC protocol</p></li></ul></li><li><p>now, descaling is simply truncation or right-shifting, which is a commonly supported and relatively cheap operation in MPC.</p><ul><li><p>$$x&apos; = x &gt;&gt; s$$</p></li></ul></li></ul><p><strong>The &quot;all inputs&quot; Circom template</strong></p><p>Some of the Circomlib-ML circuits have no &quot;output&quot; signals; we patched them to treat the outputs as &apos;output&apos; signals.</p><p>The following circuits were changed:</p><ul><li><p>ArgMax, AveragePooling2D, BatchNormalization2D, Conv1D, Conv2D, Dense, DepthwiseConv2D, Flatten2D, GlobalAveragePooling2D, GlobalMaxPooling2D, LeakyReLU, MaxPooling2D, PointwiseConv2D, ReLU, Reshape2D, SeparableConv2D, UpSampling2D</p></li></ul><p><strong><em>Some templates (Zanh, ZeLU and Zigmoid) are &quot;unpatchable&quot; due to their complexity for MPC computation.</em></strong></p><h3 id="h-keras2circom-patches" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Keras2Circom Patches</h3><blockquote><p>keras2circom expects a convolutional NN;</p></blockquote><p>We forked keras2circom and create a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/keras2circom">compatible version</a>.</p><h3 id="h-benchmarks" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Benchmarks</h3><p>After patching Circomlib-ML we can run the benchmark separately for each patched layer above.</p><p><strong>Docker Settings and running MP-SPDZ on multiple machines</strong></p><p>For all benchmarks we inject synthetic network latency inside a Docker container.</p><p>We have two settings with set latency &amp; bandwidth:</p><ol><li><p>One region - Europe &amp; Europe</p></li><li><p>Different regions - Europe &amp; US</p></li></ol><p>We used <code>tc</code> to limit latency and set a bandwidth:</p><pre data-type="codeBlock" text="tc qdisc add dev eth0 root handle 1:0 netem delay 2ms
tc qdisc add dev eth0 parent 1:1 handle 10:0 tbf rate 5gbit burst 200kb limit 20000kb
"><code>tc qdisc <span class="hljs-keyword">add</span> dev eth0 root handle <span class="hljs-number">1</span>:<span class="hljs-number">0</span> netem delay <span class="hljs-number">2</span>ms
tc qdisc <span class="hljs-keyword">add</span> dev eth0 parent <span class="hljs-number">1</span>:<span class="hljs-number">1</span> handle <span class="hljs-number">10</span>:<span class="hljs-number">0</span> tbf rate <span class="hljs-number">5</span>gbit burst <span class="hljs-number">200</span>kb limit <span class="hljs-number">20000</span>kb
</code></pre><p>Here we set delay to 2ms &amp; rate to 5gb to imitate a running within the same region (the commands will be applied automatically when you run the script).</p><p>There&apos;s a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-mp-spdz/blob/main/Dockerfile">Dockerfile</a>, as well as different benchmark scripts in the repo, so that it&apos;s easier to test &amp; benchmark.</p><p>If you want to run these tests yourself:</p><p>1. Set up the python environment:</p><pre data-type="codeBlock" text="python3 -m venv .venv
source .venv/bin/activate
"><code>python3 <span class="hljs-operator">-</span>m venv .venv
source .venv/bin<span class="hljs-operator">/</span>activate
</code></pre><p>2. Run a local benchmarking script:</p><pre data-type="codeBlock" text="python3 benchmark_script.py --tests-run=true
"><code>python3 benchmark_script.py <span class="hljs-operator">-</span><span class="hljs-operator">-</span>tests<span class="hljs-operator">-</span>run<span class="hljs-operator">=</span><span class="hljs-literal">true</span>
</code></pre><p>3. Build &amp; Organize &amp; Run Docker container:</p><pre data-type="codeBlock" text="docker build -t circom-mp-spdz .
docker network create test-network
docker run -it --rm --cap-add=NET_ADMIN --name=party1 --network test-network -p 3000:3000 -p 22:22 circom-mp-spdz
"><code>docker build <span class="hljs-operator">-</span>t circom<span class="hljs-operator">-</span>mp<span class="hljs-operator">-</span>spdz .
docker network create test<span class="hljs-operator">-</span>network
docker run <span class="hljs-operator">-</span>it <span class="hljs-operator">-</span><span class="hljs-operator">-</span>rm <span class="hljs-operator">-</span><span class="hljs-operator">-</span>cap<span class="hljs-operator">-</span>add<span class="hljs-operator">=</span>NET_ADMIN <span class="hljs-operator">-</span><span class="hljs-operator">-</span>name<span class="hljs-operator">=</span>party1 <span class="hljs-operator">-</span><span class="hljs-operator">-</span>network test<span class="hljs-operator">-</span>network <span class="hljs-operator">-</span>p <span class="hljs-number">3000</span>:<span class="hljs-number">3000</span> <span class="hljs-operator">-</span>p <span class="hljs-number">22</span>:<span class="hljs-number">22</span> circom<span class="hljs-operator">-</span>mp<span class="hljs-operator">-</span>spdz
</code></pre><p>4. In the Docker container:</p><pre data-type="codeBlock" text="service ssh start
"><code>service ssh <span class="hljs-keyword">start</span>
</code></pre><p>5. Run benchmarking script that imitates few machines:</p><pre data-type="codeBlock" text="python3 remote_benchmark.py --party1 127.0.0.1:3000
"><code>python3 remote_benchmark.py <span class="hljs-operator">-</span><span class="hljs-operator">-</span>party1 <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span>:<span class="hljs-number">3000</span>
</code></pre><p>6. Deactivate venv</p><pre data-type="codeBlock" text="deactivate
"><code></code></pre><p><strong>Benchmarks</strong></p><p>Below we provide benchmark for each different layer separately, a model that combines different layers will yield corresponding combined performance.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7a21e1d1cf072f67cf4e286def8b24eb2952edb2e38ff39a4b4435d9997158a0.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b373322819709c4a04e6511412a4808be4e993e241b0fce65ae96de362cc5130.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Accuracy of the circuits compared to Keras reference implementation:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c4fe13b8a14b9d1c1dc0d312701888da25ac6fe1bc1880c58239032b2b0d53fe.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Our above benchmark only gives a taste of how performance looks for MPC-ML; any interested party can understand approximate performance of a model that combines different layers.</p><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev/"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://commons.wikimedia.org/wiki/File:Classroom,_blackboard,_education,_tableau,_math,_girls,_man,_braid_Fortepan_2493.jpg"><em>Cover image source</em></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b76e9a0f8d6eb8ebe6026bae3d1c6537e93ff88a11cb3ac4c9d8a13dda2536fb.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Intmax: a scalable payment L2 from plasma and validity proofs]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/intmax-a-scalable-payment-l2-from-plasma-and-validity-proofs</link>
            <guid>S2ZBkRoRYJJzv6qyI8rQ</guid>
            <pubDate>Tue, 04 Mar 2025 15:41:45 GMT</pubDate>
            <description><![CDATA[This post was written by PSE researcher Pierre and originally posted on his personal blog. Thanks to the Intmax team for their helpful review on this post!Intmax has been pioneering L2 transaction-only constructions based on client-side validation (CSV), where transaction validation relies on cryptographic proofs rather than blockchain consensus rules. Data is intermittently posted on a dedicated blockchain, primarily for deposits, withdrawals, and account checkpoints. The Intmax2 paper is an...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by PSE researcher Pierre and originally posted on his </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.pierredm.xyz/posts/intmax"><em>personal blog</em></a><em>. Thanks to the Intmax team for their helpful review on this post!</em></p><hr><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.intmax.io/">Intmax</a> has been pioneering L2 transaction-only constructions based on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2025/068.pdf">client-side validation</a> (CSV), where transaction validation relies on cryptographic proofs rather than blockchain consensus rules. Data is intermittently posted on a dedicated blockchain, primarily for deposits, withdrawals, and account checkpoints.</p><p>The Intmax2 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/1082">paper</a> is an instantiation of CSV. It consists of two core primitives: a Plasma-like data availability (DA) mechanism and validity proofs. It demonstrated that such a combination can help L2s achieve quite high TPS numbers. In this piece, we will explore why that is the case and how Intmax operates under the hood.</p><h2 id="h-plasma" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Plasma</h2><p>Originally, plasma was considered a strong L2 architecture candidate, distinct from both optimistic and zk-rollups. Its two key differences lay in the role assigned to the block builder (or &quot;aggregator&quot;) and the amount of data posted on-chain. Until recently, this data primarily consisted of block hashes produced by plasma aggregators, resulting in a minimal on-chain data footprint for plasma rollups.</p><p>To enable that DA model, plasma designers assumed that (1) users would stay online and participate in non-trivial challenge games when aggregators misbehave (e.g., using fraud proofs) and (2) mechanisms would be in place to prevent the aggregator from withholding block data (e.g., requiring signatures on blocks submitted by the aggregator).</p><p>Many plasma designs have been proposed in the past (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.plasma.io/plasma.pdf">original plasma</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/1911.12095">plasma cash</a>, and various <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethresear.ch/tags/plasma">ethresearch posts</a>, among others$$^1$$). However, a key difference today is the cambrian explosion in sn(t)ark development—both in new constructions and improved frameworks—that has taken place in the meantime.</p><p>Given today&apos;s DA scarcity and relatively <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://l2beat.com/scaling/activity">low TPS numbers</a>, there are strong incentives to revisit these designs while leveraging the best of both validity proofs and plasma DA. This research is particularly relevant for ecosystems with expensive blockspace and emerging L2s, such as Bitcoin.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1454ad83672503169d371d94325916fff0d93e628b959b873696ae0f923488a3.png" alt="DA scarcity is starting to hit, we have been regularly reaching the blob target for a few months now. See https://dune.com/hildobby/blobs." blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">DA scarcity is starting to hit, we have been regularly reaching the blob target for a few months now. See https://dune.com/hildobby/blobs.</figcaption></figure><h2 id="h-preventing-data-withholding-with-bls-signatures" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Preventing data withholding with BLS Signatures</h2><p>The first attack plasma chains aim to address is data withholding by the aggregator. Since (roughly) only block roots are posted on-chain, plasma users must ensure that block data (i.e., transaction inclusion proofs) is properly delivered to the transaction senders included in the posted block.</p><p>To address this, Intmax aggregators send <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/8f511d8ee5f2f3286ecb1d6854f31b056872a57a/src/mock/block_builder.rs#L135">block proposals</a> to users, who then <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/8f511d8ee5f2f3286ecb1d6854f31b056872a57a/src/mock/client.rs#L285">BLS-sign</a> them—attesting to data availability—and send them back to the aggregator. When the block is posted on-chain, the block proposer submits an <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/4f43690a9cd005686f1283746204845f13dcea8b/src/mock/block_builder.rs#L345">aggregated BLS signature</a>, composed of all the signatures received from senders. This aggregated signature, along with all sender addresses, is then <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-contract/blob/2e77bbbe77a5b86449b588691183b05d9887603b/contracts/rollup/Rollup.sol#L184">verified</a> within the plasma rollup contract.</p><p>You could still observe that the data withholding problem could be flipped on its head: can&apos;t users delay block production by retaining their signatures when asked by the aggregator? To avoid this, if the aggregator does not receive the signature in some specified timeframe, the transaction will still be included in the block but the aggregator will <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/4f43690a9cd005686f1283746204845f13dcea8b/src/mock/block_builder.rs#L327">include a boolean flag</a> indicating that the signature was not sent back.</p><h2 id="h-preventing-malicious-aggregators-with-validity-proofs" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Preventing malicious aggregators with validity proofs</h2><p>The second attack plasma chains want to solve is the aggregator including malicious transactions - i.e. spending coins which do not exist. To prevent this, Intmax leverages <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dspace.mit.edu/bitstream/handle/1721.1/61151/698133641-MIT.pdf">proof-carrying data</a> (PCD) to compose together proofs which end up attesting to the validity of coins being spent. In Intmax, users prove their balance by aggregating proofs, each attesting to the validity of either its own balance (such as in the case of deposits, withdrawals or coin sends) or of others (such as in the case of coin receipts). The aggregated proof is called the &quot;balance proof&quot;: $$\pi^{balance}$$. It attests to the user&apos;s balance on the plasma chain and results from composing proofs originating from various sources.</p><p>There are 4 important different action types which will contribute to changing the user&apos;s balance proof. Each action type update the user&apos;s $$\pi^{balance}$$ balance proof:</p><ol><li><p>$$send$$: updates the balance if the user knows a valid witness attesting to a send operation.</p></li><li><p>$$receive$$: updates the balance if the user knows a valid witness attesting to the user receiving a coin transfer.</p></li><li><p>$$deposit$$: updates the balance if the user knows a valid witness attesting to the user performing a deposit.</p></li><li><p>$$update$$: a &quot;utility&quot; which updates the balance from one block $$B_{t-i}$$ to another $$B_{t-j}$$ if the user knows a valid witness attesting to the correctness of the balance at block $$B_{t-j}$$.</p></li></ol><p>An instantiation of this logic is Intmax&apos;s <code>BalanceProcessor</code> struct, implementing four methods, all corresponding to each of the different types described above: <code>prove_send</code>, <code>prove_update</code>, <code>prove_receive_transfer</code> and <code>prove_receive_deposit</code>. This struct&apos;s method will be invoked each time an intmax user will perform the corresponding state changing actions on the plasma chain.</p><h2 id="h-how-scalable-is-this-design" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How scalable is this design?</h2><p>Intmax&apos;s has one of the lowest onchain data footprint among all L2s. This directly stems from its plasma design and the clever trick they found for identifying plasma users on the L1. Briefly, senders ids are stored with approx. 4.15 bytes of data on the L1: this means that with 12s block time and 0.375mb of da, Intmax has some of the highest <em>theoretical</em> TPS, hovering around 7k transactions/second - and <em>doable today</em>!</p><h2 id="h-main-algorithms" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Main algorithms</h2><p>Intmax uses <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xPolygonZero/plonky2">plonky2</a> to entangle proofs together to yield one single balance proof. This means that Intmax&apos;s code is a bit involved. We lay out here in a somewhat detailed, yet informal fashion the main algorithms used by intmax&apos;s plasma according to the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/tree/cli">code</a>$$^2$$, instead of the paper. The implementation contains interesting details, which probably in the name of succintness, were not included in the paper.</p><p>One pattern of Intmax&apos;s PCD flow is for users to (1) update their balance proof to show the state of the account right before a plasma action happened, (2) generate a transition proof attesting to the validity of the transition of the account private state when the plasma action is applied and (3) generate a new public balance proof attesting to the balance of the user once the action has been processed. We now review how the balance proof is updated according to each action triggered by an Intmax plasma user.</p><h3 id="h-deposit" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Deposit</h3><p>A deposit consists in a user sending funds to the Intmax rollup contract, an aggregator building a block acknowledging the deposit and the depositor updating his balance proof using deposit witness data.</p><ol><li><p>User deposits <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/8f511d8ee5f2f3286ecb1d6854f31b056872a57a/src/mock/client.rs#L119">onchain</a> (a mocked contract here), updating the onchain <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/contract.rs#L88">deposit tree</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/balance_logic.rs#L34">generates a proof</a> attesting to the existence of the block $$B_t$$ where the deposit occurred onchain and of his account inclusion within the account tree.</p></li><li><p>User <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/balance_logic.rs#L50">updates his balance proof</a> $$\pi^{balance}<em>{t-i} \rightarrow \pi^{balance}</em>{t-1}$$, right before the deposit block $$B_{t}$$. To this end, he uses an update witness $$w^{update}<em>{t-1}$$attesting to block $$B</em>{t-1}$$ correctness and to the existence of the user&apos;s account at that block.</p></li><li><p>User retrieves a deposit witness $$w^{deposit}_{t}$$ <em>attesting to the onchain deposit validity - i.e. the deposit is present at block</em> $$B{t}$$, which has been built correctly.</p></li><li><p>User generates a balance transition proof $$\pi^{transition}<em>{t-1, t}$$ using the deposit witness $$w^{deposit}</em>{t}$$ attesting to the validity of the account&apos;s state transition.</p></li><li><p>Uses the $$\pi^{transition}<em>{t-1, t}$$* proof to generate the </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/balance_logic.rs#L91"><em>final, public, balance proof</em></a><em> *$$\pi^{balance}</em>{t}$$</p></li></ol><h3 id="h-transfer" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Transfer</h3><p>A transfer involves a sender and an aggregator communicating over a block proposal. Once the block proposal has been signed by the sender and posted onchain by the aggregator, the sender is able to update his balance proof and convince the receiver of the transaction&apos;s validity.</p><ol><li><p>Sender makes a transaction request to the aggregator. a. Generates a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L183">transfer tree</a> $$T^{transfer}<em>{t}$$*b. Generates a </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L189"><em>spent witness</em></a><em> *$$w^{spent}</em>{t}$$, used later on to prove a valid send operation. c. Generates a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L197">spent proof</a> $$\pi^{spent}_{t}$$ attesting to the user&apos;s transaction validity. d. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L203">Sends a transaction request</a> (containing the nonce and the transfer tree root) to the aggregator.</p></li><li><p>Aggregator builds block and sends transaction inclusion merkle proof $$\pi^{inclusion}_{t}$$ to senders.</p></li><li><p>Sender finalizes the transaction: a. Checks the transaction merkle inclusion proof $$\pi^{inclusion}<em>{t}$$* b. </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L285"><em>BLS signs</em></a><em> the transaction merkle inclusion proof *$$\pi^{inclusion}</em>{t}$$ c. Sends transaction data ($$\pi^{spent}<em>{t}, \pi^{inclusion}</em>{t}$$) to the transaction receiver</p></li><li><p>Builder posts $$B^{proposal}$$ onchain along with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L286">aggregated signatures</a> from senders</p></li></ol><h3 id="h-receive" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Receive</h3><p>Receiving a transfer means both receiver and sender update their balance proofs. On the sender side:</p><ol><li><p>Updates his balance proof $$\pi^{balance}<em>{t-i} \rightarrow \pi^{balance}</em>{t-1}$$, up to right before the transfer block $$B_t$$.</p></li><li><p>Using the transaction $$Tx_{t}$$ and the spent proof $$\pi^{spent}<em>{t}$$*, </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/circuits/balance/transition/transition_processor.rs#L87"><em>generates a transition proof</em></a><em> *$$\pi^{transition}</em>{t-1, t}$$ attesting to a valid send operation and uses it to update his balance proof $$\pi^{balance}<em>{t-i} \rightarrow \pi^{balance}</em>{t}$$</p></li><li><p>Updates his private state accordingly: updates his asset tree (removing the corresponding sent transfer amounts), increments his nonce.</p></li></ol><p>On the receiver side:</p><ol><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/balance_logic.rs#L127">Updates his balance proof</a> $$\pi^{balance}<em>{t-i} \rightarrow \pi^{balance}</em>{t-1}$$, up to right before the transfer block $$B_t$$.</p></li><li><p>Generates a balance transition proof $$\pi^{transition}<em>{t-1, t}$$*, which </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/circuits/balance/transition/transition_processor.rs#L215"><em>attests to the receipt of a valid transfer</em></a><em> $$\pi^{transfer}</em>{t-1, t}$$. It uses the transfer witness $$w^{transfer}<em>{t}$$*, which contains transaction data ($$\pi^{spent}</em>{t}, \pi^{inclusion}_{t}$$<em>) and the sender&apos;s balance proof</em> $$\pi^{balance}{t}$$.</p></li><li><p>Generates the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/circuits/balance/transition/transition_processor.rs#L235">new balance proof</a> $$\pi^{balance}<em>{t}$$ using the balance transition proof $$\pi^{transition}</em>{t-1, t}$$.</p></li></ol><h3 id="h-withdraw" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Withdraw</h3><p>Withdraws are akin to regular transfers, but occur between an Intmax account and an L1 address. This means that users initiate a transfer by simply sending their funds to the L1 address that they would like to withdraw to. Since it is easy <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/8f511d8ee5f2f3286ecb1d6854f31b056872a57a/src/common/generic_address.rs#L58">to detect an L1 pubkey</a>, intmax clients can easily <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/8f511d8ee5f2f3286ecb1d6854f31b056872a57a/src/mock/client.rs#L278">detect and sync</a> to new withdrawal requests. This also means that all the steps used in the transfer process are effectively the same in the case of a withdraw. The major difference is when retrieving funds from the L1 contract:</p><ol><li><p>The client syncs with withdrawals requests that have been done so far and picks the one relevant to the user from an <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L401">encrypted vault</a> storing withdrawals proofs.</p></li><li><p>If needed, the user updates his balance proof $$\pi^{balance}<em>{t}$$ by applying the withdrawal transfer $$T^{withdraw}</em>{t}$$ which occurred at block $$B_t$$.</p></li><li><p>The user generates a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/InternetMaximalism/intmax2-zkp/blob/233a26eb1d8b2580f66136a95319ad99eb1f62f2/src/mock/client.rs#L630">withdrawal proof</a> $$\pi^{withdraw}_{t}$$ using a withdrawal witness $$w^{withdraw}<em>t$$ attesting to a transfer occuring from an intmax to an L1 address and included within block $$B_t$$. The withdrawal proof $$\pi^{withdraw}</em>{t}$$ is sent to a withdrawal aggregator.</p></li><li><p>A withdrawal aggregator chains together withdrawal proofs $$\pi^{withdraw, 0}<em>{t}, ..., \pi^{withdraw, k}</em>{t}$$ and verifies them on the L1, triggering effective funds withdrawals on the rollup contract.</p></li></ol><h2 id="h-common-questions" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Common questions</h2><ol><li><p>Can&apos;t the transaction sender retain data from the recipient?</p></li></ol><p>There is no sender data withholding problem: the sender of a coin wants the receiver to acknowledge he received and validated the spent - think in terms of buying a coffee, how would he be able to buy it otherwise? So this isn&apos;t a problem in our case, the sender of a coin hasn&apos;t really any incentive to retain his spent proof from the recipient.</p><ol><li><p>Can&apos;t I just double spend my coins to two people at the same time?</p></li></ol><p>No. Validity proofs prevent a sender from doing so since he will need to provide a balance proof to each of the recipients, thereby attesting to the fact that their transaction has been processed correctly and with a sufficient balance.</p><ol><li><p>Does it mean users have to keep their data on their device?</p></li></ol><p>Yes, one drawback of such designs is to assume users will safegard their data on their local devices. To alleviate some of the risks attached to this (keys aren&apos;t the only thing you should keep safely in this model), the initial intmax implementation features a server vault in charge of storing (not yet) encrypted users data.</p><h2 id="h-footnotes" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Footnotes</h2><ol><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethresear.ch/t/plasma-world-map-the-hitchhiker-s-guide-to-the-plasma/4333">Plasma World Map</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethresear.ch/t/minimal-viable-plasma/426">Minimal Viable Plasma</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethresear.ch/t/roll-up-roll-back-snark-side-chain-17000-tps/3675">Roll_up</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethresear.ch/t/plasma-cash-plasma-with-much-less-per-user-data-checking/1298/116?u=pierre">Plasma Cash with much less per user data checking</a></p></li><li><p>We will be working on the <code>cli</code> branch</p></li></ol><hr><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev/"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>!</em></p><hr>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/804769e8db08f074885309cfb06a9a74a14aa783ca717b6c674fa4115088bf49.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Lattice-Based Proof Systems]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/lattice-based-proof-systems</link>
            <guid>g6irMsgk4kJraQ5bbIgK</guid>
            <pubDate>Tue, 18 Feb 2025 05:20:22 GMT</pubDate>
            <description><![CDATA[This post was written by PSE researcher Miha Stopar. Post-quantum cryptography (PQC) is important because it addresses the potential threat posed by quantum computers to classical cryptographic systems. Quantum computers leverage the principles of quantum mechanics to perform calculations exponentially faster than classical computers in certain cases. Two algorithms, in particular, pose significant threats:Shor’s Algorithm: Efficiently solves integer factorization and discrete logarithm probl...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by PSE researcher Miha Stopar.</em></p><p>Post-quantum cryptography (PQC) is important because it addresses the potential threat posed by quantum computers to classical cryptographic systems.</p><p>Quantum computers leverage the principles of quantum mechanics to perform calculations exponentially faster than classical computers in certain cases. Two algorithms, in particular, pose significant threats:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Shor%27s_algorithm">Shor’s Algorithm</a>: Efficiently solves integer factorization and discrete logarithm problems, which are the basis of widely used cryptographic protocols like RSA, DSA, and Diffie-Hellman.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Grover%27s_algorithm">Grover’s Algorithm</a>: Reduces the security of symmetric-key algorithms by effectively halving the key length (e.g., a 128-bit AES key would offer only 64 bits of security against Grover’s algorithm).</p></li></ul><p>If large-scale, fault-tolerant quantum computers become practical, many of today’s encryption, digital signature, and key exchange protocols would be rendered insecure.</p><p>Lattice-based cryptography is a promising area within modern cryptography. It is likely the most versatile and performant subfield of PQC. For example, the folding scheme <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2024/257.pdf">LatticeFold</a> is believed to be as efficient as the fastest traditional elliptic curve-based folding schemes.</p><p>The competing non-lattice PQC zero-knowledge proof systems (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/1608.pdf">Ligero</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2018/828.pdf">Aurora</a>) base their security only on the security of unstructured hash functions, but they suffer from extremely high demands for computational resources.</p><p>In this post, we will discuss some of the challenges involved in constructing zero-knowledge proof systems based on lattices. For a more in-depth explanation, please refer to the video by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=xEDZ4tyesMY&amp;t=148s">Vadim Lyubashevsky</a>.</p><h2 id="h-zero-knowledge-proofs-based-on-discrete-logarithm" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Zero-knowledge proofs based on discrete logarithm</h2><p>A zero-knowledge proof (ZKP) is a cryptographic protocol that allows one party (the prover) to convince another party (the verifier) that a specific statement is true without revealing any additional information beyond the fact that the statement is true.</p><p>Typically, the prover may also wish to demonstrate additional properties of these statements. For instance, suppose the prover wants to prove the knowledge of $$x_1$$ such that:</p><p>$$g^{x_1} = h_1$$</p><p>and the knowledge of $$x_2$$ such that</p><p>$$g^{x_2} = h_2$$</p><p>for some public values $$g, h_1, h_2$$. Furthermore, the prover would like to prove</p><p>$$x_1 = u \cdot x_2$$</p><p>for some $$u$$.</p><p>For the zero-knowledge proof of $$x_1$$ such that $$g^{x_1} = h_1$$, the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Proof_of_knowledge">Schnorr protocol</a> can be employed (technically, it is an honest-verifier zero-knowledge proof, but we will set this detail aside):</p><ul><li><p>The prover chooses $$y_1$$ and sends $$t_1 = g^{y_1}$$ to the verifier.</p></li><li><p>The verifier chooses a challenge $$d$$ and sends it to the prover.</p></li><li><p>The prover sends $$z_1 = y_1 + x_1 d$$ to the verifier.</p></li><li><p>The verifier checks whether $$g^{z_1} = t_1 h_1^d$$.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9883f2b4f15e81099bfa3acf490c8ee2e4c80e6271f423a74ba28b6b04a95c57.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Now, the protocol can be easily extended to prove the knowledge of $$x_2$$ such that $$g^{x_2} = h_2$$. In this case, the prover would also send $$t_2 = g^{y_2}$$ in the first step and $$z_2 = y_2 + x_1 d$$ in the third one. The verifier would then check whether $$g^{z_2} = t_2 h_2^d$$.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/74add53ff7f3cb8804aa85401bc3f020aa611e997c0246c5f24ab915afa91ba0.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Note that checking the additional property $$x_1 = u \cdot x_2$$ is straightforward:</p><p>$$h_1 = h_2^u$$</p><p>Also, for instance, if we had $$g^{x_3} = h_3$$, the linear relation $$x_3 = a \cdot x_1 + b \cdot x_2$$ is easy to check:</p><p>$$g^{z_3} = t_3 \cdot (h_1^a h_2^b)^d$$</p><p>However, the Schnorr protocol is not quantum-safe, as it relies on the discrete logarithm problem, which can be broken by Shor&apos;s algorithm. Can we construct similar zero-knowledge proofs using lattices instead?</p><h2 id="h-zero-knowledge-proofs-based-on-lattices" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Zero-knowledge proofs based on lattices</h2><p>The discrete logarithm problem is to find $$x$$ given $$g^x$$. There is a somewhat analogous problem in the lattice-based cryptography world: the Shortest Integer Solution (SIS) problem.</p><p>The system of linear equations</p><p>$$Ax = h ; mod ; q$$</p><p>where $$A \in \mathbb{Z}^{m \times n}_q$$ and $$h \in \mathbb{Z}^n_q$$ can be solved in polynomial time with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Gaussian_elimination">Gaussian elimination</a>.</p><p>But variations of this problem can be hard. For example, when we require that the norm of$$ x$$ is smaller than some bound $$B$$. Note that the bound needs to be smaller than $$q$$; otherwise, $$(q, 0, ..., 0)$$ is a trivial solution.</p><p>The SIS problem $$SIS(m, n, q, B)$$ is the problem of finding $$x = (x_1, ..., x_n)$$ such that     </p><p>$$Ax = 0 ; mod ; q$$</p><p>and</p><p>$$||x|| \leq B$$</p><p>Can we do Schnorr-like ZKP for such $$x$$?</p><h3 id="h-schnorr-for-lattices" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Schnorr for lattices</h3><p>Let&apos;s have $$x_1$$ such that</p><p>$$Ax_1 = h_1 ; mod ; q$$</p><p>and</p><p>$$||x_1|| \leq B$$</p><p>Would the following protocol work?</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/afce20dcc8a4f2b3078feabdf82ba9d1cdd0edc770cab8c3cec5ab3ae72ea320.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The last step of the protocol would be verifier checking whether $$A z_1 = A y_1 + d A x_1 = t_1 + d h_1$$.</p><p>However, this would not work. The problem is that $$z_1$$ might not be short, and if we don&apos;t require $$z_1$$ to be short, the prover could provide $$z_1$$ such that $$A z_1 = t_1 + dh_1$$ by using Gauss elimination!</p><p>So, $$z_1$$ needs to be small. To achieve this, $$d$$ needs to be small as well (note that $$z_1 = y_1 + x_1 d$$), but on the other hand, we want the challenge space to be large—the larger it is, the better the soundness property. Note that if the prover can guess the challenge $$d$$, the prover sets the first message to $g^y (g^s)^{-d} $ and the last one to $$z_1 = y - s d + s d = y$$.</p><p>This is one of the reasons why the ring $$\mathbb{Z}_q[x]/(x^n + 1)$$ is used—it provides a larger set of elements with small norm this way (polynomials with small coefficients, as opposed to small integers).</p><p>In the last step, the verifier must verify whether $$z_1$$ is small as well.</p><p>However, that’s not the end of the problems with the lattice-based version of Schnorr.</p><p>Now, if this is a proof of knowledge of $$x$$, we can extract the value $$x$$ from the prover. This is typically done by rewinding: we run the prover as a black box twice and obtain two transcripts: $$y$$, $$d_1$$, $$z_1 = y + x d_1$$ and $$y$$, $$d_2$$, $$z_2 = y + x d_2$$. We get:</p><p>$$z_2 - z_1 = x(d_2 - d_1)$$</p><p>In the Schnorr algorithm, one can simply compute</p><p>$$x = \frac{z_2 - z_1}{d_2 - d_1}$$</p><p>to obtain the secret $$x$$ such that $$g^x = h$$. Using lattices, we obtain $$x$$ (we can assume $$d_2 - d_1$$ is invertible) such that $$Ax = h$$. However, again, $$x$$ might not be small!</p><p>Thus, using lattices, one can only extract $$\bar{z}$$ such that</p><p>$$A \bar{z} = \bar{d} h$$</p><p>where $\bar{z} = z_2 - z_1 $ and $$\bar{d} = d_2 - d_1$$.</p><p>Note that the value $$\bar{z}$$ is still small (though not as small as $$x$$), and given $$A$$ and $$h$$, it is still hard to get such $$\bar{z}$$ and $$\bar{d}$$.</p><p>In what follows, you will see how the extractor, which returns &quot;only&quot; $$\bar{z}$$, can still be utilized to construct lattice-based proof systems.</p><h3 id="h-lattice-based-commitment-scheme" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Lattice-based commitment scheme</h3><p>One of the key steps in the development of lattice-based proof systems was the publication of the paper <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2016/997.pdf">More Efficient Commitments from Structured Lattice Assumptions</a>. The commitment scheme described in the paper proceeds as follows.</p><h4 id="h-key-generation" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Key generation</h4><p>The key generation returns $$\bf{A}_1 \in R_q^{n \times k}$$ and $$\bf{A}_2 \in R_q^{l \times k}$$ as</p><p>$$\mathbf{A}_1 = [\mathbf{I}_n | \mathbf{A}_1&apos;]$$</p><p>$$\mathbf{A}_2 = [\mathbf{0}^{l \times n} | \mathbf{I}_l | \mathbf{A}_2&apos;]$$</p><p>where $$\mathbf{A}_1&apos;$$ is random from $$R_q^{n \times (k-n)}$$ and $$\mathbf{A}_2&apos;$$ is random from $$R_q^{n \times (k-n-l)}$$.</p><h4 id="h-commitment" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Commitment</h4><p>To commit to $$\mathbf{x} \in R_q^l$$, we choose a random polynomial vector $$\mathbf{r}$$ with a small norm and output the commitment</p><p>$$Com(\mathbf{x}, \mathbf{r}) := \begin{pmatrix} \mathbf{c}_1 \ \mathbf{c}_2 \end{pmatrix} = \begin{pmatrix} \mathbf{A}_1 \ \mathbf{A}_2 \end{pmatrix} \cdot \mathbf{r} + \begin{pmatrix} \mathbf{0}^n \ \mathbf{x} \end{pmatrix}$$</p><h4 id="h-opening" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Opening</h4><p>A valid opening of a commitment</p><p>$$\begin{pmatrix} \mathbf{c}_1 \ \mathbf{c}_2 \end{pmatrix}$$</p><p>is a 3-tuple consisting of $$\mathbf{x} \in R_q^l$$, $$r = \begin{pmatrix} \mathbf{r}_1 \ ... \ \mathbf{r}_k \end{pmatrix} \in R_q^k$$, and $$f \in \bar{C}.$$</p><p>The verifier checks that:</p><p>$$f \cdot \begin{pmatrix} \mathbf{c}_1 \ \mathbf{c}_2 \end{pmatrix} = \begin{pmatrix} \mathbf{A}_1 \ \mathbf{A}_2 \end{pmatrix} \cdot \mathbf{r} + f \cdot \begin{pmatrix} \mathbf{0}^n \ \mathbf{x} \end{pmatrix}$$</p><h4 id="h-proof-of-opening" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Proof of opening</h4><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/5f0ab108fe705cbc48a3476f5c6ab1e1ca9ff86017c9d2ed7b9f9ee88d15f9ca.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h4 id="h-extractor-for-the-protocol-above" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Extractor for the protocol above</h4><p>Note that the opening for this commitment schemes is not simply $$\mathbf{r}$$ and $$\mathbf{x}$$; it also includes a polynomial $$f \in \bar{C}.$$ This is due to the issue with the extractor described above.</p><p>The extractor needs to return the triple $$\mathbf{x}, \mathbf{r}, f$$ such that:</p><p>$$f \cdot \begin{pmatrix} \mathbf{c}_1 \ \mathbf{c}_2 \end{pmatrix} = \begin{pmatrix} \mathbf{A}_1 \ \mathbf{A}_2 \end{pmatrix} \cdot \mathbf{r} + f \cdot \begin{pmatrix} \mathbf{0}^n \ \mathbf{x} \end{pmatrix}$$</p><p>Such a triple can be obtained through rewinding:</p><p>$$\mathbf{z}_2 - \mathbf{z}_1 = (d_2 - d_1) \mathbf{r}$$</p><p>Then we have:</p><p>$$\mathbf{A}_1 (\mathbf{z}_2 - \mathbf{z}_1) = (d_2 - d_1) \mathbf{A}_1 \mathbf{r} = (d_2 - d_1) \mathbf{c}_1$$</p><p>$$\mathbf{A}_1 \bar{\mathbf{z}} = f \mathbf{c}_1$$</p><p>where $$\bar{\mathbf{z}} = \mathbf{z}_2 - \mathbf{z}_1$$ and $$f = d_2 - d_1$$.</p><p>Thus, instead of having $$\mathbf{A}_1 \mathbf{r} = \mathbf{c}_1$$, we have $$\mathbf{A}_1 \bar{\mathbf{z}} = f \mathbf{c}_1$$.</p><p>We extract the message $$\mathbf{x}_f$$ as:</p><p>$$\mathbf{x}_f = \mathbf{c}_2 −f^{-1} ·\mathbf{A}_2 ·r$$</p><p>The extracted triple is $$\mathbf{x}_f, \mathbf{\bar{z}}, f$$. It can be easily seen ($$\mathbf{\bar{z}} = f \mathbf{r}$$):</p><p>$$f \cdot \begin{pmatrix} \mathbf{c}_1 \ \mathbf{c}_2 \end{pmatrix} = \begin{pmatrix} \mathbf{A}_1 \ \mathbf{A}_2 \end{pmatrix} \cdot \mathbf{\bar{z}} + f \cdot \begin{pmatrix} \mathbf{0}^n \ \mathbf{x}_f \end{pmatrix}$$</p><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>Since the commitment scheme described above, there have been many new improvements in the field of lattice-based zero-knowledge proofs. So expect some new material describing lattice-based and other post-quantum cryptographic schemes soon :). At PSE, we are committed to staying at the forefront of this rapidly evolving field by continuously following and testing the latest advancements in post-quantum cryptography. Our goal is to ensure that we are well-prepared for the challenges and opportunities that come with the transition to quantum-safe systems.</p><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev/"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p><p><em>Cover image source </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://commons.wikimedia.org/wiki/File:Making_a_herringbone_lattice_crust.jpg"><em>1</em></a><em>, </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://commons.wikimedia.org/wiki/File:Constant_gaussian_curvature.svg"><em>2</em></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/dc5fde6d352941e82e4897ef9b4083c227654e8613ef96346cd833bee116f24b.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Retrospective: Summa]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/retrospective-summa</link>
            <guid>qbqZEqWBVaxt0O4IDmmf</guid>
            <pubDate>Mon, 10 Feb 2025 05:02:22 GMT</pubDate>
            <description><![CDATA[This post was authored by the Summa team.History and Goals of the projectThe Summa project began in March of 2023 in response to the collapse of FTX months prior. It aimed to solve an issue that has plagued centralized exchanges since the Mt Gox collapse in 2013; how can users be assured that the funds they entrust to the exchange are going to be available when they choose to withdrawal them? The goal was to create software that helps centralized exchanges (CEX’s) provide auditor-less and pri...]]></description>
            <content:encoded><![CDATA[<p><em>This post was authored by the Summa team.</em></p><h3 id="h-history-and-goals-of-the-project" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">History and Goals of the project</h3><p>The Summa project began in March of 2023 in response to the collapse of FTX months prior. It aimed to solve an issue that has plagued centralized exchanges since the Mt Gox collapse in 2013; how can users be assured that the funds they entrust to the exchange are going to be available when they choose to withdrawal them?</p><p>The goal was to create software that helps centralized exchanges (CEX’s) provide <em>auditor-less</em> and <em>private</em> Proof of Reserves* with instant finality to their users. The project aimed to provide custodial services with tools that allowed more accountable to their users, with minimal additional overhead, while at the same time protecting user privacy. The vision was for frequent audits of a custodian’s reserves possible on the scale of millions of users.</p><p>*<em>Note that in general, while the terms “Proof of Reserves” and “Proof of Solvency” are used interchangeably throughout documentation and references, we use the term “Proof of Reserves” in this post exclusively.</em></p><h3 id="h-notable-contributors" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Notable contributors</h3><ul><li><p>Enrico, Jin, Alex</p></li><li><p>Nam as consultant</p></li></ul><h3 id="h-technical-approach" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Technical Approach</h3><p>While the overall technical goal was to optimise both the <em>time</em> and <em>cost</em> for generating a liabilities commitment, each version of Summa had a slightly different approach:</p><ul><li><p>In Summa <strong>Version 1</strong>, Halo2 circuits were used for the proving system, with the verifier and prover written to an onchain smart contract on the Ethereum network. The proofs were then managed via a merkle tree. You can read more about Summa Version 1 in the documentation <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://summa.gitbook.io/summa/1">here</a>.</p></li><li><p>Summa <strong>Version 2</strong> used the same basic tech stack as version 1, but replaced the merkle tree with the use of univariate sumcheck protocol. This version also made some custom modifications to the Halo2 zero knowledge prover. You can read more about Summa Version 2 in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://summa.gitbook.io/summa">official documentation</a> and technical reports: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/Rh8_F4blTTGmuJSmmUIB3g">Summa V2: Polynomial Interpolation Approach</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@summa/r18MaCK7p">Summa 2.0 aka SNARKless Proof Of Solvency for CEX</a></p></li><li><p>Summa <strong>Version 3</strong> is made up of three different iterations using HyperPlonk, each with distinct tradeoffs. You can learn more about each iteration in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/khqyQzoiQ32UjkJd7fegnw">this report</a>.</p></li></ul><p>You can learn more about the differences between the three versions, including benchmarking, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/wt4NkeUWSWi2ym6DNcsT-Q">here.</a></p><h3 id="h-achievements" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Achievements</h3><p>Ultimately what the team successfully built was the core infrastructure of a cryptographically provable Proof of Reserves (PoR) system that addresses scalability where many other PoR systems fall short. While many additional components of a comprehensive PoR system aren’t addressed by this work (addressed further down), there is a significant foundation to build on from here.</p><p>In short, this system operates as follows:</p><ul><li><p>The Custodian verifies their onchain liabilities (customer deposits) by committing a batch of signatures from their addresses to a smart contract.</p></li><li><p>The Custodian then generates a liabilities commitment, which represents the sum of all user account balances on their platform.</p></li><li><p>To ensure all account balances were accounted for in the liabilities commitment, the custodian generates and supplies zero knowledge inclusion proofs to each of its customers, who can then independently verify that their individual balance was included.</p></li></ul><p>The following are some of the breakthroughs the team made throughout the life of the project:</p><ul><li><p><strong>Summa Version 1</strong> made improvements over previous PoR systems by including the verifier directly in the contract. This increased the transparency of the verifying contract, ensuring that users were using one standard verifier when verifying their inclusion proofs, and also improved UX and security by reducing the need to run additional local software.</p></li><li><p><strong>Summa Version 2</strong></p><ul><li><p>Offered a novel alternative to merkle trees via the use of the univariate sumcheck protocol, which provided a significant improvement of commitment performance. This was achieved through the development of a more optimised and readable solidity KZG verifier to handle using using univariate polynomials in a smart contract.</p></li><li><p>Used a technique called <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@summa/HJ-dtmNdT">Amortized KZG</a>, developed by another team within PSE, to enable batch proofing. This allowed for the verification of customer groups numbering fewer than approximately 10 million, effectively thwarting a profiling attack for groups of this size.</p></li></ul></li><li><p><strong>Summa Version 3</strong> showed a significant improvement over v1 and v2 when it came to generating inclusion proof performance. A benchmark comparison can be seen <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/wt4NkeUWSWi2ym6DNcsT-Q#Performance-Comparison-by-Summa-versions">here</a>.</p></li><li><p>Additionally, the team published this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@summa/HygFa2eek0">vulnerability report on Binance’s Proof of Reserves system</a>.</p></li></ul><h2 id="h-challenges-and-learnings" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Challenges and Learnings</h2><h3 id="h-technical-challenges" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Technical Challenges</h3><p>Implementing robust Proof of Reserve systems presents significant technical challenges that extend far beyond simple data verification. It’s imperative to consider things such as performance tradeoffs, security vulnerabilities, attack vectors and scalability limitations. Intention must be given to carefully balance commitment times, proof generation efficiency, and protection against potential profiling attacks; all while maintaining the core goal of creating a transparent, verifiable system that can demonstrate cryptocurrency custodial holdings without compromising user privacy or introducing systemic risks.</p><p>The following are technical challenges the team faced throughout the development process:</p><ul><li><p>The team was not able to create a system that is cryptographically provable from beginning to end. The address ownership proof is optimistically verifiable, and there is no recourse for customers if their proof does end up being invalid.</p></li><li><p>In general, any improvement of the commitment time introduced performance tradeoffs by increasing the inclusion proof time, and vice versa.</p></li><li><p>Discrete Fourier transform (DFT) presented a scalability bottleneck in v2 when using univariate sumcheck protocol. This inspired the exploration of hyperplonk in v3 to try to mitigate that bottleneck, which ultimately led to a regression.</p></li><li><p>In v3 it was no longer possible to use the KZG verifier in the smart contract due to the lack of a hyperplonk verifier written in solidity, and we reverted to the use of additional software for verification. This unfortunately negated the improvements introduced in Version 1 and 2 of having the verifier placed in the contract.</p></li><li><p>V3 also introduced a balancing attack due to the non-zero constraint feature introduced to remove the running sum. Due to this, two alternative iterations of v3 were briefly explored, each offering their own tradeoffs; you can find a detailed comparison of the different iterations <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/khqyQzoiQ32UjkJd7fegnw">here</a>.</p></li><li><p>Due to the lack of structured reference strings (SRS) in hyperplonk Summa, Version 3 requires its own trusted setup. Switching to plonkish backend could potentially solve the trusted setup issue, but more research would be needed to confirm this.</p></li><li><p>Big datasets using the same proof were limited to generating proofs for only 9-10 currencies without the need for more commitment proofs to be generated. This isn’t an insurmountable issue, but the team chose not to pursue it toward the end of the project’s life.</p></li><li><p>There are general limitations associated with generating all inclusion proofs at once, especially for large batches. By generating proofs on demand instead of all at once, the custodian can easily see which customers are actively verifying proofs or not. This opens up a profiling attack, explained in more detail <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Challenges-8c0e4718b93f4a1ca3537c348e8a621d?pvs=21">here</a>.</p></li><li><p>Additional Summa attack vectors are documented <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@summa/SJYZUtpA2">here</a>.</p></li></ul><h3 id="h-organizational-challenges" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Organizational Challenges</h3><p>The development also faced significant organizational challenges, primarily due to a lack of clear goals and a structured roadmap with defined milestones. The team reflected that approaching the initiative as a research project rather than a product would have allowed for deeper exploration of concepts instead of prioritizing user experience optimizations prematurely. Additionally, the assumption that adoption would naturally follow development (“build it and they will come”) proved false, further emphasizing the need for clearer objectives and strategic planning from the outset to measure success effectively.</p><h3 id="h-adoption" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Adoption</h3><p>Adoption of the software faced significant hurdles due to a lack of thorough research into the problem space and unclear project goals, which hindered the team’s ability to engage effectively with CEXs and gather meaningful feedback. Additionally, it became evident that custodians had little incentive to implement robust Proof of Reserves systems, as there was limited demand or pressure from their customers to prioritize transparency and accountability, despite a vocal call to do so in the wake of the FTX collapse. The team found that even in cases where CEXs had implemented some form of PoR, it often fell short of a true Proof of Reserves system, insufficient for ensuring transparency, privacy and recourse for exchange users.</p><h3 id="h-discontinuing-the-project" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Discontinuing the project</h3><p>Following an <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse-team.notion.site/summa-analysis?pvs=74">analysis</a> of the status and impact of Summa, the team decided to halt development. The decision to discontinue the project stemmed from a growing understanding that the issues it aimed to address — such as reducing the cost of generating liability commitments for large customer sets — were only one small part of a much larger problem space in the Proof of Reserves landscape. Key components necessary for a truly robust PoR system, such as offchain asset verification, dispute resolution mechanisms, and zero-knowledge address ownership verification, were identified as critical but clearly fell outside the project’s scope.</p><p>Additionally, the assumption that improving the speed and cost-efficiency of commitments and proofs would drive industry-wide adoption proved overly simplistic. The team also recognized that other, more impactful PoR challenges existed but were beyond their capacity to address, making it clear that solving these broader issues alongside the specific ones the team addressed would be essential for scalable adoption.</p><h3 id="h-the-future" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">The Future</h3><p>The Summa project, born in response to the FTX collapse, made significant strides in developing a scalable and cryptographically robust Proof of Reserves system for centralized cryptocurrency exchanges. Despite facing various challenges, the team achieved several notable outcomes:</p><ul><li><p>Creating three versions of the Summa system, each <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/wt4NkeUWSWi2ym6DNcsT-Q?view=#Performance-Comparison-by-Summa-versions">iterating on performance</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/wt4NkeUWSWi2ym6DNcsT-Q?stext=11843%3A1719%3A0%3A1738307701%3A1ckFiy&amp;view=">security aspects.</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/wt4NkeUWSWi2ym6DNcsT-Q#Summa-V2">Implementing an innovative alternative to Merkle trees using the sumcheck protocol.</a></p></li><li><p>Developing a Solidity KZG verifier for improved smart contract integration.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/wt4NkeUWSWi2ym6DNcsT-Q#Performance-Comparison-by-Summa-versions">Significantly improving inclusion proof generation performance in the final version.</a></p></li></ul><p>These tools and resources provide a solid foundation for future PoR system development. While the project is no longer under active development, its findings and technical achievements remain valuable. Future researchers and developers can build upon this work by addressing identified gaps, such as off-chain asset verification and dispute resolution mechanisms, to create more comprehensive PoR solutions.</p><p>For those interested in continuing this work:</p><ul><li><p>A comprehensive project analysis is available <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse-team.notion.site/summa-analysis?pvs=74">here</a>.</p></li><li><p>A list of potential improvement components can be found <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Improvement-Components-390eb0fd89944631a162c3223de02a68?pvs=21">here</a></p></li><li><p>An audit by yAcademy has been <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/electisec/summa-audit-report/blob/main/README.md">completed</a> and the issues raised in the audit have been addressed <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/summa-dev/summa-solvency/pull/300">here</a>.</p></li><li><p>The project’s <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/summa-dev">GitHub repository</a> will remain open source.</p></li></ul><p>While no further development is currently planned, the Summa project’s contributions to the field of Proof of Reserves systems provide a valuable starting point for future innovations in cryptocurrency exchange transparency and security.</p><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev/"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://commons.wikimedia.org/wiki/File:Olivetti_Summa_Prima_20_sans_capot.jpg"><em>Cover image source</em></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6cc9a0091e9073d47f46459f578fcfee58c27b90ededb4c4d754cdbfc845928f.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Web2 Nullifiers using vOPRF]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/web2-nullifiers-using-voprf</link>
            <guid>1Jzxa8Bv5qcvAhuRdT02</guid>
            <pubDate>Thu, 30 Jan 2025 14:40:11 GMT</pubDate>
            <description><![CDATA[This post was written by PSE researcher Rasul Ibragimov. Big thanks to Lev Soukhanov for explaining the majority of this to me - without him, this blog post wouldn&apos;t exist.AbstractRecent development of protocols, that allow us to make Web2 data portable & verifiable such as ZK Email or TLSNotary opens new use-cases and opportunities for us. For example, we can make proof of ownership of some x.com username or email address and verify it on-chain with ZK Email. Projects like OpenPassport,...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by PSE researcher </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/curryrasul"><em>Rasul Ibragimov</em></a><em>. Big thanks to </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/levs57"><em>Lev Soukhanov</em></a><em> for explaining the majority of this to me - without him, this blog post wouldn&apos;t exist.</em></p><h2 id="h-abstract" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Abstract</h2><p>Recent development of protocols, that allow us to make Web2 data portable &amp; verifiable such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://prove.email/">ZK Email</a> or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tlsnotary.org/">TLSNotary</a> opens new use-cases and opportunities for us. For example, we can make proof of ownership of some x.com username or email address and verify it on-chain with ZK Email. Projects like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.openpassport.app/">OpenPassport</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anon-aadhaar/anon-aadhaar">Anon Aadhaar</a> (and others) are also the case.</p><p>We can also do more complex things, e.g. forum where holders of @ethereum.org email addresses will be able to post anonymously, using zk proofs of membership.</p><p>Projects like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://semaphore.pse.dev/">Semaphore</a> helps us to build pseudonymous systems¹ with membership proofs for &quot;Web3 identities&quot;.</p><p>In Semaphore users have their $$\text{public_id} = \text{hash(secret, nullifier)}$$, and $$\text{nullifier}$$ actually serves as an id of user - we still don&apos;t know who exactly used the system, but we&apos;ll be able to find out if they used it more than once. But the thing is <strong>we don&apos;t have any nullifiers</strong> in ZK Email/TLS, etc. - that&apos;s why it&apos;s not possible to create such systems for Web2 identities out of the box. The solution for that is vOPRF.</p><p>vOPRFs (verifiable Oblivious PseudoRandom Functions) - are protocols that allow a client to generate deterministic random based on their input, while keeping it private. So, there&apos;re two parties in the protocol - first one as I said is a client, and second one is a OPRF network (usually <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Secure_multi-party_computation">MPC</a> is used for that).</p><p>With OPRF we&apos;ll be able to generate nullifiers for Web2 ID&apos;s&apos;: users will just need to ask the MPC to generate it, e.g., based on their email address (without revealing plain text of course).</p><p>We can do many things based on that:</p><ul><li><p>Anonymous voting with ported Web2 identities;</p></li><li><p>Anonymous airdrops - projects can just list Github accounts, that are eligible for airdrop, and users will be able to claim (only once) with proof of Github using ZK Email;</p></li><li><p>Pseudonymous forums - I mentioned it before, but with OPRF we can have pseudonyms and limit user to only one account + it might be easier to track &amp; ban spammers</p></li><li><p>... many more.</p></li></ul><p>Read the next section for more details.</p><h2 id="h-detailed-explanation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Detailed explanation</h2><h3 id="h-main-protocol" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Main protocol</h3><p>There are three parties involved in protocol:</p><ul><li><p><strong>User</strong>, that is trying to do some action with their Web2 identity (e.g. google account) pseudonymously (e.g. anonymously participate in voting).</p></li><li><p><strong>OPRF</strong> Server/Network (will just call OPRF).</p><ul><li><p>We use MPC, because in the case of having only one node generating nullifiers for users - it&apos;ll be able to bruteforce and find out which Web2 identity corresponds to a given nullifier. Every node has to commit to their identity somehow - e.g., by storing their EC public key on a blockchain. For simplicity I&apos;ll explain the case with one node OPRF first, and in the OPRF-MPC section I&apos;ll explain how we can extend it to multiple nodes.</p></li></ul></li><li><p><strong>Ethereum</strong> (or any other smart-contract platform)</p></li></ul><p><strong>1)</strong> User makes ZK Email/TLS auth proof with salted commitment to UserID (or email, name, etc.) as a public output:</p><p>                                                  $$\text{commitment₁} = \text{hash} \text{(UserID,salt)}$$</p><p>I&apos;ll call it just <strong>Auth proof.</strong></p><p><strong>2)</strong> User sends new commitment to their UserID to OPRF:</p><p>                                                        $$\text{commitment₂} = r * G$$</p><p>where $$G = \text{hashToCurve}(\text{UserID})$$, and $$\r$$ is random scalar. We want to prevent users from sending arbitrary requests (because they would be able to attack the system by sending commitments to different user&apos;s identities), so user must additionally provide a small zk proof, that checks the relation between the commitments, where:</p><p>Public inputs: $$\text{commitment₁}$$, $$\text{commitment₂}$$</p><ul><li><p>Private inputs: $$\text{UserID}, \text{salt}, r$$</p></li></ul><p>and constraints:</p><p>                                                  $$\text{commitment₁} = \text{hash}(\text{UserID},\text{salt})$$</p><p>                                                       $$\text{G} = \text{hashToCurve}(\text{UserID})$$</p><p>                                                        $$\text{commitment₂} = r * G$$</p><p><strong>3)</strong> OPRF replies with:</p><p>                                               $$\text{oprf \textunderscore response} = s * \text{commitment₂}$$</p><p>where $$s$$ is a private key of OPRF node; and also replies with proof of correctness of such multiplication, which is in this case might be a Chaum-Pedersen proof of discrete log equality (check <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://muens.io/chaum-pedersen-protocol">this blog post</a> on that).</p><p><strong>4)</strong> User creates zk proof with the following parameters:</p><ul><li><p>Public outputs: $$\text{commitment₁}, \text{nullifier}$$</p></li><li><p>Private inputs: $$r, \text{UserID}, \text{salt}, \text{chaum \textunderscore pedersen \textunderscore proof}, \text{oprf \textunderscore response}$$</p></li></ul><p>and validates that:</p><p>                                                  $$\text{commitment₁} = \text{hash}(\text{UserID},\text{salt})$$</p><p>                                                   $$G \longleftarrow \text{hashToCurve}(\text{UserID})$$</p><p>                                              $$\text{chaumPedersenVerify} (\text{oprf \textunderscore response})$$</p><p>                                                   $$\text{nullifier} \longleftarrow r^{-1} * \text{oprf \textunderscore response}$$</p><h3 id="h-on-nullifiers" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">On nullifiers</h3><p>That&apos;s it, we have a nullifier - and now users can use the system as in Semaphore. If we go a bit further, it&apos;s worth to mention that users shouldn&apos;t reveal nullifier, because it&apos;s linked with their $$\text{UserID}$$; and if they use the same $$\text{UserID}$$ in different apps - it&apos;ll be possible to track them. We can do it a bit differently - instead of revealing nullifier we can reveal $$hash(\text{nullifier}, \text{AppID})$$ - where $$\text{AppID}$$ is a unique identifier of the app, and that&apos;s gonna be our real nullifier.</p><h2 id="h-oprf-mpc" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">OPRF MPC</h2><p>In the example above we used only one node OPRF, but we can easily extend it to multiple nodes. There&apos;re many ways to do that, I&apos;ll explain few:</p><p><strong>1)</strong> N of N MPC:</p><ul><li><p>1.1. All nodes have their own pair of keys.</p></li><li><p>1.2. Every node does step 3 individually: we get $$\text{oprf \textunderscore response}_i = s_i * r * G$$</p></li><li><p>1.3. On step 4 we verify $$\text{chaum \textunderscore pedersen \textunderscore proof}$$ for every node</p></li><li><p>1.4 We calculate $$\text{nullifier}_i = \text{oprf \textunderscore response}_i * r^{-1}$$</p></li><li><p>1.5 We calculate $$\sum_{i=1}^N\text{nullifier}_i = s * G$$</p></li></ul><p><em>Important to mention that we have to verify/calculate everything in the circuit.</em></p><p><strong>2)</strong> M of N MPC using linear combination for Shamir Secret Sharing:</p><ul><li><p>Similar to N of N MPC, but we need only M shares</p></li></ul><p><strong>3)</strong> Using BLS:</p><ul><li><p>3.1. Calculate common public key of all OPRF nodes by summing individual public keys</p></li><li><p>3.2. The same as in N of N MPC case</p></li><li><p>3.3., 3.4, 3.5. - The same as in N of N MPC case, <strong>BUT</strong> we can do it outside the circuit</p></li><li><p>3.6. Verify BLS pairing in the circuit</p></li></ul><h2 id="h-footnotes" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Footnotes</h2><ol><li><p>Pseudonymous system - a privacy-preserving system, where users&apos; transactions are linked to unique identifiers (pseudonyms), but not their actual identities.</p></li></ol><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://commons.wikimedia.org/wiki/File:Spider_web_Luc_Viatour.jpg"><em>Cover image source</em></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/62b56e0e2109d66034b561f67e82398c465221565c25d4c27871a8573270c8f7.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Certificate Transparency Using NewtonPIR]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/certificate-transparency-using-newtonpir</link>
            <guid>ODE1Ao15RKhMTuGpM27t</guid>
            <pubDate>Tue, 28 Jan 2025 14:37:31 GMT</pubDate>
            <description><![CDATA[This post was written by PSE grantee Vishal Kulkarni.IntroductionKey conceptsCertificate Transparency Certificate Transparency (CT) is a standard for verifying digital certificates such as those used by websites secured by HTTPS. CT employs a transparent log of certificates issued by a trusted Certificate authority (CA), which anyone can check to verify that a certificate is valid (for most people surfing the web, this is done automatically by the browser).If you&apos;ve ever seen this screen...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by PSE grantee Vishal Kulkarni.</em></p><h1 id="h-introduction" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Introduction</h1><h3 id="h-key-concepts" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Key concepts</h3><p><strong>Certificate Transparency</strong></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://certificate.transparency.dev/howctworks/">Certificate Transparency (CT)</a> is a standard for verifying digital certificates such as those used by websites secured by HTTPS. CT employs a transparent log of certificates issued by a trusted Certificate authority (CA), which anyone can check to verify that a certificate is valid (for most people surfing the web, this is done automatically by the browser).</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f9fa6db1292325f688b7929df51bd590689fdf9964c30fd3fe6687ecf8a9247f.png" alt="If you&apos;ve ever seen this screen, you&apos;ve witnessed Certificate Transparency in action!" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">If you&apos;ve ever seen this screen, you&apos;ve witnessed Certificate Transparency in action!</figcaption></figure><p>Certificate transparency is an important tool for protecting users from security risks like website spoofing or malicious interference in web traffic, but it also raises some privacy concerns: parties that keep CT logs can potentially gain information about users based on their queries.</p><p><strong>NewtonPIR</strong></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2304.14397">Private Information Retrieval (PIR)</a> is a protocol that lets a user get information from a database without revealing to the owner what data they retrieved. PIR has many potential uses in privacy-preserving applications, but it requires complex communication and computation which can be prohibitively expensive with large databases. There are many PIR implementations taking different approaches cryptographic techniques. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2024/1909.pdf">NewtonPIR</a> is a proposed scheme for highly efficient PIR using <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/D8UHFW1t48x2liWb5wuP6LDdCRbgUH_8vOFvA0tNDJA">Fully Homomorphic Encryption (FHE)</a>.</p><h3 id="h-private-ct-queries-with-newtonpir" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Private CT queries with NewtonPIR</h3><p>NewtonPIR enhances privacy in CT by enabling users to query public logs for SSL/TLS certificates without revealing which domains they are checking. This application helps domain owners and auditors ensure no unauthorized certificates have been issued for their domains while maintaining privacy. It prevents CT log operators or third parties from inferring sensitive information about user interests or monitoring activities.</p><p>By integrating privacy-preserving queries, this approach supports the core goals of CT ensuring transparency and accountability in certificate issuance without compromising the privacy of the querying parties. It is particularly valuable for large-scale monitoring of CT logs, protecting user confidentiality while upholding security and trust in SSL/TLS ecosystems.</p><p>This application would allow users (domain owners, auditors) to query public CT logs for SSL/TLS certificates without revealing the domain names they are checking.This application was initially discussed in this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/949.pdf">paper</a>. For further details and insights into their proposed solutions, please refer to the paper.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/63e6b843001ce5e5d9a92d91f7af09f068d7213c6c68cf9784bea5e56a075425.png" alt="CT Workflow" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">CT Workflow</figcaption></figure><p>The figure above illustrates the overall workflow of Certificate Transparency, showing how the domain owner requests certificates from the CA, how the CA responds with the SCT, and how logs are monitored.</p><h2 id="h-existing-sct-auditing-approaches" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Existing SCT Auditing Approaches</h2><p>Signed Certificate Timestamp (SCT) is a cryptographic proof that a digital certificate has been submitted to a Certificate Transparency (CT) log. It ensures that the certificate is publicly logged and visible. The client uses the SCT received from the server during the TLS handshake to verify if it has been publicly logged.</p><h3 id="h-1-opt-out-auditing-current-chrome-approach" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">1. Opt-Out Auditing (Current Chrome Approach)</h3><p>Rather than client directly interacting with the CT log server Google’s solution involves an SCT auditor which maintains a global set of all valid SCTs for active certificates. Allows clients to check if an SCT is valid without directly revealing which SCT they are verifying.</p><h4 id="h-how-it-works" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">How it Works</h4><ul><li><p>Client calculates the hash of the SCT</p></li><li><p>Clients reveal the first 20 bits of an SCT’s hash to the auditor.</p></li><li><p>The auditor provides all matching SCTs (around 1000), achieving k-anonymity (with k=1000).</p></li><li><p>Drawback: Partial SCT hash leakage can still compromise privacy.</p></li></ul><h4 id="h-efficiency" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Efficiency</h4><ul><li><p>Google Chrome&apos;s model randomly samples 0.01% of SCTs for auditing, drastically reducing costs but also decreasing the chance of catching invalid SCTs.</p></li><li><p>Despite this low per-client detection rate, the distributed nature of auditing across many clients ensures high detection probabilities for invalid SCTs.</p></li></ul><h3 id="h-2-anonymizing-proxies" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2. Anonymizing Proxies</h3><ul><li><p>Clients use anonymity-preserving networks like Tor to query the auditor which are intermediaries that hide a user&apos;s identity and online activity.</p></li><li><p>While anonymity is preserved, the entire distribution of SCTs can still be observed by the auditor.</p></li><li><p>When using anonymizing proxies, bugs like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/spidernitt/introduction-to-timing-attacks-4e1e8c84b32b">timing attacks</a> can exploit variations in response times to infer sensitive information about user activities, such as the websites they visit or the content they access. This is done by correlating the time it takes for requests to pass through the proxy with specific patterns. Similarly, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.techtarget.com/whatis/definition/de-anonymization-deanonymization">deanonymization</a> can occur through traffic analysis, where the size, frequency, or timing of requests is matched to a user&apos;s behavior, or through leaks of metadata or unique identifiers, which expose the user&apos;s identity despite the use of the proxy.</p></li></ul><h2 id="h-overview-of-pir-ct" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Overview of PIR-CT</h2><p><strong>Goal</strong></p><ul><li><p>Enable private queries to Certificate Transparency logs using NewtonPIR.</p></li><li><p>Prevent CT log operators from learning which certificate (or domain name) a user is querying.</p></li></ul><p><strong>Core Components</strong></p><ul><li><p>NewtonPIR: Efficient single-server PIR to retrieve entries privately from large CT logs.</p></li><li><p>Certificate Transparency Logs: Public, append-only logs that store SSL/TLS certificates.</p></li><li><p>Client Application: Queries the CT logs using PIR while hiding its query intent.</p></li><li><p>Server (CT Log Operator): Hosts the CT logs and responds to PIR-based queries.</p></li></ul><h2 id="h-system-design" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">System Design</h2><h3 id="h-certificate-transparency-logs" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Certificate Transparency Logs</h3><ul><li><p>CT logs are stored as a database of certificates where each entry includes: Domain name (e.g., <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://example.com">example.com</a>) Certificate details (e.g., public key, issuer, serial number, validity)</p></li><li><p>Timestamp: When the certificate was issued.</p></li><li><p>SCT (Signed Certificate Timestamp): Proof of inclusion in the log.</p></li></ul><p>Each certificate is uniquely identified by an index in the database.</p><h3 id="h-database-setup-for-newtonpir" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Database Setup for NewtonPIR</h3><p>NewtonPIR operates on a single-server model, where the server stores the CT log database.</p><p>Database Format: The CT log is represented as an array:</p><ul><li><p>D=[d1,d2,d3,...dn] where di is the i-th certificate.N is the total number of certificates in the CT log.</p></li><li><p>Storage: The CT log operator (server) stores the entire log database in a form accessible for PIR queries. Certificates are indexed sequentially.</p></li><li><p>Index Mapping:A mapping is maintained to relate domain names to their corresponding indices.Example: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://example.com">example.com</a> → index 524.</p></li></ul><h3 id="h-newtonpir-overview" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">NewtonPIR Overview</h3><p>NewtonPIR introduces an efficient single-server PIR scheme that:</p><ul><li><p>Reduces communication overhead independent of the database size N. Utilizes single-ciphertext Fully Homomorphic Encryption (FHE).</p></li><li><p>Leverages Newton interpolation polynomials to optimize query computation.</p></li></ul><h3 id="h-querying-process" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Querying Process</h3><p>The querying process includes the following steps:</p><ul><li><p>Step 1: Preprocessing (Client Setup)</p><ul><li><p>The client initializes the NewtonPIR protocol and generates a query for a specific index i.</p></li><li><p>The query is homomorphically encrypted (FHE-based) so that the server cannot determine which index the client is requesting.</p></li></ul></li><li><p>Step 2: Server Response:-</p><ul><li><p>The server processes the PIR query using the NewtonPIR protocol:</p></li><li><p>The query is evaluated over the CT log database. The server computes a response using Newton interpolation polynomials, which reduces computation complexity.</p></li><li><p>The server sends back the encrypted response to the client.</p></li></ul></li><li><p>Step 3: Client Decryption</p><ul><li><p>The client decrypts the server’s response using their secret key to retrieve the certificate at the requested index.</p></li></ul></li></ul><h3 id="h-steps-for-integrating-newtonpir-into-ct" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Steps for Integrating NewtonPIR into CT</h3><ul><li><p>Log Database Setup:</p><ul><li><p>Store the CT logs in an indexed array format on the server.</p></li><li><p>Use NewtonPIR to enable private access to the log entries.</p></li></ul></li><li><p>Query Interface:</p><ul><li><p>Build a client-side application where users input a domain name.</p></li><li><p>Convert the domain name into a queryable index (e.g., using a hash or pre-built mapping).</p></li></ul></li><li><p>Private Query:</p><ul><li><p>The client formulates a NewtonPIR query for the corresponding index.</p></li><li><p>The query is encrypted and sent to the server.</p></li></ul></li><li><p>Server Computation:</p><ul><li><p>The server applies NewtonPIR to process the encrypted query and sends the result back.</p></li></ul></li><li><p>Client Validation:</p><ul><li><p>The client decrypts the response to retrieve the certificate.</p></li><li><p>Optionally, verify the certificate’s SCT and ensure its correctness.</p></li></ul></li></ul><h2 id="h-technical-architecture-of-pir-ct" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Technical Architecture of PIR-CT</h2><ul><li><p>Client-Side Components:</p><ul><li><p>Query Generator: Generates homomorphic PIR queries using NewtonPIR.</p></li><li><p>Domain-to-Index Mapping: Resolves domain names to indices in the CT log database.</p></li><li><p>Decryption Module: Decrypts responses from the server.</p></li><li><p>Validation Module: Verifies certificates and SCTs.</p></li></ul></li><li><p>Server-Side Components:</p><ul><li><p>NewtonPIR Engine: Processes PIR queries using Newton interpolation and FHE.</p></li><li><p>CT Log Database: Hosts the CT logs in a structured array format.</p></li><li><p>Query Processor: Responds to encrypted client queries.</p></li></ul></li></ul><h3 id="h-advantages-of-newtonpir-for-ct" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Advantages of NewtonPIR for CT</h3><ul><li><p>Efficient Communication:</p><ul><li><p>NewtonPIR&apos;s communication cost does not depend on the database size N, making it ideal for large CT logs. Privacy-Preserving:</p></li><li><p>The server learns nothing about the client&apos;s query (index or domain name).</p></li></ul></li><li><p>Scalability:</p><ul><li><p>CT logs can grow to millions of entries without increasing communication overhead.</p></li></ul></li><li><p>Fast Computation:</p><ul><li><p>NewtonPIR reduces computational overhead using Newton interpolation polynomials, making it practical for real-world use.</p></li><li><p>Since the logs operate as append-only databases, computing the polynomial using Newton interpolation becomes highly efficient.</p></li></ul></li><li><p>Single-Server Deployment:</p><ul><li><p>NewtonPIR works with a single server, simplifying infrastructure requirements.</p></li></ul></li><li><p>Benchmark compared to other PIR Scheme</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/094b6853aa4e32627313d7523292a6f7c19bbf848cc547323e0ed70c38300aba.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-challenges-and-solutions" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Challenges and Solutions</h3><ul><li><p>Domain-to-Index Mapping:</p><ul><li><p>Challenge: Efficiently map domain names to database indices.</p></li><li><p>Solution: Use a hash table or a precomputed index mapping. Log Updates:</p></li><li><p>Challenge: CT logs are constantly updated with new certificates.</p></li><li><p>Solution: Periodically re-index the database to reflect new entries</p></li></ul></li></ul><p>In this example, I used a simple method with a hashmap, but checking the SCT of every visited site is inefficient. Maybe we should use a data structure like Bloom Filters, which allows for occasional false positives.</p><ul><li><p>Initial Setup:</p><ul><li><p>NewtonPIR requires a preprocessing step to set up the FHE keys and mappings.</p></li></ul></li></ul><h3 id="h-use-case-workflow" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Use Case Workflow</h3><ul><li><p>Client Request:</p><ul><li><p>Input: Domain name (e.g., <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://example.com">example.com</a>). Convert domain to an index i.</p></li></ul></li><li><p>NewtonPIR Query:</p><ul><li><p>Generate an encrypted query for i.</p></li><li><p>Send the query to the CT log server.</p></li></ul></li><li><p>Server Response:</p><ul><li><p>The server evaluates the query using NewtonPIR and sends back the encrypted result.</p></li></ul></li><li><p>Client Validation:</p><ul><li><p>Decrypt the response to retrieve the certificate.</p></li><li><p>Validate the certificate and its SCT.</p></li></ul></li></ul><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>So, does this enable fully private web search? Not entirely. While it prevents the client’s browser history from being visible to the CT server, the source server can still identify who is accessing the page, and attackers can use metadata or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.recordedfuture.com/threat-intelligence-101/vulnerability-management-threat-hunting/fingerprinting-in-cybersecurity">fingerprinting</a> to determine the user’s identity.</p><p>This blog provides only a basic overview of how PIR can be applied to CT to address a privacy concern. There may be other PIR schemes that could perform better in this context. I’d love to hear your feedback and suggestions for improvement! Join the conversation <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://forum.pse.dev/post/1/21">here</a>.</p><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p><p><em>Cover image sources: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href=""><em>1</em></a><em>, </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/File:Robot_book_fetcher_at_University_of_Utah.jpg"><em>2</em></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8c2e4e3efb10a957fdd0e548469ada4ae76fce1a5aeea203d8b53a5e9f86469b.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Self-Sovereign Identity & Programmable Cryptography: Challenges Ahead]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/self-sovereign-identity-programmable-cryptography-challenges-ahead</link>
            <guid>iv1j7kKxkzYwUT7pj1OD</guid>
            <pubDate>Thu, 23 Jan 2025 15:34:27 GMT</pubDate>
            <description><![CDATA[This post was written by 0xZoey, with contributions from Chance.IntroductionSelf-Sovereign Identity (SSI) and its implementation through decentralized ledgers represents one of blockchain technology&apos;s most promising applications, particularly within the Ethereum ecosystem. While SSI adoption faces both technical and social challenges, this article focuses specifically on the advancement of privacy-preserving cryptographic primitives essential to its implementation. Similar to decentraliz...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/0xZoey"><em>0xZoey</em></a><em>, with contributions from Chance.</em></p><h1 id="h-introduction" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Introduction</h1><p>Self-Sovereign Identity (SSI) and its implementation through decentralized ledgers represents one of blockchain technology&apos;s most promising applications, particularly within the Ethereum ecosystem. While SSI adoption faces both technical and social challenges, this article focuses specifically on the advancement of privacy-preserving cryptographic primitives essential to its implementation.</p><p>Similar to decentralization, the fulfillment of fundamental “SSI” properties by current stacks currently exists on a wide spectrum. It is not uncommon for identity stacks to be agnostic to the choice of a digital wallet or verifiable data registry (distributed ledger), however, the interactions between information query, storage, and retrieval are often opaque. The flexibility and lack of oversight on how each stack is used in production and real-world applications means that some of these properties are lost in implementation, making understanding the technical nuance of SSI all the more critical.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f187a3520130bd6c8adcd58d4117a617100a0d2c32d4b11f14588542ce1c4d6a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Through extensive ecosystem consultation and research conducted by the zkID team at PSE over the past year, this article aims to contribute to the broader dialogue on SSI development. Enhanced industry collaboration can accelerate progress toward a unified vision of decentralized digital identity.</p><h1 id="h-what-is-self-sovereign-identity-ssi" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What is Self-Sovereign Identity (SSI)?</h1><p>Self-sovereign Identity is more than a technological concept - it&apos;s a philosophical reimagining of personal digital autonomy. Unlike traditional identity systems where third parties control and validate your personal information, the idea empowers individuals through:</p><ul><li><p><strong>Protection</strong>: Utilizing advanced cryptographic techniques to protect personal information from unauthorized access or manipulation</p></li><li><p><strong>Selective Disclosure</strong>: The ability to selectively disclose or choose exactly what data to share in any given interaction</p></li><li><p><strong>Portability</strong>: The ability to move identity credentials across different platforms without losing reputation or data, avoiding vendor lock-in</p></li><li><p><strong>Interoperability</strong>: Create and adhere to a unified identity standard that works seamlessly across various systems and jurisdictions</p></li></ul><p>We highlight only a few <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ieeexplore.ieee.org/document/8776589">fundamental properties of SSI</a> here most relevant to cryptography, but there are many more, each falling into foundational, security, controllability, flexibility, and sustainability categories and further subdivided into defined criteria. In our initial research, we attempted to evaluate stacks based on a standard <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Evaluation-Framework-for-SSI-Solutions-8eceb793a5b442cb8da65acc3c337d5c?pvs=21">framework</a>, using these fundamental properties, in addition to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.digitalpublicgoods.net/submission-guide">Digital Public Good Alliance’s Criteria</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://identity.foundation/">Decentralized Identity Foundation’s</a> standards, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.opensource.observer/">OpenSource Observer</a> Github Metrics, and an internal assessment of the cryptographic primitives used. The framework and the result of our research can be found <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/pse-team/2e1e89e5192e409cacbfe3ea115baff4?v=92680356554a42cb981f41edd4a71820">here</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d5bdd3bda66bc2fdcfdb0d880da9cc1e8ab18ce624a9b73146f1a3b0859d3fb5.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/caa35619a9c75eb21b206f1497474b195e49ad3661e5b00ca3a40f9d12472cef.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The use of digital signatures is prevalent across digital identities, but the use of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://0xparc.org/blog/programmable-cryptography-1">programmable cryptography</a> is severely underutilized. Several standard bodies are exploring Zero-Knowledge Proofs (ZKPs) through various working groups including:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://csrc.nist.gov/projects/pec/zkproof">NIST</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.w3.org/TR/vc-imp-guide/#zero-knowledge-proofs">W3C</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://identity.foundation/">Decentralized Identity Foundation (DIF)</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://datatracker.ietf.org/rg/cfrg/documents/">Crypto Forum Research Group (CFRG) of the IETF</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://zkproof.org/">zkProof.org</a></p></li></ul><p>It is worth mentioning that Verfiable Credential and Verfiable Presentation are <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.w3.org/TR/vc-data-model-2.0/#proofs-signatures">agnostic to proof types</a> and can be secured using both digital signatures and zero-knowledge proofs</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d2d161cdc47a7ad2d1293a28ad13e5a457016851db262dee70f0244afcff7c11.png" alt="Verifiable Credential Proof Example" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Verifiable Credential Proof Example</figcaption></figure><p>Most of the work around ZKPs by standard groups is largely academic, but there are several cryptographic mechanisms <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/pdf/2401.08196">currently used</a> for selective disclosure of verifiable credentials. We mention the three main ones here. They fall into two general categories, hashed values or selective disclosure signatures.</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://identity.foundation/bbs-signature/draft-irtf-cfrg-bbs-signatures.html">BBS+ Signature Scheme</a> (Used by MATTR)</p><ul><li><p>Enables selective disclosure of subsets of signed messages</p></li><li><p>Not currently compatible with mobile</p></li><li><p>Does not provide onchain verifiability</p></li><li><br></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/hyperledger/anoncreds-clsignatures-rs">CL signatures</a> (Used by AnonCreds/Hyperledger)</p><ul><li><p>Predates-circom and the use of circuits</p></li><li><p>Only allows predicated proofs i.e. Proof you are above 18, AND have a driver&apos;s license.</p></li><li><p>Restricted by custom proofs</p></li><li><p>Requires interaction with identity holder</p></li><li><p>Computationally intensive</p></li><li><p>Does not provide onchain verifiability</p></li><li><p>Relies on RSA</p></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.iden3.io/">Merkle Trees</a> (Used by PrivadoID/Iden3)</p><ul><li><p>Allows onchain verifiability</p></li><li><p>Capable of client-side proofs</p></li><li><p>Supports ZK Circuits</p></li><li><p>SNARK-based -currently not post-quantum</p></li></ul></li></ul><p>The availability of these schemes allows selective disclosure of data within verifiable credentials but as demonstrated, each comes with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/pdf/2401.08196">unique drawbacks, and attributes</a>. In addition to the traditional “web2” identity there are also multiple projects working on onchain ZKP-enabled attestations, which can potentially provide unlinkable data structures onchain. The recent advancements in programmable cryptography particularly with ZKPs and MPC, provide potential alternative solutions for more robust SSI infrastructure throughout the entire stack from identifiers, secure communication, credentials, and frameworks. We discuss some of the key challenges to overcome for these technologies to be fully utilized.</p><h1 id="h-overview-key-challenges" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Overview: Key Challenges</h1><p>At Devcon, PSE members convened with identity project leaders and standards organizations to identify critical barriers to SSI adoption. The following section examines each major challenge category, exploring its significance and proposed solutions. We analyze each challenge&apos;s fundamental nature, importance to the ecosystem, and the specific technical developments required to address it.</p><ol><li><p>Client-side proving &amp; Performance.</p></li><li><p>Recursion and composability</p></li><li><p>Proof of Personhood</p></li><li><p>Post Quantum</p></li><li><p>Unlinkability</p></li><li><p>Usability &amp; UX</p></li><li><p>Governments and Regulation</p></li><li><p>Standards and Interoperability</p></li></ol><h2 id="h-client-side-proving-and-performance" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Client Side Proving &amp; Performance</h2><p>Client-side proving enables users to generate cryptographic proofs directly on their devices, such as smartphones. It is crucial for digital identity systems because it ensures that sensitive personal information remains completely local, never leaving the device or being exposed to external servers or third-party provers.</p><p>The table below demonstrates the state of client-side proving with benchmarks provided by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro/blob/main/README.md#performance">mopro</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bf24ee46442f479b575cd38e0c5c7e28b5a785b30550ec4bc023caed645335c0.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>For widespread adoption, the performance of client-side proof generation must become efficient enough to run smoothly on the most common mobile hardware used by the target population, for practicality and accessibility. The development of client-side proving technologies faces these current bottlenecks:</p><ul><li><p>Performance on low-end mobile devices</p></li><li><p>Reducing computational complexity</p></li><li><p>Minimizing memory consumption</p></li><li><p>Lack of published benchmarks and comparisons of proving schemes</p></li></ul><p>Offline, client-side verification will be equally important. The ability for mobile device verification in remote areas with a lack of connectivity is a minimum requirement for state or national-level implementation.</p><h2 id="h-post-quantum" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Post Quantum</h2><p>Current identity systems are vulnerable to a Post Quantum (PQ) future for several reasons. Many elliptical curve-based digital signature schemes currently in use, like ECDSA, are not PQ proof. With NIST moving the PQ timeline up to 2030, there is an urgent need to develop quantum-resistant cryptographic primitives. It is widely speculated that entities and organizations are already collecting encrypted data for PQ decryption in the future. With that in mind identity data onchain is not practical until we solve <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethresear.ch/t/so-you-wanna-post-quantum-ethereum-transaction-signature/21291">PQ Ethereum</a>.  With quantum computing on the horizon, more research must be done on PQ primitives, signature aggregation techniques, and benchmarking.</p><h2 id="h-unlinkability" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Unlinkability</h2><p>The potential for privacy leaks exist during information query, and retrieval, and by observing public data structures (i.e. DIDs or schemas) on verifiable data registries. Unless all information is stored locally, during an information query you reveal to the server what information was fetched. Malicious parties can also analyze data access patterns to derive information about a user and their data.</p><p>To fully represent human identity in all its dimensions, there is a fundamental need for the ability to aggregate identity data across different platforms and accumulate it into a body of reputation. Data provenance must be maintained through aggregation and transfer between accounts, whilst preserving unlinkability properties to protect privacy. An example of this is porting all your data between Twitter to Farcaster without losing social reputation.</p><p>Solutions for data provenance of web data with protocols such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tlsnotary.org/">TLSNotary</a> are close to production, the next steps are to make these protocols compatible with Verifiable Credentials and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brave.com/blog/distefano/">integrated with web browsers</a>.</p><p>Some other possible explorations include:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=iGfgngtVLr4">Oblivious RAM</a> (ORAM)</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blintzbase.com/posts/pir-and-fhe-from-scratch/">Private Information Retrieval</a> (PIR)</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://curryrasul.com/blog/web2-nullifiers/">Web2 Nullifiers using Verifiable Oblivious Pseudorandom Functions</a> (vOPRF)</p></li><li><p>Private onchain <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://drive.google.com/drive/home">trust registries</a></p></li><li><p>Research on different types of data structures</p></li><li><p>Atomic checks of DID-linked resources</p></li></ul><h2 id="h-liveness-and-proof-of-personhood" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Liveness and Proof of Personhood</h2><p>In an era of increasing digital impersonation, deepfakes, and sophisticated bot networks, proving that an online identity represents a real, unique human becomes critical. Proof of Personhood (PoP) tackles the challenge of gatekeeping anonymous actions such as voting via <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://maci.pse.dev/">MACI.</a> Biometric authentication whether it be facial recognition, fingerprints, or iris scanning is increasingly becoming more popular. The shift in trust assumptions to hardware components poses a centralization risk.</p><p>A <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ia601600.us.archive.org/35/items/elopio-papers/2024-compressed_to_0-annotated.pdf">study</a> between 2019-2022 showed current methods are susceptible to programmatic gaming. It was found that “bots” can be substituted with human puppeteers. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ia601600.us.archive.org/35/items/elopio-papers/2024-compressed_to_0-annotated.pdf">The</a> research <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ia601600.us.archive.org/35/items/elopio-papers/2024-compressed_to_0-annotated.pdf">has shown that individuals can be incentivized to surrender their identity for as little as two dollars, highlighting the urgent need for more robust incentive mechanis</a>ms on a social level. The prevention of manipulation of web of trust systems is required not just for Sybil resistance but also for collusion resistance, particularly when it exists off-chain. Some projects have adopted a tiered approach where points are assigned to different levels of authentication.</p><p>The use of state-issued RFID-equipped documentation as Proof of Personhood by teams like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anon-aadhaar/anon-aadhaar">Anon Aadhaar</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.openpassport.app/">Openpassport</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkpassport.id/">zkPassport</a> are working on client-side verification and supporting signature algorithms used by different states.  Although this is one viable method for PoP, it fails to serve individuals not recognized by any government or state. Another downside of web-of-trust systems is reliance on unique identifiers (nullifiers) to prevent double-spending, there is a non-zero chance that this can be <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=-mwUQp2qwjk">gamed or manipulated</a>.</p><h2 id="h-recursion-and-composability" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Recursion and Composability</h2><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=VmYpbFxBdtM">Recursion</a> is the ability to prove a proof inside a proof. For example: If Bob can prove he knows Vitalik, Alice can prove she knows Bob, and if Joe knows Alice, Joe can prove he is 2 degrees of separation from Vitalik without revealing the intermediary, Bob. Existing frameworks like Circom and Groth16 currently suffer from recursion challenges.</p><p>Efficient recursion will unlock the ability to not only derive data from proofs but the ability to perform computation over the derived knowledge without exposing it to the proof-generating party.  Creating a composable system that is capable of ingesting different data formats whilst allowing recursion will be a massive unlock for how verifiers and holders interact with credentials.</p><p>General purpose circuits that can be re-used to prove different types of data means that developers will not have to write custom circuits for each specific piece of identity data.</p><h3 id="h-progcrypto-dx" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Progcrypto DX</strong></h3><p>Developer experience is at the intersection of many key challenges. There are two groups of people, researchers writing proving systems, and engineers building with proving systems.</p><p>Researchers tend to implement program constraints directly in Rust. This allows them to write highly optimized code close to their prover implementations. Examples of this include Halo2 and Stwo. Unfortunately such systems are inaccessible to people unfamiliar with the codebase, and encourage poor design principles.</p><p>Engineers tend to use abstractions in the form of domain specific languages. By far the most popular language is circom: a 5 year old language with a limited standard library. Other attempts have been made to design languages, but they optimize toward features/abstraction and away from simplicity/runtime agnosticism. This makes them harder to reason about in the context of proofs, harder to adapt to new proving systems, and harder to write alternative compiler implementations.</p><p>There is significant room for innovation in the expression of cryptographic programs.</p><h2 id="h-standards-and-interoperability" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Standards and Interoperability</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/dbf88c389e011613130aaeedb057db863c5023ad10cb5fddf400b092585189b8.png" alt="https://xkcd.com/927/" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">https://xkcd.com/927/</figcaption></figure><p>The current digital identity landscape is largely fragmented: there are over 100 DID methods. Interoperability is not just a technical challenge but a fundamental requirement for creating a truly global, inclusive digital identity ecosystem. Some of these issues include:</p><ul><li><p><strong>Standardization Gaps</strong></p><ul><li><p>Lack of technical specifications particularly for ZKP-related schemes</p></li><li><p>Inconsistent standards between W3C and OpenID</p></li><li><p>Fragmented Decentralized Identifier (DID) approaches</p></li><li><p>Lack of Cross-Platform Verification solutions</p></li></ul></li><li><p><strong>Credential Formats</strong></p><ul><li><p>Existence of many incompatible data formats</p></li><li><p>Absence of a universal trust registry</p></li><li><p>Lack of a “unified” identity layer capable of ingesting credential formats for proof generation</p></li></ul></li></ul><p>Although it may be too early to define standards around programmable cryptography, writing initial technical specifications describing protocols, security assumptions, requirements, and verification procedures can serve as a reference and communication tool for all stakeholders. For those interested in contributing, specifications can be added in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkspecs/zkspecs?tab=readme-ov-file">this repo</a>; see an example specification <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkspecs/zkspecs/blob/specs/anon-aadhaar/specs/anon-aadhaar/specs.md">here</a>.</p><h2 id="h-usability-and-ux" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Usability and UX</h2><p>User experience in SSI is about more than smooth interfaces – it&apos;s about creating systems that feel intuitive and respectful of individual agency by effectively managing consent. Vitalik elaborates on desired wallet functions such as Private Key Management for revocation, recovery and guardianship in this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://vitalik.eth.limo/general/2024/12/03/wallets.html">post.</a> The issues of recovery and guardianship are non-trivial when it comes to key rotation. There are solutions currently in development with the use of account abstraction and protocols such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://prove.email/">ZK Email</a> are promising.</p><h2 id="h-governments-and-regulation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Governments and Regulation</h2><p>Traditional trust systems often rely on centralized government issuers and institutions. The challenge is creating identity systems that are not just technologically robust, but also legally compliant. In complying with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gdpr-info.eu/art-17-gdpr/">GPDR policies</a>, in particular the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gdpr-info.eu/art-17-gdpr/">right to erasure</a> we are seeing projects tackle this through less secure, more centralized methods like the use of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethereum.org/en/developers/docs/scaling/validium/">validiums</a> over other cryptographic primitives available. In particular with the EUID ARF framework, the ambiguity left in the choice of wallet and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://identity.foundation/faq/#what-is-a-verifiable-data-registry">Verifiable Data Registry</a> means individual states are at risk of selecting less decentralized options.</p><p>When it comes to state-wide adoption, the ease of integration with government services and third-party vendors like banks and healthcare providers becomes an important consideration. Recent <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.biometricupdate.com/202402/digital-id-can-boost-gdp-of-implementing-countries-up-to-13-uneca#:~:text=%E2%80%9CAnalysis%20of%20digital%20ID%20Systems,under%20the%20theme%20%E2%80%9CBuilding%20Inclusive">studies</a> indicated that <em>“individual countries could unlock economic value equivalent to between 3 and 13 percent of GDP in 2030 from implementing digital ID programs”.</em> Aligning economic incentives and establishing appropriate legal frameworks to enable regulated entities will accelerate adoption.</p><p>The top-down approach of state-driven SSI adoption may seem like a quick path to adoption, but does pose a centralization risk with credential issuance. Some possible paths of exploration include the use of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/v_KNOV_NwQwKV0tb81uBS4m-rbs-qJGvCx7WvwP4sDg">MPC</a> for decentralized DID controllers and decentralized issuers.</p><h1 id="h-possible-futures" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Possible Futures</h1><p>The evolution of self-sovereign identity (SSI) could follow several distinct paths, each shaped by different technological and social forces.</p><h3 id="h-government-led-ssi" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Government-Led SSI</h3><p>Governments, particularly smaller nations, become primary advocates for SSI systems in this scenario. This shift would be driven by:</p><ul><li><p>Recognition of digital identity as critical national infrastructure</p></li><li><p>A desire to protect citizens from external existential threats</p></li><li><p>A willingness for sovereign control over identity systems driven by democratic or civic movements</p></li><li><p>Cross-border identity verification requirements set by international standard bodies like ICAO or EU leading member states change.</p></li></ul><p>On a smaller scale, using SSI for micro-economies can serve as a good testing ground for this potential future, like a university campus or local community.</p><h3 id="h-absence-of-government-led-ssi" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Absence of Government-Led SSI</h3><p>Governments and established issuers have little incentive to push for SSI infrastructure because they are already the source of trusted issuance. In this scenario, a path towards <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@wFJY6cGcRfmvPHiQ5VYP6w/BJjh3X2JJl">self-attestation</a> seems most probable, where users create their own proofs and self-issue credentials before presenting them to the verifier. The assumption here is that these self-attestations become an acceptable format for verification by third parties without communication with issuers.</p><h3 id="h-technology-monopolies-dominate" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Technology Monopolies Dominate</h3><p>Without proper technological safeguards, major technology companies could consolidate their control over digital identity through:</p><ul><li><p>Extensive data collection and correlation</p></li><li><p>Widespread third-party integration networks</p></li><li><p>Single sign-on authentication mechanisms.</p></li></ul><p>This is a very present future as it is already evident that technology companies are creating inescapable dependencies.</p><h3 id="h-social-graph-based-identity" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Social Graph-Based Identity</h3><p>A more distributed approach could emerge through social graph-based identity systems, characterized by:</p><ul><li><p>Localized trust networks</p></li><li><p>Reputation scoring</p></li><li><p>Community-based attestation mechanisms</p></li></ul><p>While this approach offers enhanced privacy, its effectiveness may be limited to smaller communities, and corrupt actors could compromise trust networks. This is one less probable future as social graphs are localized and fragmented. Protocols like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.openrank.com/">Openrank</a> could serve as a peer-to-peer reputation system using <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://nlp.stanford.edu/pubs/eigentrust.pdf">EigenTrust</a> if capable of being private; the difficulty in implementation will then lie with the nuance in the context of trust between parties.  One high potential use case for social graphs is bootstrapping decentralized issuance, where credentials are issued based on verified reputation using MPC.</p><h3 id="h-global-registry" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Global Registry</h3><p>There is a need for a global identity registry to provide the largest anonymity set possible. Currently, there is a lack of a credibly neutral onchain registry capable of ensuring authentication across multiple chains. ENS’s future Namechain is a possible solution for a public version of this, with blockspace reserved for identity-specific use cases, and the ability to attach and detach from parent domains and subdomains. This loosely replicates the revocation and persistence characteristics needed for onchain identity attestation. PSE is currently <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://curryrasul.com/blog/web2-nullifiers/">exploring</a> possible solutions using vORPF to generate nullifiers for Web2 identities to serve as a global registry. Rarimo is also currently working on a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.rarimo.com/zk-registry/">zk registry.</a></p><p>As of now, only DID and schemas are posted onchain. Identity data onchain is not a practical path forward until we shift to the use of post-quantum primitives.  Identity data is not currently safe onchain as entities may already collect encrypted data for decryption in a PQ future.  Supposing we solve PQ and unlinkable data structures, there lies a possible future for identity data to exist on a data availability layer, enabling the properties of persistence and access.</p><h1 id="h-conclusion" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h1><p>Human identity is multifaceted and composed of many dimensions in real life. Replicating similar data structures in digital form is equally, if not more complex. The way we preserve privacy for human identity can essentially be deconstructed to how we interact with data itself, a matter prevalent beyond digital identity.</p><p>Some tangible actions the applied cryptography community can do are:</p><ol><li><p>Write technical specifications</p></li><li><p>Publish Performance benchmarks</p></li><li><p>Research private data structures for trust registries</p></li><li><p>Optimize existing tools for client-side proving and improve performance and memory usage</p></li><li><p>Educate Governments and institutions on the availability of cryptography primitives to support their goals</p></li><li><p>Establish cross-industry working groups for standardization and greater collaboration</p></li></ol><p>We hope participants found the workshop and roundtable as insightful and engaging as we did! If you’re interested in joining future events or exploring opportunities to collaborate, we’d love to hear from you—feel free to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/channels/943612659163602974/955585525081837628">reach out!</a></p><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://commons.wikimedia.org/wiki/File:Kakerdaja_raba_talvine_maastik.jpg"><em>Cover image source</em></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/da0c34bf8f81a11a4584494cab212c4f096096b03cacfbccfa543ca9a0001217.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Mopro: Comparison of Circom Provers]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/mopro-comparison-of-circom-provers</link>
            <guid>MNzqd3vM0UTllxde3fSi</guid>
            <pubDate>Tue, 21 Jan 2025 18:21:50 GMT</pubDate>
            <description><![CDATA[This post was written by Vivian Jeng, a developer on the Mopro team. Mopro is a toolkit designed to make mobile proving simple and efficient. With the growing dominance of mobile app users over web app users, and the observation that snarkjs is less performant compared to native provers like rapidsnark, we recognized the need to optimize proving speed for mobile devices. To address this, one of Mopro&apos;s primary goals is to evaluate various provers across different platforms to identify th...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/GLbuCflH0hu_DncKxiC2No5w3LZJAGw4QaCB-HYD5e0"><em>Vivian Jeng</em></a><em>, a developer on the Mopro team.</em></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro">Mopro</a> is a toolkit designed to make mobile proving simple and efficient. With the growing dominance of mobile app users over web app users, and the observation that <code>snarkjs</code> is less performant compared to native provers like <code>rapidsnark</code>, we recognized the need to optimize proving speed for mobile devices. To address this, one of Mopro&apos;s primary goals is to evaluate various provers across different platforms to identify the most effective solution, ensuring we focus on the best-performing prover for mobile environments.</p><h2 id="h-introduction" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Introduction</h2><p>Throughout 2024, we compared various Groth16 provers for Circom. Our goal was to demonstrate that native provers (written in C++ or Rust) outperform <code>snarkjs</code> in terms of speed. Along the way, we uncovered some fascinating insights, which we’re excited to share with you in this post.</p><p>To understand a Groth16 prover, let’s break it down into two main components: <strong>witness generation</strong> and <strong>proof generation</strong>.</p><p><strong>Witness Generation:</strong> This step involves processing inputs along with witness calculation functions to produce the necessary witness values for a circuit. It&apos;s a purely computational step and does not involve any zero-knowledge properties.</p><p><strong>Proof Generation:</strong> Once the witness is generated, this step takes the witness and the zkey (generated by <code>snarkjs</code>) to compute the polynomial commitments and produce a succinct zero-knowledge proof.</p><p>Ideally, developers should have the flexibility to switch between different witness generation and proof generation implementations. This would allow them to leverage the fastest options available, optimizing performance and enhancing their development experience.</p><p>However, each of these tools presents unique challenges. In the following sections, we will delve into these challenges in detail and provide a comparison table for clarity.</p><h2 id="h-witness-generation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Witness Generation</h2><h3 id="h-snarkjs" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>snarkjs</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/iden3/snarkjs">https://github.com/iden3/snarkjs</a></p></li></ul><p><code>snarkjs</code> is one of the most widely used tools for generating Groth16 proofs and witnesses. Written in JavaScript, it runs seamlessly across various environments, including browsers on both desktops and mobile devices. However, it faces performance challenges with large circuits. For instance, an RSA circuit can take around 15 seconds to process, while a more complex circuit like zk-email may require up to a minute to generate a proof. This highlights the need for optimized solutions, such as leveraging mobile-native capabilities and even mobile GPUs, to significantly enhance performance.</p><h3 id="h-witnesscalc" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>witnesscalc</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xPolygonID/witnesscalc">https://github.com/0xPolygonID/witnesscalc</a></p></li></ul><p><code>witnesscalc</code> is a lightweight, C++-based tool designed for efficient witness generation for circuits compiled with Circom. It offers a faster alternative to JavaScript-based tools like <code>snarkjs</code>. With cross-platform support and compatibility with other ZKP tools, Witnesscalc is ideal for handling performance-sensitive applications and large circuits.</p><p>While Witnesscalc performs exceptionally well with circuits such as RSA, Anon Aadhaar, Open Passport, and zkEmail, integrating it into Mopro presents challenges due to its C++ implementation, whereas Mopro is built on Rust. We are actively working to bridge this gap to leverage its performance benefits within the mobile proving ecosystem.</p><h3 id="h-wasmer" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>wasmer</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/arkworks-rs/circom-compat">https://github.com/arkworks-rs/circom-compat</a></p></li></ul><p>One option available in Rust is <code>circom-compat</code>, maintained by the Arkworks team. This library uses the <code>.wasm</code> file generated by Circom and relies on the Rust crate <code>wasmer</code> to execute the witness generation. However, wasmer doesn’t run natively on devices—it creates a WebAssembly execution environment for the <code>.wasm</code> file. As a result, the performance of wasmer is comparable to the WebAssembly performance of <code>snarkjs</code> running in a browser.</p><p>Initially, we encountered memory issues with wasmer during implementation (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro/issues/1">issue #1</a>). Later, we discovered that the Apple App Store does not support any wasmer functions or frameworks, making it impossible to publish apps using this solution on the App Store or TestFlight (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro/issues/107">issue #107</a>). As a result, we decided to abandon this approach for Mopro.</p><h3 id="h-circom-witness-rs" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>circom-witness-rs</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/philsippl/circom-witness-rs">https://github.com/philsippl/circom-witness-rs</a></p></li></ul><p>Another Rust-based option is <code>circom-witness-rs</code>, developed by the Worldcoin team. Unlike solutions that rely on WebAssembly (wasm) output from the Circom compiler, this tool directly utilizes <code>.cpp</code> and <code>.dat</code> files generated by Circom. It employs the <code>cxx</code> crate to execute functions within the <code>.cpp</code> files, enhanced with optimizations such as dead code elimination. This approach has demonstrated excellent performance, particularly with Semaphore circuits. However, we discovered that it encounters compatibility issues with certain circuits, such as RSA, limiting its applicability for broader use cases.</p><h3 id="h-circom-witnesscalc" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>circom-witnesscalc</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/iden3/circom-witnesscalc">https://github.com/iden3/circom-witnesscalc</a></p></li></ul><p>The team at iden3 took over this project and began maintaining it under the name <code>circom-witnesscalc</code>. While it heavily draws inspiration from <code>circom-witness-rs</code>, it inherits the same limitation—it does not support RSA circuits. For more details, refer to the &quot;Unimplemented Features&quot; section in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/iden3/circom-witnesscalc?tab=readme-ov-file#unimplemented-features">README</a>.</p><h3 id="h-rust-witness" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>rust-witness</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/chancehudson/rust-witness">https://github.com/chancehudson/rust-witness</a></p></li></ul><p>Currently, Mopro utilizes a tool called <code>rust-witness</code>, developed by a member of the Mopro team. This tool leverages <code>w2c2</code> to translate WebAssembly (<code>.wasm</code>) files into portable C code. By transpiling <code>.wasm</code> files from Circom into C binaries, rust-witness has demonstrated compatibility across all circuits and platforms tested so far, including desktop, iOS, and Android. Additionally, its performance has shown to be slightly better than that of wasmer.</p><h2 id="h-proof-generation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Proof Generation</h2><h3 id="h-snarkjs" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>snarkjs</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/iden3/snarkjs">https://github.com/iden3/snarkjs</a></p></li></ul><p>As mentioned earlier, <code>snarkjs</code> is the most commonly used tool for generating Groth16 proofs. However, its performance still has room for improvement.</p><h3 id="h-rapidsnark" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>rapidsnark</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/iden3/rapidsnark">https://github.com/iden3/rapidsnark</a></p></li></ul><p>Rapidsnark, developed by the iden3 team, is an alternative to <code>snarkjs</code> designed to deliver faster Groth16 proof generation. Similar to <code>witnesscalc</code>, it is written in C++. While it shows promising performance, we are still working on integrating it into Mopro.</p><h3 id="h-ark-works" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><code>ark-works</code></h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/arkworks-rs/circom-compat">https://github.com/arkworks-rs/circom-compat</a></p></li></ul><p>The primary Rust-based option is <code>circom-compat</code>, maintained by the Arkworks team. Arkworks is a Rust ecosystem designed for programmable cryptography, deliberately avoiding dependencies on native libraries like <code>gmp</code>. In our experiments, Arkworks has proven to work seamlessly with all circuits and platforms. If you have Rust installed, you can easily execute Groth16 proving using Arkworks without any issues. As a result, Mopro has adopted this approach to generate proofs for cross-platform applications.</p><h2 id="h-comparison-table" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Comparison Table</h2><p>Here, we present a table comparing different witness generators and proof generators to provide a clearer understanding of their features and performance.</p><p>In this comparison, we use <code>circom-witnesscalc</code> as a representative for both <code>circom-witness-rs</code> and <code>circom-witnesscalc</code>, as they share fundamentally similar implementations and characteristics.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/20b85f3b4f3d7370ae2da9d6b0433f11f88f2d332ee1d18e9a5fd4eea358655a.png" alt="Comparison of witness generators" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Comparison of witness generators</figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/aa01a99226e384b073a7d21f25de9bc971e26e2702510ff6a0e07197c1614de3.png" alt="Comparison of proof generators" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Comparison of proof generators</figcaption></figure><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>In conclusion, we found that the <code>witnesscalc</code> and <code>rapidsnark</code> stack offers the best performance, but integrating it into Rust presents significant challenges. These tools rely heavily on C++ and native dependencies like <code>gmp</code>, <code>cmake</code>, and <code>nasm</code>. Our goal is to integrate these tools into Rust to make them more accessible for application development. Similar to how <code>snarkjs</code> seamlessly integrates into JavaScript projects like Semaphore and ZuPass, having a Rust-compatible stack would simplify building cross-platform applications. Providing only an executable limits flexibility and usability for developers. In 2025, we are prioritizing efforts to enable seamless integration of these tools into Rust or to provide templates for customized circuits.</p><p>We recognize the difficulty in choosing the right tools and are committed to supporting developers in this journey. If you need assistance, feel free to reach out to the Mopro team on Telegram: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/zkmopro">@zkmopro</a>.</p><h2 id="h-footnotes" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Footnotes</h2><ol><li><p>We are actively working on integrating <code>witnesscalc</code> into Mopro. Please refer to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro/issues/284">issue #284</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://doc-compare-circom.mopro.pages.dev/blog/circom-comparison/#user-content-fnref-1-ca0b0e">↩</a></p></li><li><p>Please refer to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro/pull/255">PR #255</a> to see how to use <code>circom-witnesscalc</code> with Mopro. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://doc-compare-circom.mopro.pages.dev/blog/circom-comparison/#user-content-fnref-2-ca0b0e">↩</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/waku-org">waku-org</a> has investigated this approach; however, it does not outperform snarkjs in terms of performance. Please refer to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro/issues/202#issuecomment-2236923108">this comment</a> for more details. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://doc-compare-circom.mopro.pages.dev/blog/circom-comparison/#user-content-fnref-3-ca0b0e">↩</a></p></li><li><p>We are actively working on integrating <code>rapidsnark</code> into Mopro. Please refer to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkmopro/mopro/issues/285">issue #285</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://doc-compare-circom.mopro.pages.dev/blog/circom-comparison/#user-content-fnref-4-ca0b0e">↩</a></p></li></ol><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/32cfe9a9e917388299321af1291f5402e781dbddad8fbe0bd4a7bc38ec0c5eba.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Retrospective: Trusted Setups and P0tion Project ]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/retrospective-trusted-setups-and-p0tion-project</link>
            <guid>SbIwZFTaT9aCOnHJRWNE</guid>
            <pubDate>Wed, 15 Jan 2025 18:23:40 GMT</pubDate>
            <description><![CDATA[This post was written by the PSE Trusted Setup Team.Chronological look backEarly Stages and FoundationPSE’s Trusted Setups team began two years ago with a focus on understanding and implementing trusted setup ceremonies, which are crucial in generating secure cryptographic keys for production-ready zkSNARKs circuits. The team was formed to continue work on ongoing projects as well as starting to work on new initiatives. In a trusted setup ceremony, multiple participants collaborate to compute...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by the PSE Trusted Setup Team.</em></p><h2 id="h-chronological-look-back" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Chronological look back</h2><h3 id="h-early-stages-and-foundation" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Early Stages and Foundation</strong></h3><p>PSE’s Trusted Setups team began two years ago with a focus on understanding and implementing trusted setup ceremonies, which are crucial in generating secure cryptographic keys for production-ready zkSNARKs circuits. The team was formed to continue work on ongoing projects as well as starting to work on new initiatives.</p><p>In a trusted setup ceremony, multiple participants collaborate to compute the cryptographic parameters for the circuit, each contributing their own entropy - some <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=I4cDAqeEmpU">secret</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web.archive.org/web/20230501054531/https:/proofof.cat/">randomly</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web.archive.org/web/20230504180930/https:/hackmd.io/axUX8pFUQD-yCiBzQEDrYQ?view">generated</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.vice.com/en/article/power-tau-zcash-radioactive-toxic-waste/">value</a> - that is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/saint_rat/status/1647601259724275713">destroyed</a> after the computation is complete. As long as at least one participant runs the computation securely and properly disposes of their “toxic waste”, the setup is secure.</p><p>Historically, trusted setups have been difficult and time-consuming, requiring teams to implement infrastructure and coordinate participation for each new zkSNARK, often across two separate phases. The time, resources and technical expertise required to run a trusted setup ceremony placed a big burden on teams working on zero knowledge protocols - <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://radiolab.org/podcast/ceremony">this podcast</a> famously documents the elaborate precautions taken to secure Zcash’s 2016 trusted setup ceremony.</p><p>Our team identified a need for accessible and replicable tools that would help teams run trusted setups with less overhead. We quickly developed expertise in this niche but critical area, laying the groundwork for innovative tools to make trusted setups easier and more efficient.</p><h3 id="h-perpetual-powers-of-tau" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Perpetual Powers of Tau</strong></h3><p>In a two-phase trusted setup, the second phase is circuit-specific; but the first phase can be used by any number of projects as long as they trust that it’s secure. Our team took on the challenge of implementing a Phase 1 ceremony that could be trusted by anyone who might want to build on it. Since a setup is secure as long as any one participant has behaved honestly, that meant creating a ceremony that could stay open indefinitely and accept any number of contributions. This way, anyone who wanted to build on the setup but wasn’t confident in its integrity could ensure it was secure for their project by simply making their own contribution.</p><p>The result was the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/perpetualpowersoftau">Perpetual Powers of Tau ceremony</a>, focusing on producing phase-1 files crucial for all zkSNARKs. This ongoing ceremony has been running since 2019, with 85 contributors to date. Contributing to PPoT involves managing complex 100GB files, which requires contributors to have enough technical knowledge to spin up a server large enough to compute the contribution. It also requires the contributor to know how to install the right tools, download the files and upload the files after they finished their contribution.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e1338c42e6816ca47c9f9d7be4f560c13374441972036620bc2c2e2406f22fbc.png" alt="From PPoT announcement post by Wei Jie Koh https://medium.com/coinmonks/announcing-the-perpetual-powers-of-tau-ceremony-to-benefit-all-zk-snark-projects-c3da86af8377" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">From PPoT announcement post by Wei Jie Koh https://medium.com/coinmonks/announcing-the-perpetual-powers-of-tau-ceremony-to-benefit-all-zk-snark-projects-c3da86af8377</figcaption></figure><p>Since Perpetual Powers of Tau began, the team has successfully coordinated, prepared and published a range of Phase 1 output files for use in Phase 2 ceremonies depending on their number of constraints, demonstrating long-term commitment to this critical infrastructure.</p><h3 id="h-kzg-ceremony" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>KZG Ceremony</strong></h3><p>A pivotal moment for the project was the implementation of the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.ethereum.org/2024/01/23/kzg-wrap">KZG Ceremony</a>, essential for <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eips.ethereum.org/EIPS/eip-4844">EIP 4844</a> (Proto-Danksharding). This Ethereum core upgrade aimed to reduce gas prices by creating a separate market for data storage, benefiting layer 2 protocols.</p><p>We developed a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ceremony.ethereum.org/">user-friendly web application</a> to invite broad community participation, with a user-friendly process that guided contributors through the ceremony step by step, automating and abstracting away the complex operations of computation and toxic waste disposal. PSE’s design team created a beautiful user interface that made participating in the ceremony feel more like a sacred ritual than collective math.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/cfdabb17322bf65aac0e5ff9f3fc01215548f0d3168c55e8ed7910750b7036d1.png" alt="ceremony.ethereum.org landing page at the time the ceremony was active" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">ceremony.ethereum.org landing page at the time the ceremony was active</figcaption></figure><p>The ceremony was a resounding success, achieving an impressive 141,416 contributors worldwide. The <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkparty/trusted-setup-frontend">codebase</a> has been forked 66 times and garnered 229 stars on Github, indicating strong community interest and potential for reuse.</p><h3 id="h-p0tion" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>p0tion</strong></h3><p>In response to internal needs, the team took on the development of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/p0tion">p0tion</a>, a toolkit for deploying and running trusted setup ceremonies. Whereas the KZG implementation was designed for a very specific use, p0tion is intended to be more generalized and adaptable to the needs of many different projects.</p><p>The p0tion toolkit utilizes a mix of cloud functions and virtual machines for efficiency in running secure Groth16 zk-applications via automated Phase 2 ceremonies. We focused on streamlining the process of executing a trusted setup, as well as creating a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ceremony.pse.dev/">unified interface</a> for ceremonies implemented with p0tion.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7261e62da15a08f493def55947f9e19dfae45aaf2a2030b15eada73d88228cfa.png" alt="Trusted setup for ZKEmail circuits on ceremony.pse.dev" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Trusted setup for ZKEmail circuits on ceremony.pse.dev</figcaption></figure><p>The team later adapted the toolkit into a stand-alone tool with minimal infrastructure requirements, making it more accessible and easier to deploy on external servers.</p><h2 id="h-successes" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Successes</h2><h3 id="h-technical-achievements" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Technical Achievements</h3><p>The team developed some of PSE&apos;s most utilized public good tools, including p0tion for trusted setup ceremonies. They created a user-friendly KZG Ceremony interface attracting 140,000 participants and successfully conducted ceremonies for Groth16 PSE projects and external initiatives. The manual execution of Perpetual Powers of Tau demonstrated their capability in coordinating, verifying and backing up large files.</p><h3 id="h-community-engagement-and-impact" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Community Engagement and Impact</h3><p>Widespread participation in the KZG Ceremony enhanced Ethereum&apos;s security and fostered community involvement. The project contributed significantly to the growth and security of the Ethereum ecosystem, benefiting deployed dapps and zkApps.</p><p>Providing valuable generalized tools as public goods extended the project&apos;s influence across the crypto community. To date, p0tion has been used in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ceremony.pse.dev/">over 15 internal and external ceremonies</a>. The #🧪-p0tion channel in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/yujxyBdCfM">PSE public Discord</a> has been a great tool for the community to participate in the ceremonies and help us debug code issues.</p><h3 id="h-knowledge-sharing-and-collaboration" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Knowledge Sharing and Collaboration</h3><p>The team collaborated effectively with Ethereum core developers and external team members from various projects. They shared experiences through talks and workshops at events like Devconnect, positioning themselves as a valuable resource in the crypto community. Some of the talks are:</p><ul><li><br></li><li><br></li><li><br></li><li><br></li></ul><h2 id="h-challenges-and-lessons-learned" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Challenges &amp; Lessons Learned</h2><h3 id="h-project-management" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Project Management</h3><p>A critical insight from this project was recognizing the pitfall of assuming that a small team (in our case, just two people) doesn&apos;t require formal project management methodologies or structured communication processes. We fell into the trap of believing that with such a small team, informal, ad-hoc discussions would suffice for planning, coordination, and staying aligned. This led to loose processes, inadequate planning, unclear task ownership, sometimes duplicate work and ultimately, poor organization. <strong>For future projects, regardless of team size, we recommend implementing structured project management and communication approaches. Even for small teams, (light) sprint planning, regular stand-ups, and clearly defined goals and milestones are crucial.</strong></p><h3 id="h-development-process" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Development Process</h3><p>The team worked on different projects and solutions. Each one of them presented a different set of challenges and opportunities to learn:</p><ol><li><p><strong>Perpetual Powers of Tau</strong>: The project was manually maintained and run by a single team member. This approach allowed to move fast and provide great user support but it also created barriers when the team member left PSE. The solution for this was to document all the process and procedures.</p></li><li><p><strong>KZG ceremony</strong>: The project was developed by multiple external teams that needed coordination and a strict project management workflow. Even though we were able to successfully finish the project without major issues, a key lesson learned was to plan and prioritize the roadmap with all parties involved before starting work on the project.</p></li><li><p><strong>p0tion:</strong> The project was inherited from another team. The initial project was built prioritizing infrastructure prices rather than flexibility to use on any infrastructure platform. This approach helped to save costs and easily manage the tool, but external parties would have to invest time and knowledge to set up all the required infrastructure for their specific needs.</p></li></ol><p>Overall we learned the importance of a clear and structured roadmap and project management process. We also learned that it&apos;s far more efficient and beneficial to get early feedback on a work-in-progress rather than waiting to present a finished but potentially misguided solution.</p><p><strong>Besides the previous recommendation of implementing a structured project management approach, we recommend encouraging a culture of early code review, even on incomplete work: a discussion on a “half-baked” code is better than no discussion that leads to the development of an off-target solution.</strong></p><h3 id="h-technical-considerations" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Technical Considerations</h3><p>The team encountered different technical challenges in each project that were addressed through team collaboration and external advisory:</p><ol><li><p><strong>Perpetual Powers of Tau:</strong> Large files and long computations require knowledge on devops: instances spin-up and file backups. There are different procedures and nomenclatures depending on the infrastructure provider that the team members and maintainers have to consider when running a large ceremony like Perpetual Powers of Tau</p></li><li><p><strong>KZG ceremony:</strong> It is important that team members have flexibility to learn about different programming languages fast in order to collaborate with external teams. The main KZG ceremony server and crypto library was built using Rust and the team needed to understand the code in order to integrate it into a frontend (Typescript + React)</p></li><li><p><strong>p0tion</strong>: The mix between different infrastructure providers can help reduce costs, but it would increase complexity when deploying the tool. In our opinion, when building open-source tools, developers should aim for easy-to-deploy strategies.</p></li></ol><p>In general the project highlighted the potential benefits of diversifying the technology stack and carefully weighing the convenience of third-party packages against the benefits of custom solutions, such as reduced prices, computation time and greater backup flexibility.</p><h2 id="h-conclusion-and-future-outlook" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion and Future Outlook</h2><h3 id="h-long-term-support-lts" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Long Term Support (LTS)</h3><p>As we conclude active development, these trusted setup projects are entering a Long-Term Support phase. Specifically:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/perpetualpowersoftau">Perpetual Powers of Tau</a></p><ul><li><p>Maintain the archive of past contribution files</p></li><li><p>Coordinate future contributions manually through the #⛩-ppot channel on the PSE Discord</p></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkparty/trusted-setup-frontend">KZG ceremony</a></p><ul><li><p>No further development planned</p></li><li><p>Website <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.ceremony.ethereum.org">www.ceremony.ethereum.org</a> will stay up and running for users to check the contributors’ list and the final transcript</p></li><li><p>Codebase will remain public, but developers are generally recommended to use p0tion as a more general tool for all ceremonies</p></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/p0tion">p0tion</a></p><ul><li><p>Cease development of new features</p></li><li><p>Address critical bugs if and when discovered</p></li><li><p>Maintain the Discord channel open for community questions and issues</p></li><li><p>The project is available for community development of new features (faster computations, better UI dashboards, etc).</p></li></ul></li></ul><p>The Trusted Setups project has made significant contributions to the Ethereum ecosystem and the field of zero-knowledge proofs. As it transitions into a new phase, its legacy continues through shared tools and knowledge. The experiences and lessons learned will inform future initiatives in cryptography and blockchain.</p><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/903d3efd41e0a40586302f30a10aab51c63b10f4a233cba8cbc93667ae85baa5.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Why We Can't Build Perfectly Secure Multi-Party Applications (yet)]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/why-we-can-t-build-perfectly-secure-multi-party-applications-yet</link>
            <guid>tTRcxhtIzc9367MSLije</guid>
            <pubDate>Tue, 14 Jan 2025 13:12:20 GMT</pubDate>
            <description><![CDATA[This post was written by PSE researcher Enrico Bottazzi. Thanks to Pia Park for discussions and reviews. In this post, we’ll explore why building secure multi-party applications, which aim to compute a function over inputs from different parties while keeping those inputs private, is impossible today. We use Multi-party Trade Credit Set-off (MTCS) as an example, showing how technologies like multi-party computation and fully homomorphic encryption fall short of perfect security due to a funda...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by PSE researcher Enrico Bottazzi. Thanks to Pia Park for discussions and reviews.</em></p><p>In this post, we’ll explore why building secure multi-party applications, which aim to compute a function over inputs from different parties while keeping those inputs private, is impossible today. We use Multi-party Trade Credit Set-off (MTCS) as an example, showing how technologies like multi-party computation and fully homomorphic encryption fall short of perfect security due to a fundamental tradeoff between security and liveness. The current solution involves a delegated security model, but it’s not ideal. Are there any robust patches to this problem, or will we have to wait for indistinguishability obfuscation?</p><h3 id="h-multilateral-trade-credit-set-off" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Multilateral Trade Credit Set-off</h3><p>Multilateral Trade Credit Set-off (MTCS) is a process run by a service provider that collects trade credit data (i.e. obligations from a firm to pay another firm) from a network of firms and detects cycles of debts that can be removed from the system. The process yields liquidity savings for the participants, who can discharge their debts without relying on expensive loans.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/2d8113aa0bc33bab0f3f11edf25a381345c892e14a59bf822867a1847014745b.png" alt="Trade credit network before and after MTCS" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Trade credit network before and after MTCS</figcaption></figure><p>We propose an MTCS protocol that protects firms&apos; sensitive data, such as the obligation amount or the identity of the firms they trade with. The results are presented in the paper <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2024/2037"><em>Multilateral Trade Credit Set-off in MPC via Graph Anonymization and Network Simplex</em></a><em>,</em> authored by Enrico Bottazzi, Chan Nam Ngo, and Masato Tsutsumi.</p><p>Despite what you might think, I am not here to celebrate our results. The curious reader who is interested in how we <em>reduced the asymptotic round complexity of the secure minimum cost flow algorithm</em> is warmly invited to check out the paper. Instead, I want to abstract the characteristics of this specific application to <strong>any</strong> secure multi-party application and analyze how technologies such as fully homomorphic encryption (FHE) or secure multi-party computation (MPC) yield an <strong>imperfect security model</strong> given an inherent tradeoff between security and liveness.</p><p>However, not all hope is lost: we present some temporary patches until we reach <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.leku.blog/io/">indistinguishability obfuscation</a>, which will break this tradeoff once and for all and allow us to build fully secure multi-party applications.</p><h3 id="h-secure-multi-party-applications" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Secure multi-party applications</h3><p>A secure multi-party application is an application in which a function has to be computed over inputs coming from different parties, and this input should remain private: each party should not learn anything beyond what can be inferred from their input and the output of the function. Note that this definition is independent from the technology used to build such application.</p><p>In the real world, these applications are usually built leveraging a third party that performs the function and is <strong>trusted</strong> to keep the data for themselves and not do anything malicious with it. This is also the case for MTCS: Slovenia has been running it country-wide since 1991. The process is run every month by having the national firms submit their invoice to a government agency, which performs the clearing by having access to the entire trade credit graph. The low <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.ajpes.si/Bonitetne_storitve/Vecstranski_pobot/Porocila#b671">participation rate</a> (1500 firms, 0.2% of the total, in 2022) suggests that Slovenian firms might feel more comfortable in keeping their sensitive trade credit data for themselves and not join the process, despite the benefits that it yields. In the following sections, we&apos;ll iteratively try to build such a secure multi-party app, that does not depend on a single trusted third party.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b828462f24cf7d6c6150e5315385061b42acf7f42585cb537b30ee30dfccf4d2.png" alt="MTCS via a trusted third party" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">MTCS via a trusted third party</figcaption></figure><h3 id="h-building-secure-multi-party-applications-with-mpc" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Building secure multi-party applications with MPC</h3><p>MPC allows $n$ parties to compute a function on their combined private input without disclosing it to each other. In its most secure form, each input is split within $n$ shares such that any combination of $n-1$ shares reveals absolutely nothing about the underlying information. Functions can be performed &quot;obliviously&quot; by having the parties exchange information every time a multiplication is performed. With the strongest security assumptions, privacy and correctness of the executed function are guaranteed as long as one participant is honest. From the point of view of a firm, this is ideal: as long as I keep my shares protected, no one can learn any information.</p><p>But the devil lies in the details! In a protocol with $n$ participants, $n * (n-1) / 2$, communication channels need to exist to carry out the computation correctly, making the system highly inefficient (and therefore impractical) for networks of tens of thousands of firms. More importantly, those channels need to remain active during the whole protocol to guarantee its finality. Any malicious actor can decide to drop off in the middle of the algorithm execution, making it impossible for the others to recover their output.</p><h3 id="h-building-secure-multi-party-applications-with-fhe" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Building secure multi-party applications with FHE</h3><p>When it comes to performing computation over encrypted data, fully homomorphic encryption (FHE) is another possible solution. The mental model for FHE is straightforward: any untrusted server can perform $f$ on encrypted data without learning any information about the underlying data. While MPC is information-theoretic secure, in FHE the privacy of the data is guaranteed by the hardness of solving a specific mathematical problem. A further guarantee of correct computation can be achieved, with an additional cost, by slapping a zkSNARK on top of the server&apos;s operation.</p><p>But there&apos;s a caveat: FHE still requires someone to hold the decryption key. Outsourcing the ownership of the decryption key to a single party is not a good idea since this party would have god-mode read access to every encrypted data. A more secure approach is to run a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Distributed_key_generation">distributed key generation</a> (DKG) ceremony between the $n$ firms, encrypt all the data under the generated encryption key, outsource the computation of $f$ to a server and require the firms to come together again to decrypt each output and deliver it to the designated receiver firm. The decryption part must be done via MPC.</p><p>This brings us to the same problem we encountered before: one negligent (or malicious) firm that loses its decryption key share is sufficient to bring the whole protocol to a halt.</p><h3 id="h-the-delegated-security-model" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">The delegated security model</h3><p>A perfect security model, &quot;trust no one but yourself,&quot; presents limitations given the interaction needed between the $n$ protocol participants. Given that a secure MTCS protocol should support tens of thousands of firms, the price of this security level is too high for a practical instantiation. Sora describes this as a tradeoff between safety and liveness.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8f88ab73594a53b6563cb3e46411caacd86abc682855d49f833b970d378bc081.png" alt="Where x-axis represents the probability of success based on liveness assumptions. Source: https://speakerdeck.com/sorasuegami/ideal-obfuscation-io" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Where x-axis represents the probability of success based on liveness assumptions. Source: https://speakerdeck.com/sorasuegami/ideal-obfuscation-io</figcaption></figure><p>And indeed, the solution we proposed in the paper does not achieve a perfect security model. Instead, we rely on a client-to-server MPC protocol in which the computation (and the security) of the security is delegated to three servers. The strongest security assumption can guarantee that the privacy of the firm&apos;s data is safe as long as at least one of the servers is honest. However, the firms cannot do much to prevent the server managers from secretly meeting and gathering their shares to reconstruct any data involved. To make things even worse, there is no immediate way to detect this malicious action and keep the servers accountable for any misbehaviour.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/abdf69998c16fd72f3e1b8ec6c72f1a37a4733f8f04a9591740763e4ac30c4a3.png" alt="MTCS via MPC" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">MTCS via MPC</figcaption></figure><h3 id="h-temporary-patches-and-endgame" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Temporary patches and endgame</h3><p>There is a set of patches that aim to partially increase the security of such &quot;imperfect&quot; secure multi-party applications. The easiest to implement relies on social dynamics and involves choosing delegates that have conflicting interests with each other, such that a collusion between them is unlikely. For example, in the paper, we propose a delegated security model in which the three server managers are the National Chamber of Commerce, the tax authority, and a payment processor.</p><p>A more advanced implementation requires the servers to wrap their computation inside a TEE to add an additional layer of security: to assemble their shares, the servers must first break the TEE security. A more theoretical approach involves <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/1724">traitor tracing</a> systems to add accountability for misbehaving servers.</p><p>The endgame for secure multi-party applications is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.leku.blog/io/">indistiguishability obfuscation</a> (iO), which promises to be able to break the tradeoff between safety and liveness by removing any need for interaction during the decryption/output reconstruction phase. In particular, the decryption key of a FHE scheme can be embedded inside an obfuscated program as a result of a trusted set-up ceremony: as long as one participant is honest, no human can recover the key. The obfuscated program is designed to take a FHE ciphertext as input together with a proof that such ciphertext is allowed to be decrypted according to the predefined application logic. The program will verify the proof, and, on successful verification, output the decryption of the ciphertext. Since the obfuscated program is public, the decryption can be performed by anyone without requiring any interaction between parties holding the key.</p><p>While there are no practical iO implementations yet, the potential impact on secure multi-party applications is profound. At PSE, we&apos;re starting a new team to explore novel approaches based on recent publications to build practical iO.</p><p>If you&apos;re a researcher interested in contributing, reach out to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/demivoleegaston">me</a>! You can also join the discussion on our brand new <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://forum.pse.dev/post/1/7">PSE forum</a> 🙌</p><p>___________________________________________________________________________________________</p><p><em>PSE is an Ethereum Foundation team building free resources</em> for people expanding the world of programmable cryptography. <em>Learn more at </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev"><em>pse.dev</em></a><em>, join our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/yujxyBdCfM"><em>Discord</em></a><em>, or </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/PrivacyScaling"><em>follow us on X</em></a><em>.</em></p><p>___________________________________________________________________________________________</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://commons.wikimedia.org/wiki/File:Frankfurt_Stock_Exchange_(Ank_Kumar)_06.jpg"><em>Cover image source</em></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/739ffb9621efde5fc7e6d9ece69532cb5989809e0586a682b3a43d1c8dcdb395.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[AnonKlub: Reflections on Our Journey in Privacy-Preserving Solutions]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/anonklub-reflections-on-our-journey-in-privacy-preserving-solutions</link>
            <guid>YoI5RQM4K9hg0iwclTnp</guid>
            <pubDate>Tue, 01 Oct 2024 19:29:54 GMT</pubDate>
            <description><![CDATA[This post was written by the AnonKlub team. One year and half ago, we embarked on an ambitious journey to explore the potential of zk-ECDSA in bringing enhanced privacy to the Ethereum ecosystem. This research initiative was introduced to the community through a blog post detailing the state of zk-ECDSA and its promising applications. As our research progressed and we began to develop practical implementations, our project evolved and was eventually rebranded as AnonKlub. This name change ref...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by the AnonKlub team.</em></p><p>One year and half ago, we embarked on an ambitious journey to explore the potential of zk-ECDSA in bringing enhanced privacy to the Ethereum ecosystem. This research initiative was introduced to the community through a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/djxf2g9VzUcss1e-gWIL2DSRD4stWggtTOcgsv1RlxY"><strong>blog post detailing the state of zk-ECDSA and its promising applications</strong></a>.</p><p>As our research progressed and we began to develop practical implementations, our project evolved and was eventually rebranded as AnonKlub. This name change reflected our shift from pure research to a more application-focused approach, aiming to bring privacy-preserving solutions directly to Ethereum users.</p><p>Today, as we announce the sunsetting of AnonKlub, we&apos;d like to reflect on our journey from those early days of zk-ECDSA exploration to our efforts in building real-world privacy tools. We&apos;ll share our achievements, the challenges we faced, and the valuable lessons we&apos;ve learned along the way.</p><h2 id="h-our-vision-and-what-we-built" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Our Vision and What We Built</h2><p>AnonKlub began with the ambitious goal of leveraging zk-ECDSA to create privacy-preserving solutions for Ethereum users by allowing anonymously proving ownership of an ethereum address. We envisioned an ecosystem where users could interact with dApps, participate in DAOs, and manage their digital assets without compromising their privacy, that is without doxxing their address(es).</p><p>Over the course of the project, we managed to generate anonymous Ethereum address ownership proofs using three distinct proving frameworks: Circom, Spartan/Sapir, and Halo2.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1ea724f9496572c6c8a9e77c1979765272b901ee09dd64a349024575dc473c67.png" alt="The AnonKlub architecture (https://anonklub.github.io/#/architecture)" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">The AnonKlub architecture (https://anonklub.github.io/#/architecture)</figcaption></figure><h2 id="h-challenges-we-faced" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Challenges We Faced</h2><p>Despite our achievements, we encountered several significant challenges:</p><h3 id="h-framework-selection" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Framework selection</h3><p>One of the most valuable lessons from our AnonKlub journey came from our framework selection process. Three requirements were paramount, yet impossible to fulfill simultaneously given the current maturity of zero-knowledge technology:</p><ol><li><p><strong>Privacy</strong>: Client-side proving is crucial to prevent leaking any link between proof inputs and proof results to a proving server. Users should not have to let their private data leave their device.</p></li><li><p><strong>Trustlessness</strong>: On-chain verification via smart contracts ensures a trustless system, whereas relying on off-chain servers (the server that hosts a web client that does the verification in the browser) introduces trust assumptions.</p></li><li><p><strong>Performance</strong>: In today&apos;s fast-paced digital world, users expect quick interactions. Any proving process taking longer than 30 seconds significantly degrades user experience. Considering the approximate proving time of 1 minute, this falls short when compared to typical Web2 experiences, where users are accustomed to near-instantaneous responses. This presents a challenge for building more impactful products that attract a wider user base. While a 1-minute proving time may not be fast enough for many applications, it&apos;s important to consider:</p><ul><li><p>The type of applications using these proofs: For instance, generating an anonklub proof is likely an occasional or rare event, rather than a frequent action. In such cases, users might be more tolerant of longer processing times.</p></li><li><p>The use of web workers: By triggering the proof generation in the background, users can continue interacting with the application without a frozen UI. They can perform other tasks and receive a notification when the proof is complete.</p></li></ul><p>These factors can help mitigate the impact of longer proving times. However, continued efforts to optimize and reduce proving time will be crucial for broader adoption and improved user experience in the long run.</p></li></ol><p>Our journey through three different frameworks highlighted the challenges in balancing these requirements.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8a3e1253d4e0b431e3bc18fc5f3378794756f4e698f50528b58354462b13abad.png" alt="Benchmarking Results of ZK Frameworks Used" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Benchmarking Results of ZK Frameworks Used</figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6fefc2519909524369c0c1e4f93ef409cc177bd96bc5de98f560eb3e8e3f6de8.png" alt="Halo2 Proving Time Breakdown (no GPU)" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Halo2 Proving Time Breakdown (no GPU)</figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9cc0d1e5c6fcc885b3cd5b9c2df6a1173350e9d8fa62f582aed5804c24a991ba.png" alt="Privacy vs Performance Trade-Offs Of Different ZK Frameworks Used" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Privacy vs Performance Trade-Offs Of Different ZK Frameworks Used</figcaption></figure><h3 id="h-plume-signaturenullifier-scheme-adoption-hurdles" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>PLUME signature/nullifier scheme adoption hurdles</strong></h3><p>Nullifying zk ECDSA proofs is hard. The best candidate for robust and secure nullifier for zk proofs of ecdsa signature is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.aayushg.com/nullifier/">PLUME</a>. PLUME signatures aren’t standard signatures that mainstream wallets can build out of the box: the PLUME signature scheme is a new feature that needs to be implemented into mainstream wallets. As long as mainstream wallets don’t adopt PLUME, users can’t easily generate “deterministic and verifiable nullifiers on ECDSA”. Meaning they can’t use any applications that would make use of ECDSA zk proofs, such as AnonKlub.</p><h2 id="h-why-were-stopping" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Why We&apos;re Stopping</h2><p>The decision to sunset AnonKlub was not taken lightly, but was ultimately driven by a combination of challenges such as the ones mentioned above and strategic considerations:</p><ol><li><p><strong>Technological Limitations</strong>: As outlined above, we found ourselves at an impasse. The current state of zero-knowledge technology made it impossible to simultaneously achieve the level of privacy, trustlessness, and performance we deemed necessary for a truly user-friendly and secure solution. This fundamental challenge proved more persistent and resource-intensive to overcome than we initially anticipated.</p></li><li><p><strong>Ecosystem Readiness</strong>: The slow adoption of critical components like PLUME in mainstream wallets has created a significant bottleneck for the practical application of our work. Without widespread integration of these foundational elements, the real-world impact of our solutions remains limited.</p></li><li><p><strong>Evolving Privacy Landscape</strong>: As with any ambitious project in the cutting-edge tech space, we&apos;ve had to continually evaluate the balance between our goals, available resources, and potential impact. The rapid evolution of privacy solutions in the Ethereum ecosystem has opened up new, promising avenues for research and development. Given the challenges we&apos;ve faced and this changing landscape, we&apos;ve concluded that our resources could potentially drive greater innovation and progress if redirected to other pressing challenges.</p></li></ol><h2 id="h-future-hopes" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Future Hopes</h2><p>Looking to the future, we hope that our work with AnonKlub will serve as a stepping stone for others in the privacy-preserving space. We believe that the challenges we faced and the solutions we explored will provide valuable insights for future projects.</p><p>We remain optimistic about the future of privacy in the Ethereum ecosystem. We hope to see continued development in areas such as:</p><ol><li><p>Improved performance in zk-ECDSA implementations, possibly through GPU acceleration or innovative uses of folding schemes.</p></li><li><p>Wider adoption of privacy-preserving technologies like PLUME in mainstream wallets.</p></li><li><p>New approaches to balancing privacy, usability, and decentralization in blockchain applications.</p></li></ol><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>While AnonKlub is ending, our commitment to advancing privacy solutions in the blockchain space remains strong. We&apos;re grateful for the support and interest from the community throughout this journey. We encourage others to build upon our work, learn from our experiences, and continue pushing the boundaries of what&apos;s possible in blockchain privacy.</p><p>The <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anonklub/anonklub">code</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://anonklub.github.io/">documentation</a> from AnonKlub will remain available as a resource for the community. We look forward to seeing how future projects will take these ideas further and bring robust, user-friendly privacy solutions to the Ethereum ecosystem.</p><p>For more about PSE, visit our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev">website</a>,</p><p><em>Header image credit © </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.geograph.org.uk/profile/31463"><em>Jonathan Kington</em></a><em> (</em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://creativecommons.org/licenses/by-sa/2.0/"><em>cc-by-sa/2.0</em></a><em>)</em></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/504ffb05085876aca022087658daedb36655c578ac8cd5fca83745449be5fa58.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Secure Multi-Party Computation]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/secure-multi-party-computation</link>
            <guid>00H6gN8GU5l2vbhxwfVo</guid>
            <pubDate>Tue, 06 Aug 2024 16:42:57 GMT</pubDate>
            <description><![CDATA[This post was written by Brechy. Thanks Nam Ngo for the feedback and review! Secure multi-party computation (MPC) enables a group of participants to collaborate on a specific task that requires their data as input, ensuring the privacy of their inputs and the correctness of the output.This allows performing operations on private information without disclosing it or involving a trusted third party. The only data each party receives is the function&apos;s result. There are several MPC protocols...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/brech1"><em>Brechy</em></a><em>. Thanks </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc"><em>Nam Ngo</em></a><em> for the feedback and review!</em></p><p>Secure multi-party computation (MPC) enables a group of participants to collaborate on a specific task that requires their data as input, ensuring the privacy of their inputs and the correctness of the output.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b61fbb3a8353d24851280441992953448122ea7d21b0f61e717a1bf41aef2a28.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>This allows performing operations on private information without disclosing it or involving a trusted third party. The only data each party receives is the function&apos;s result.</p><p>There are several MPC protocols. This post provides an overview of the most general concepts and tools shared by many of them.</p><h2 id="h-introduction" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Introduction</h2><p>MPC enables multiple parties to collaborate on a specific function without revealing their private data to one another. This ensures that no single party can access the data of others. The participants agree on a particular task or function to perform, and then use an MPC protocol to collectively determine the result.</p><p>We can think of a sample use case of managing the private keys of an Ethereum account:</p><ul><li><p>A set of participants is each given a segment of the secret key.</p></li><li><p>Using an MPC protocol, they can input their segments and run the protocol to execute the signature function.</p></li></ul><p>No single participant can sign a transaction unless <strong>all or a sufficient number</strong> of participants input their secret key segments, and no participant has enough information to reconstruct the secret key.</p><h2 id="h-protocol-scope" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Protocol Scope</h2><p>MPC protocols can be categorized based on the functions they are designed to run, falling into two main categories: generic and specialized.</p><h3 id="h-specialized-protocols" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Specialized Protocols</h3><p>Specialized protocols are designed and optimized for a specific functionality. These protocols are built around a specific task, like Private Set Intersection (PSI) or voting. Specialized protocols leveraging the specific structure of a function can offer significant performance improvements.</p><h3 id="h-generic-protocols" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Generic Protocols</h3><p>Generic protocols can compute any function that can be represented as a fixed-size circuit. Yao’s Garbled Circuits protocol is an example of a generic protocol. They can be applied to a wide range of problems.</p><h2 id="h-secure-protocol-requirements" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Secure Protocol Requirements</h2><p>We can use the following properties to help us define an <strong>ideal</strong> secure protocol:</p><ul><li><p><strong>Privacy:</strong> No party should learn anything more than the function output.</p></li><li><p><strong>Correctness:</strong> Each party is guaranteed to receive the correct output.</p></li><li><p><strong>Independence of Inputs:</strong> Every party can decide its input independently of other parties.</p></li><li><p><strong>Guaranteed Output Delivery:</strong> No party can prevent other parties from receiving the function output.</p></li><li><p><strong>Fairness:</strong> If one party receives the function output, every party will receive the output.</p></li></ul><p>These guarantee the correctness of the output and ensure that no party can disrupt the process or gain an unfair advantage. However, additional measures are needed to ensure input integrity and protect the output from giving away information.</p><h3 id="h-input-integrity" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Input Integrity</h3><p>Participants can input any value, potentially manipulating the process. For instance, in an auction, a participant could falsely input an extremely high bid to ensure they win, even though their actual bid is much lower. To mitigate this, mechanisms like requiring signed inputs verified can be used, though this can increase computational costs.</p><h3 id="h-result-information" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Result Information</h3><p>The process result could reveal information about the inputs or the participants. Using the auction example, if the final highest bid is revealed, other participants can infer details about the highest bidder&apos;s strategy or budget.</p><h2 id="h-use-cases" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Use Cases</h2><p>Let&apos;s explore some real world use cases.</p><h3 id="h-privacy-preserving-machine-learning" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Privacy Preserving Machine Learning</h3><p>It&apos;s possible to enhance privacy during the machine learning training and inference phases. During training, multiple parties can collaboratively train a model without disclosing their individual datasets. For inference, it can ensure that both the client&apos;s input data and the server&apos;s model remain confidential. This allows clients to receive model outputs without exposing their data and ensures that the provider’s model remains private.</p><h3 id="h-threshold-cryptography" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Threshold Cryptography</h3><p>Companies can enhance key protection by distributing key shares across multiple secure environments. This ensures that no single location holds the entire private key, reducing the risk of key compromise. An adversary would need to breach all environments to access the complete key. This protects cryptographic keys, secures authentication processes and enforces signature approval policies.</p><h3 id="h-collaborative-data-analysis" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Collaborative Data Analysis</h3><p>Multiple parties can combine and analyze datasets without disclosing private information. Organizations can securely integrate various records to study trends while adhering to privacy regulations. This application enables data analysis without compromising confidentiality.</p><h2 id="h-circuits" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Circuits</h2><p>Many protocols use a circuit to represent the function being computed. The circuit&apos;s structure and operations remain constant and are not influenced by user inputs. As a result, the runtime of the protocol does not disclose any information about the inputs.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bee568fda53f814419a002484b02af46dbc82d40c930a28c0b08ac88351efcce.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>A simple circuit:</p><p>$$Output = ((A + B) * (C + D)) + E$$</p><p>These circuits can be either <strong>boolean</strong> circuits that process binary variables using logic gates, or <strong>arithmetic</strong> circuits that perform operations on numerical values.</p><p>Boolean circuits need to redefine basic operations for <strong>every bit width</strong>: supporting arithmetic on n-bit integers in such a protocol requires implementing n-bit addition and multiplication circuits.</p><p>Arithmetic circuits typically operate over a finite field, where the size of the field is set in advance. Although arithmetic circuits are primarily designed for arithmetic operations, non-arithmetic operations such as comparisons and equality checks can also be implemented.</p><p>Expressing the target computation as a circuit can be challenging since not every function can be easily converted into a circuit format, but compilers can be used for this. However, every function must be deterministic and free of indefinite loops.</p><p>A compiler converts a program written in a specialized, high-level language to an intermediate representation (often a circuit). The circuit is then passed as input to a runtime, which executes an MPC protocol and produces an output.</p><p>Let&apos;s consider an example where our function performs matrix element-wise multiplication, and our input and output are 2x2 matrices. We can use Circom and the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-2-arithc/">circom-2-arithc</a> compiler to create our circuit.</p><pre data-type="codeBlock" text="template matrixElementMul (m,n) {
    signal input a[m][n];
    signal input b[m][n];
    signal output out[m][n];
    
    for (var i=0; i &lt; m; i++) {
        for (var j=0; j &lt; n; j++) {
            out[i][j] &lt;== a[i][j] * b[i][j];
        }
    }
}

component main = matrixElementMul(2,2);
"><code>template matrixElementMul (m,n) {
    signal input a<span class="hljs-section">[m]</span><span class="hljs-section">[n]</span><span class="hljs-comment">;</span>
    signal input b<span class="hljs-section">[m]</span><span class="hljs-section">[n]</span><span class="hljs-comment">;</span>
    signal output out<span class="hljs-section">[m]</span><span class="hljs-section">[n]</span><span class="hljs-comment">;</span>
    
    for (var <span class="hljs-attr">i</span>=<span class="hljs-number">0</span><span class="hljs-comment">; i &#x3C; m; i++) {</span>
        for (var <span class="hljs-attr">j</span>=<span class="hljs-number">0</span><span class="hljs-comment">; j &#x3C; n; j++) {</span>
            out<span class="hljs-section">[i]</span><span class="hljs-section">[j]</span> &#x3C;== a<span class="hljs-section">[i]</span><span class="hljs-section">[j]</span> * b<span class="hljs-section">[i]</span><span class="hljs-section">[j]</span><span class="hljs-comment">;</span>
        }
    }
}

component <span class="hljs-attr">main</span> = matrixElementMul(<span class="hljs-number">2</span>,<span class="hljs-number">2</span>)<span class="hljs-comment">;</span>
</code></pre><p>The compiled circuit will consist of four arithmetic multiplication gates:</p><pre data-type="codeBlock" text="[{&quot;op&quot;:&quot;AMul&quot;,&quot;lh_in&quot;:0,&quot;rh_in&quot;:4,&quot;out&quot;:8},
 {&quot;op&quot;:&quot;AMul&quot;,&quot;lh_in&quot;:1,&quot;rh_in&quot;:5,&quot;out&quot;:9},
 {&quot;op&quot;:&quot;AMul&quot;,&quot;lh_in&quot;:2,&quot;rh_in&quot;:6,&quot;out&quot;:11},
 {&quot;op&quot;:&quot;AMul&quot;,&quot;lh_in&quot;:3,&quot;rh_in&quot;:7,&quot;out&quot;:10}]
"><code><span class="hljs-selector-attr">[{<span class="hljs-string">"op"</span>:<span class="hljs-string">"AMul"</span>,<span class="hljs-string">"lh_in"</span>:0,<span class="hljs-string">"rh_in"</span>:4,<span class="hljs-string">"out"</span>:8}, {<span class="hljs-string">"op"</span>:<span class="hljs-string">"AMul"</span>,<span class="hljs-string">"lh_in"</span>:1,<span class="hljs-string">"rh_in"</span>:5,<span class="hljs-string">"out"</span>:9}, {<span class="hljs-string">"op"</span>:<span class="hljs-string">"AMul"</span>,<span class="hljs-string">"lh_in"</span>:2,<span class="hljs-string">"rh_in"</span>:6,<span class="hljs-string">"out"</span>:11}, {<span class="hljs-string">"op"</span>:<span class="hljs-string">"AMul"</span>,<span class="hljs-string">"lh_in"</span>:3,<span class="hljs-string">"rh_in"</span>:7,<span class="hljs-string">"out"</span>:10}]</span>
</code></pre><h3 id="h-circuit-diagram" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Circuit Diagram</h3><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1d82450c705d1fe66b6a16b629e62b4e2783265dacd8cd1bc4dff43b6c54eb96.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>For this example, it might have been quicker to manually construct the gates. However, we now have a function that can serve as a building block for actual matrix multiplication or more complex operations.</p><h2 id="h-oblivious-transfer" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Oblivious Transfer</h2><p>Oblivious transfer (OT) is a cryptographic two-party protocol. It allows the receiving party to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.oxfordlearnersdictionaries.com/definition/english/obliviously">obliviously</a> select one of the sending party’s inputs . The protocol’s privacy guarantees ensure that the sender does not learn the choice of the receiver and the receiver does not learn the non selected inputs.</p><p>Let&apos;s review a basic example, the <strong>1-out-of-2 oblivious transfer</strong>. In this protocol, the sender has two messages, 𝑚 0 and 𝑚 1 . The receiver wants to learn one of these messages, 𝑚 𝑏 , without the sender knowing which message was chosen.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/690e21701d884cdf9b639d05a2dbdf29fab21a4702b7d5882d296924202b0b23.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>1-out-of-2 Oblivious Transfer protocol</p><ul><li><p>Initialization:</p><ul><li><p>The sender has two messages: 𝑚 0 and 𝑚 1 .</p></li><li><p>The receiver wants to choose one of these messages, indexed by 𝑏 , where 𝑏 ∈ { 0 , 1 } .</p></li></ul></li><li><p>Communication Phase:</p><ul><li><p>The receiver generates a pair of public and secret keys ( 𝑝 𝑘 , 𝑠 𝑘 ) .</p></li><li><p>The receiver sends 𝑝 𝑘 to the sender.</p></li><li><p>The sender encrypts 𝑚 0 and 𝑚 1 using 𝑝 𝑘 in such a way that only the selected message 𝑚 𝑏 can be decrypted by the receiver using the secret key 𝑠 𝑘 .</p></li></ul></li><li><p>Transfer Phase:</p><ul><li><p>The sender sends the encrypted messages to the receiver. The receiver uses 𝑠 𝑘 to decrypt the chosen message 𝑚 𝑏 .</p></li></ul></li><li><p>This way we ensure that data privacy is maintained:</p><ul><li><p>The receiver learns only the chosen message 𝑚 𝑏 and nothing about the other message 𝑚 1 − 𝑏</p></li><li><p>The sender does not learn which message the receiver chose.</p></li></ul></li></ul><h2 id="h-garbled-circuits" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Garbled Circuits</h2><p>Garbled circuits (GCs) were introduced by Andrew Yao in the 1980s as a technique for secure <strong>two-party computation (2PC)</strong>. The GC protocol involves two parties, the garbler and the evaluator, who work together to securely evaluate a function represented as a Boolean circuit. The function consists of AND and XOR gates, and each party contributes part of the input.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/77fa11f2f9ebcd8638f6708ed6a6650d91b3bce42899e3330ce3e96f62655ec8.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><em>Garbled Circuit protocol</em></p><p>Here&apos;s a step-by-step overview of how the GC protocol works for a simple circuit.</p><h3 id="h-circuit" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Circuit</h3><p>Our circuit will be constructed with only one AND gate. The truth table shows the output for all possible input combinations:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/77c4686d2a37f5140ab02a87b75fb324b1fbda0e0b1c1e5f53b6112aa5edaa40.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-garbling" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Garbling</h3><p>Garbling is a process by which the truth table is obfuscated. The garbler picks four random strings, or <strong>labels:</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/603a4fd5e02263728e1d75277c845939bf0fae226488eb25e81886e312711159.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The garbler then uses every pair of labels corresponding to a possible scenario to encrypt the output corresponding to that scenario.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8fc8ee972a312c2782050b72b8933d36efa94598d598033888a8bad9e1911b42.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The two relevant labels are put through a key derivation function 𝐻 to derive a symmetric encryption key, and that key is used to encrypt 𝑎 ∧ 𝑏 . Then the garbled gate consists of the four resulting ciphertexts, in a random order.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c861f5ee568b0898f12af6e863918603eefbd4adb2a6dd0141000d862414f72d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-evaluation" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Evaluation</h3><p>Once the evaluator receives the garbled gate, it needs to decrypt exactly one ciphertext: the one corresponding to the real values 𝑎 and 𝑏 , encrypted with $$H(W_{a}^A, W_{b}^B)$$.</p><p>In order to do this, it needs to receive from the garbler $$W_{a}^A$$ and $$W_{b}^B$$.</p><p>Since the garbler knows 𝑎 , he can send the evaluator $$W_{a}^A$$. The labels are all random, independent, and identically distributed, so the evaluator won’t learn anything about 𝑎 from $$W_{a}^A$$</p><p>However, getting $$W_{b}^B$$ to the evaluator is harder. The garbler can’t send both $$W_{0}^B$$ and $$W_{1}^B$$ to the evaluator because that will allow them to decrypt two ciphertexts in the garbled gate. Similarly, the evaluator can’t simply ask for the one they want because they don’t want the garbler to learn 𝑏 .</p><p>So, the garbler and the evaluator use Oblivious Transfer, which allows the evaluator to learn only $$W_{b}^B$$ without revealing 𝑏 to the garbler.</p><p>Note that in order for this to work, the evaluator needs to know when decryption succeeds and when it doesn’t. Otherwise, there’s no way for them to know which ciphertext yields the correct answer.</p><h3 id="h-example-walkthrough" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Example Walkthrough</h3><p>Let&apos;s create an example walkthrough for the case where the garbler&apos;s input is $$a = 0$$ and the evaluator&apos;s input is $$b = 1$$.</p><ol><li><p><strong>Initialization</strong>:</p><ul><li><p>Garbler generates labels for inputs $$a$$ and $$b$$.</p></li><li><p>Garbler creates and transfer the garbled circuit.</p></li></ul></li><li><p><strong>Input Label Distribution</strong>:</p><ul><li><p>Garbler sends $$W_{0}^A$$ to evaluator (since $$a = 0$$).</p></li></ul></li><li><p><strong>Oblivious Transfer</strong>:</p><ul><li><p>Evaluator uses Oblivious Transfer to receive $$W_{1}^B$$ (since $$b = 1$$).</p></li></ul></li><li><p><strong>Evaluation</strong>:</p><ul><li><p>Evaluator uses the keys $$W_{0}^A$$ and $$W_{1}^B$$ to decrypt the corresponding entry in the garbled table:</p></li><li><p>$$Enc(H(W_{0}^A, W_{1}^B), W_{0}^{out}) \rightarrow W_{0}^{out}$$</p></li></ul></li><li><p><strong>Output Reconstruction</strong>:</p><ul><li><p>Evaluator maps the decrypted key $$W_{0}^{out}$$ to the output value 0.</p></li></ul></li></ol><h2 id="h-secret-sharing" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Secret Sharing</h2><p>Secret sharing is an approach for distributing a secret value using <strong>shares</strong> that separately do not reveal any information about the secret. The secret value can only be reconstructed if all or a sufficient number of shares are combined.</p><p>Let&apos;s review how <strong>Additive Secret Sharing</strong> works, in an example involving 3 participants and an addition operation. In this scheme, the secret is divided into $$m$$ parts, and the secret can only be reconstructed when all parts are combined.</p><h3 id="h-secret-splitting" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Secret Splitting</h3><ul><li><p>Choose a secret value.</p><ul><li><p>$$S = 1337$$</p></li></ul></li><li><p>Choose $$m-1$$ random numbers as shares.</p><ul><li><p>$$m = 3$$</p></li><li><p>$$S_1 = 220$$</p></li><li><p>$$S_2 = 540$$</p></li></ul></li><li><p>Calculate the final share $$S_3$$.</p><ul><li><p>$$S = S_1 + S_2 + S_3$$</p></li><li><p>$$S_3 = S - (S_1 + S_2) = 1337 - (220 + 540) = 577$$</p></li></ul></li></ul><p>Let&apos;s split another secret to perform an addition:</p><ul><li><p>$$T = 1440$$</p><ul><li><p>$$T_1 = 118$$</p></li><li><p>$$T_2 = 330$$</p></li><li><p>$$T_3 = 992$$</p></li></ul></li></ul><h3 id="h-share-distribution" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Share Distribution</h3><p>Distribute the shares to the participants.</p><ul><li><p>Participant 1: $$S_1$$ and $$T_1$$</p></li><li><p>Participant 2: $$S_2$$ and $$T_2$$</p></li><li><p>Participant 3: $$S_3$$ and $$T_3$$</p></li></ul><h3 id="h-perform-operation" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Perform Operation</h3><p>Each participant can perform the addition locally.</p><ul><li><p>$$R_1 = S_1 + T_1 = 220 + 118 = 338$$</p></li><li><p>$$R_2 = S_2 + T_2 = 540 + 330 = 870$$</p></li><li><p>$$R_3 = S_3 + T_3 = 577 + 992 = 1569$$</p></li></ul><h3 id="h-secret-reconstruction" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Secret Reconstruction</h3><p>Reconstruct the result from the shares:</p><ul><li><p>$$R = S + T$$</p></li><li><p>$$R = (S_1 + S_2 + S_3) + (T_1 + T_2 + T_3) = (S_1 + T_1) + (S_2 + T_2) + (S_3 + T_3)$$</p></li><li><p>$$R = 338 + 870 + 1569 = 2777$$</p></li></ul><p>Since operations on secret-shared numbers produce secret-shared numbers, they can be executed one after the other and create more complex functions. This way, any function given as a circuit can be evaluated on secret-shared numbers:</p><ul><li><p>The secret inputs of the parties are secret-shared between them.</p></li><li><p>The circuit is evaluated, gate by gate, using secret-shared numbers.</p></li><li><p>The output is reconstructed from the final shares.</p></li></ul><p><strong>Reconstruction only happens at the end.</strong> In all previous steps, parties work with their own shares, so as not to reveal anything about the secret inputs.</p><h2 id="h-security-implications" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Security Implications</h2><p><strong>No single party can be inherently trusted.</strong> Parties interact with each other through the protocol and this outlines the expected behaviors and communications for each participant. The protocol specifies the actions to take at each step, including what messages to send, to whom, and when to stop.</p><p>Adversaries can <strong>corrupt</strong> parties at any stage of the process. Depending on the threat model, corrupted parties might either follow the protocol or deviate from it:</p><ul><li><p><strong>Semi-honest (Honest-but-curious)</strong>: These adversaries corrupt parties but follow the protocol as specified. While they execute the protocol honestly, they try to learn as much as possible from the messages they receive from other parties.</p></li><li><p><strong>Malicious (Active)</strong>: These adversaries may cause corrupted parties to deviate from the protocol.</p></li></ul><p>In terms of security guarantees, we can classify protocols in:</p><ul><li><p>Protocols guaranteeing security in the presence of an <strong>honest majority</strong></p></li><li><p>Protocols guaranteeing security against an <strong>arbitrary number of corrupted parties</strong></p></li></ul><p>Protocols of the first type are generally more <strong>efficient</strong> than those of the second type, even in hybrid models that implement ideal cryptographic primitives such as oblivious transfer. However, the second type of protocols offers a significant qualitative advantage, as they provide security without requiring any trust among parties. This is especially important in secure <strong>two-party computation</strong>.</p><h2 id="h-performance" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Performance</h2><p>Despite the demand for this technology, its practical adoption remains limited. This limitation is mainly due to the efficiency challenges associated with the underlying protocols. Although generic protocols have been known for over 30 years, they were largely theoretical and too inefficient for practical use.</p><p>Two key factors impact performance: <strong>communication</strong> and <strong>computation</strong>.</p><h3 id="h-communication" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Communication</h3><p>This includes the volume of data exchanged and the number of communication rounds required.</p><ul><li><p><strong>Data Volume</strong>: Total size of messages exchanged between parties during the protocol execution.</p></li><li><p><strong>Communication Rounds</strong>: Number of back-and-forth message exchanges required to complete the protocol.</p></li></ul><h3 id="h-computation" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Computation</h3><p>Refers to the amount of processing power required. The key factors here are the <strong>complexity</strong> and the <strong>number</strong> of cryptographic operations.</p><p>As evidenced by the results in [<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.net.in.tum.de/fileadmin/TUM/NET/NET-2019-06-1/NET-2019-06-1_02.pdf">1</a>], MPC is feasible for intranet applications with <strong>limited peers, low latency, and high transmission rates</strong>. However, it faces significant execution time increases under less optimal conditions. Specifically:</p><ul><li><p><strong>Transmission Rate</strong>: Lower transmission rates lead to notable execution time delays.</p></li><li><p><strong>Number of Peers</strong>: An increase in the number of peers results in longer execution times.</p></li><li><p><strong>Network Latency</strong>: Even small delays in network latency can cause <strong>substantial</strong> increases in execution time.</p></li></ul><p>Therefore, while real-time applications of MPC currently seem unfeasible, use cases with softer time constraints or faster infrastructure remain viable.</p><h2 id="h-programmable-cryptography" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Programmable Cryptography</h2><p>MPC can be integrated with zero-knowledge proofs and fully homomorphic encryption to enhance security and functionality. Consider exploring the following resources on the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/">PSE Blog</a>:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/D8UHFW1t48x2liWb5wuP6LDdCRbgUH_8vOFvA0tNDJA">Zero to Start: Applied Fully Homomorphic Encryption</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/xXcRj5QfvA_qhkiZCVg46Gn9uX8P_Ld-DXlqY51roPY">Beyond Zero-Knowledge: What’s Next in Programmable Cryptography?</a></p></li></ul><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>Secure multi-party computation is a powerful cryptographic tool that allows multiple parties to work together on a function without revealing their private data. Despite its potential, practical use has been slow due to issues like high communication costs and intense computational needs. However, as technology improves and protocols are refined, MPC applications are growing. This technology is key for enabling secure, distributed computation and data analysis in our increasingly connected digital world.</p><h2 id="h-resources" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Resources</h2><p>These are some MPC projects we&apos;re building at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev">PSE</a>:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/mpz">mpz</a>: Collection of multi-party computation libraries written in Rust :crab:.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/tlsnotary/tlsn">tls-notary</a>: Data provenance and privacy with secure multi-party computation.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/namnc/circom-2-arithc">circom-2-arithc</a>: Circom to Arithmetic Circuit compiler.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/voltrevo/circom-2-arithc-ts">circom-2-arithc-ts</a>: Circom to Arithmetic Circuit compiler TypeScript library.</p></li></ul><p>And this is a great list of software libraries and frameworks to start building:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/rdragos/awesome-mpc?tab=readme-ov-file#software">awesome-mpc</a></p></li></ul><h2 id="h-references" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">References</h2><ol><li><p>Dickmanns Ludwig and von Maltitz Marcel. &quot;Performance of Secure Multiparty Computation.&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.net.in.tum.de/fileadmin/TUM/NET/NET-2019-06-1/NET-2019-06-1_02.pdf">PDF</a>, 2019.</p></li><li><p>Escudero Daniel. &quot;An Introduction to Secret-Sharing-Based Secure Multiparty Computation.&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/062.pdf">PDF</a>, 2022.</p></li><li><p>Evans David, Kolesnikov Vladimir, and Rosulek Mike. &quot;A Pragmatic Introduction to Secure Multi-Party Computation.&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://securecomputation.org/docs/pragmaticmpc.pdf">PDF</a>, 2018.</p></li><li><p>Hastings Marcella, Hemenway Brett, Noble Daniel, and Zdancewic Steve. &quot;SoK: General Purpose Compilers for Secure Multi-Party Computation.&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&amp;arnumber=8835312">PDF</a>, 2019.</p></li><li><p>Ishai Yuval, Prabhakaran Manoj, and Sahai Amit. &quot;Founding Cryptography on Oblivious Transfer – Efficiently.&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://iacr.org/archive/crypto2008/51570574/51570574.pdf">PDF</a>, 2008.</p></li><li><p>Lindell Yehuda. &quot;Secure Multiparty Computation (MPC).&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2020/300.pdf">PDF</a>, 2020.</p></li><li><p>Mann Zoltán Ádám, Weinert Christian, Chabal Daphnee, and Bos Joppe W. &quot;Towards Practical Secure Neural Network Inference: The Journey So Far and the Road Ahead.&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/1483.pdf">PDF</a>, 2022.</p></li><li><p>Yakoubov Sophia. &quot;A Gentle Introduction to Yao’s Garbled Circuits.&quot; <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web.mit.edu/sonka89/www/papers/2017ygc.pdf">PDF</a>, 2017.</p></li></ol>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7340c2bd29b0d250a6846f0e8e8ad9b13479592d93ace88a2605616b8fa79508.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[The next chapter for zkEVM Community Edition]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/the-next-chapter-for-zkevm-community-edition</link>
            <guid>pfQfJph8Bi0i428YhgYw</guid>
            <pubDate>Wed, 05 Jun 2024 20:57:57 GMT</pubDate>
            <description><![CDATA[We are excited to share some updates on our road to building a zkEVM, as we generalize our exploration towards the design and implementation of a general-purpose zkVM. Zero-knowledge research and development in the broader Ethereum ecosystem has been bearing wholesome fruits over the past three years. That came after years of vibrant ideation with an uncompromising approach to security, building on the shoulders of giants of the prover-verifier computational model in computer science and cryp...]]></description>
            <content:encoded><![CDATA[<p>We are excited to share some updates on our road to building a zkEVM, as we generalize our exploration towards the design and implementation of a general-purpose zkVM.</p><p>Zero-knowledge research and development in the broader Ethereum ecosystem has been bearing wholesome fruits over the past three years. That came after years of vibrant ideation with an uncompromising approach to security, building on the shoulders of giants of the prover-verifier computational model in computer science and cryptography.</p><p>Progress has been accelerating in the theory, design, and engineering of general-compute ZK systems since 2021, when we started working on a zkEVM implementation alongside our collaborators. We replaced the backend of the Halo2 instantiation of PLONK with the KZG commitment scheme in order to facilitate verification on Ethereum, and with it we collectively built highly-optimized circuits of self-contained components of the Ethereum protocol. We extend our thanks and appreciation to the Scroll and Taiko teams, who developed the project with us from the early days, as well as the many amazing community contributors, for their great contributions to this effort.</p><p>We are lifting circuits of some <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/zkevm-circuits/blob/main/zkevm-circuits/src/keccak_circuit.rs">primitives</a> into their own libraries for the community to take advantage of, especially in the emerging paradigm of zkVMs with hand-optimized precompiles. Today, our fork of Halo2 has a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/halo2/pull/254">distinct architecture</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/halo2curves">expanded features</a>, and an active community of contributors <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/halo2/pull/277">pushing it forward</a>. We congratulate Scroll for bringing the fruits of our collaboration to a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://scroll.io/blog/founder-letter">successful zkRollup deployment</a>.</p><p>With our experience building a zkEVM, and with libraries, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/zkevm-circuits/pull/1785">designs</a>, and a state-of-the-art proof development kit under our belt, we now shift our focus to a new zkVM design that explores different ideas — <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dl.acm.org/doi/abs/10.1145/2699436">old</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2024/325">new</a> — and researches and fine-tunes new ones, particularly given the improvements in prover efficiency that weren&apos;t available 2 years ago. There is a lot that goes into proving the validity of an Ethereum block, and targeting a lower-level VM for arithmetization simplifies proving the parts for light clients, and reduces the complexity of proving the whole of Ethereum blocks.</p><p>The generality of zkVMs incurs overhead, but that is outweighed by gains in lower complexity, better auditability, and easier maintenance as the proof system of the execution environment gets abstracted away from changes to the base Ethereum protocol.</p><p>We remain focused on our long-term goal: accessible proving and verification of Ethereum blocks — and without additional trust assumptions on light clients. Combined with upcoming upgrades such as danksharding, the end-game of maximally decentralized, scalable, and secure Ethereum is firmly in-sight, and we are thrilled to continue playing a major role towards that wonderful destination.</p><p>We build in the open, and welcome collaboration with and contributions from builders in our ecosystem who share our values and commitment to advancing free, open, secure, and privacy-preserving software for our societies.</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e996bb414276a1fa962c581c5a6db69daeff88daa1884f80b227a2106d9cc499.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Unleashing Potential: Introducing the PSE Core Program]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/unleashing-potential-introducing-the-pse-core-program</link>
            <guid>mcsb0ToyFLfwDz47K9cG</guid>
            <pubDate>Wed, 24 Apr 2024 17:45:39 GMT</pubDate>
            <description><![CDATA[This post was written by the PSE EcoDev Team. Hey there, curious minds! Are you ready to dive into the world of practical skills and open-source project contributions? Well, buckle up because we&apos;re about to embark on an exciting journey through the PSE Core Program! In today’s digital landscape, privacy and security are paramount. That’s where Zero Knowledge (ZK) technologies come into play. By allowing parties to verify information without revealing any underlying data, ZK protocols off...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by the PSE EcoDev Team.</em></p><p>Hey there, curious minds! Are you ready to dive into the world of practical skills and open-source project contributions? Well, buckle up because we&apos;re about to embark on an exciting journey through the <strong>PSE Core Program</strong>!</p><p>In today’s digital landscape, privacy and security are paramount. That’s where Zero Knowledge (ZK) technologies come into play. By allowing parties to verify information without revealing any underlying data, ZK protocols offer a revolutionary solution to protect sensitive information in a world where data breaches and privacy violations are all too common.</p><p>With ZK protocols, individuals can engage in transactions, authenticate identities, and share information without compromising their privacy. It&apos;s a game-changer for industries ranging from finance and healthcare to communications and beyond.</p><p>So, what exactly is this program all about? Picture this: you&apos;re a student in Latin America or Asia, eager to enhance your skills and make a meaningful impact in the tech world. That&apos;s where the PSE Core Program swoops in to save the day. It&apos;s like a beacon of opportunity, shining a light on the path towards knowledge and growth.</p><p>Let&apos;s delve into the workings:</p><p>The program works in a <strong>Hybrid Learning Model.</strong> We blend the flexibility of self-learning with weekly in-person meetups. These sessions are all about sparking discussions, networking, and solving challenges together.</p><ol><li><p><strong>Stage 0 (Preparation):</strong> Before we kick off, we&apos;ve got some prep work for you. Dive into modules that cover program logistics, open-source culture, and essential background knowledge for zero-knowledge technology.</p></li><li><p><strong>Stage 1 (Weeks 1-5):</strong> It&apos;s time to roll up your sleeves and dive into zero-knowledge tech. Guided by seasoned mentors, you&apos;ll tackle complex topics with hands-on coding and curated study materials. Plus, Week 3 brings a thrilling hackathon for a break from studying.</p></li><li><p><strong>Stage 2 (Weeks 6-8):</strong> Here&apos;s where the magic happens. Armed with newfound knowledge and experience, you&apos;ll contribute to real-world open-source projects. It&apos;s your chance to shine as an open-source developer.</p></li></ol><p>Throughout the program, you&apos;ll dive into exciting topics such as:</p><ul><li><p>Cryptography basics: getting started with Circom, hash functions and more</p></li><li><p>KZG commitments and zkSNARKs</p></li><li><p>Overview of trusted setups and Groth16</p></li><li><p>Deep Dive into PLONK</p></li><li><p>Halo2, FHE, MPC</p></li><li><p>Explore projects like Sempahore, Bandada, TLSNotary, ZKEmail</p></li></ul><p>But here&apos;s the best part: you won&apos;t be navigating this journey alone. You&apos;ll have mentors, community managers, and more people from the PSE team by your side; plus, weekly in-person meetings where you can network with fellow enthusiasts.</p><p>Who knows? You might even meet your future co-founder in one of these sessions.</p><p>Throughout the PSE Core Program, participants will dive deep into ZK fundamentals, gain hands-on experience with cutting-edge technologies, and contribute to real-world projects. As the demand for ZK expertise continues to grow, this program presents a unique opportunity for participants to carve out a successful career path in a field with a brilliant future ahead.</p><p>Join us in our Telegram group to connect with fellow enthusiasts, ask questions, and stay updated on program news and events. You can also explore our program website for more details and to apply today!</p><p>Telegram group: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/+ebGauHbpDE0yZGIx">https://t.me/+ebGauHbpDE0yZGIx</a></p><p>Core Program Website: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/PSE-Core-Program-2024-64ae61c3d7e74bf4bf9c15914ef22460?pvs=21">https://www.notion.so/pse-team/PSE-Core-Program-2024-64ae61c3d7e74bf4bf9c15914ef22460</a></p><p>So, what are you waiting for? Get ready to unleash your full potential. The world of ZK awaits, and we&apos;re here to help you conquer it. Let&apos;s do this!</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/990a8e04155e1dbba05521c836613107e3c649e8f316a2071484fad23e208371.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Advancing Anon Aadhaar: what's new in v1.0.0]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/advancing-anon-aadhaar-what-s-new-in-v1-0-0</link>
            <guid>uMSKy15gxEa54i9tXYMD</guid>
            <pubDate>Wed, 14 Feb 2024 18:03:21 GMT</pubDate>
            <description><![CDATA[This post was written by the Anon Aadhaar team. If you’re new to Anon Aadhaar make sure to read our initial announcement post.Introducing Anon Aadhaar v1.0.0Anon Aadhaar is a protocol that enables Aadhaar holders to prove their identity anonymously. It works by verifying the Aadhaar card&apos;s issuer signature, which is issued by the Indian government in formats like PDF, XML, and Secure QR code. These digital versions are signed using RSA, involving a pair of keys: a private key for signing...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by the Anon Aadhaar team. If you’re new to Anon Aadhaar make sure to read our </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/6R8kACTYp9mF3eIpLZMXs8JAQmTyb6Uy8KnZqzmDFZI"><em>initial announcement post</em></a><em>.</em></p><h3 id="h-introducing-anon-aadhaar-v100" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Introducing Anon Aadhaar v1.0.0</strong></h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anon-aadhaar/anon-aadhaar">Anon Aadhaar</a> is a protocol that enables <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Aadhaar">Aadhaar</a> holders to prove their identity anonymously. It works by verifying the Aadhaar card&apos;s issuer signature, which is issued by the Indian government in formats like <em>PDF</em>, <em>XML</em>, and <em>Secure QR</em> code. These digital versions are signed using RSA, involving a pair of keys: a private key for signing data and a public key for verification.</p><p>Our protocol leverages the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uidai.gov.in/en/about-uidai.html">UIDAI&apos;s</a> (government authority) RSA signature, enabling us to verify the documents as anyone could. The novelty of our approach is the use of a SNARK proof in the verification process, which hides sensitive data from the verifier, maintaining the same level of verification while enhancing privacy.</p><p><strong>Recap of Previous Version Developments</strong></p><p>In the previous version, we implemented RSA verification in Circom using Groth16. We used the eAadhaar PDF, which is easily downloadable by Aadhaar residents, for signature verification.</p><p>However, we encountered two major issues:</p><ol><li><p>The PDF&apos;s size was too large for circuit input</p></li><li><p>A changing timestamp in the document made it impossible to have a consistent identity hash</p></li></ol><p>To overcome these obstacles, we transitioned to use the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uidai.gov.in/en/ecosystem/authentication-devices-documents/qr-code-reader.html">Aadhaar secure QR code</a> for verification purposes.</p><p>This method is not only broadly adopted but also readily accessible through the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uidai.gov.in/en/contact-support/have-any-question/285-english-uk/faqs/your-aadhaar/maadhaar-faqs.html">mAadhaar</a> mobile application or via the printed version of the e-Aadhaar PDF. This adjustment enhances the efficiency of verifying signed identity data and streamlines the process of document parsing within our system.</p><p><strong>Key Features in v1.0.0</strong></p><ol><li><p><strong>SHA-256 Hash Verification</strong>: leveraging <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zkemail">zk-email</a> implementation, we&apos;ve integrated SHA-256 hash verification alongside RSA verification, allowing us to work effectively with the signed data.</p></li><li><p><strong>Extractor</strong>: with verified data, our new Circom extractor implementation enables selective extraction of identity fields from the document.</p></li><li><p><strong>Nullifiers</strong>: we&apos;re now computing two types of nullifiers:</p><ul><li><p><strong>userNullifier</strong>: this nullifier serves as a high-entropy, unique identifier for each user, virtually eliminating the possibility of collisions between the identifiers of different individuals. It is generated by hashing the combination of the last four digits of a user&apos;s Aadhaar number and their identity photo. The unique byte data of the photo enhances the identifier&apos;s uniqueness, ensuring distinctness even in the vast pool of users. This approach is particularly useful for app interactions, where collision avoidance is crucial.</p><pre data-type="codeBlock" text="userNullifier=Hash(last4,photo)
"><code><span class="hljs-attr">userNullifier</span>=Hash(last4,photo)
</code></pre></li><li><p><strong>identityNullifier</strong>: This nullifier is constructed from a hash of various personal identity elements, including the last four digits of the Aadhaar number, date of birth (DOB), name, gender, and PIN code. The design of the identity nullifier allows for its easy recomputation by users, should there be any changes to their identity data. This feature is particularly valuable for maintaining continuity of identity within the system. For instance, if a user updates their photo—thus altering their user nullifier—they can still be linked to their historical interactions by recalculating the identity nullifier using readily available personal information.</p><pre data-type="codeBlock" text="identityNullifier=Hash(last4,name,DOB,gender,pin code)
"><code><span class="hljs-attr">identityNullifier</span>=Hash(last4,name,DOB,gender,pin code)
</code></pre></li></ul><p>The dual nullifier system ensures both robust identity verification and the flexibility to accommodate changes in user data, maintaining a seamless user experience while safeguarding against identity collisions and enhancing privacy and security.</p></li><li><p><strong>Timestamp Check</strong>: our circuit extracts the IST signature timestamp, captured at the moment the QR code is signed, and convert it to UNIX UTC timestamp. This serves as a real-time indicator of document issuance and user access to their UIDAI portal, functioning akin to a Time-based One-Time Password (TOTP) system. It ensures document freshness and validates recent user interaction, requiring proofs to be signed within a specified timeframe (e.g., less than 1 hour ago) for verification purposes.</p></li><li><p><strong>Signal Signing</strong>: this functionality empowers both applications and users to securely sign any data during the proof generation process, a critical component for implementing ERC-4337 standards. It facilitates the creation of Aadhaar-linked transaction hash signatures, offering a robust mechanism to deter front-running in on-chain transactions by anchoring the <em>msg.sender</em> identity within smart contract interactions. This advancement paves the way for the development of Account Abstraction Wallets, enabling users to authenticate and execute transactions directly with their identity, streamlining the user experience while enhancing security.</p></li><li><p><strong>Improved On-chain Verification Gas Cost</strong>: outputting the issuer&apos;s public key hash from the circuit allows us to store this value in the AnonAadhaar smart contract, reducing on-chain verification costs.</p></li></ol><p><strong>Looking Forward</strong></p><p>We are incredibly excited to see what developers will build using Anon Aadhaar v1! And invite you to join the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/anon_aadhaar">Anon Aadhaar Community</a> to continue the conversation. To support and inspire your innovative projects, we prepared a variety of resources for you to try:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anon-aadhaar/anon-aadhaar"><strong>GitHub Repository</strong></a>: dive into the codebase and explore the inner workings of our protocol.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anon-aadhaar/anon-aadhaar/discussions/155"><strong>Project ideas to Build with Anon Aadhaar:</strong></a> looking for inspiration? Here are some ideas we’ve compiled.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anon-aadhaar/boilerplate"><strong>On-chain voting Example App</strong></a>: get hands-on with a practical implementation to see how Anon Aadhaar can be integrated into real-world applications.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/anon-aadhaar/quick-setup"><strong>Quick Setup Repository</strong></a>: for those eager to get started, this repository provides a streamlined Nextjs setup process.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://anon-aadhaar-documentation.vercel.app/"><strong>Documentation</strong></a>: comprehensive and detailed, our documentation covers everything from basic setup to advanced features, ensuring you have the information needed at your fingertips.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/privacy-scaling-explorations/bandada/discussions/350"><strong>Roadmap</strong></a>: get an idea about how we’re thinking of evolving the protocol.</p></li></ul><p>We&apos;re eager to witness the creative and impactful ways in which the developer community will utilize Anon Aadhaar, pushing the boundaries of privacy and security in digital identity verification. Happy coding!</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/0a9b18abe8adb59058379388cbccbdadc0b1ddf68cdffda8361dd5f83924d819.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Zero to Start: Applied Fully Homomorphic Encryption (FHE) Part 2]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/zero-to-start-applied-fully-homomorphic-encryption-fhe-part-2</link>
            <guid>6mCuq4fZxqu4JQXKrIOV</guid>
            <pubDate>Wed, 20 Dec 2023 21:27:20 GMT</pubDate>
            <description><![CDATA[Part 2: Fundamental Concepts, FHE Development, Applied FHE, Challenges and Open Problems, FHE Resources.This post was written by 0xZoey. Special thanks to Janmajaya, Enrico, and Owen who generously gave their time and expertise to review this piece. Your valuable contributions and feedback have greatly enhanced the quality and depth of this work. This is an extension of Part 1: An Introduction to FHE, ZKPs & MPC, and The State of FHE Development.Fundamental ConceptsThreshold FHEThreshold cryp...]]></description>
            <content:encoded><![CDATA[<h1 id="h-part-2-fundamental-concepts-fhe-development-applied-fhe-challenges-and-open-problems-fhe-resources" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Part 2: Fundamental Concepts, FHE Development, Applied FHE, Challenges and Open Problems, FHE Resources.</strong></h1><p>This post was written by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/0xZoey">0xZoey</a>. Special thanks to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/Janmajaya_mall">Janmajaya</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/backaes?lang=en">Enrico</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/omurovec">Owen</a> who generously gave their time and expertise to review this piece. Your valuable contributions and feedback have greatly enhanced the quality and depth of this work.</p><p>This is an extension of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/D8UHFW1t48x2liWb5wuP6LDdCRbgUH_8vOFvA0tNDJA">Part 1: An Introduction to FHE, ZKPs &amp; MPC, and The State of FHE Development</a>.</p><h2 id="h-fundamental-concepts" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Fundamental Concepts</strong></h2><h3 id="h-threshold-fhe" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Threshold FHE</strong></h3><p>Threshold cryptography involves splitting a single cryptographic key into “shares” across multiple parties. You may already be familiar with Threshold Signatures Schemes (TSS), which are most commonly used in MPC wallets. The required threshold of parties to collaborate to gain access to the private key is usually predefined. This is different from a multi-sig scenario where multiple “whole” keys are used.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e8c815495e7167e30b58f948dae108456c87d0b48f701b3c4e2b228be3f81d3f.png" alt="Threshold Cryptography vs Multi-Sig" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Threshold Cryptography vs Multi-Sig</figcaption></figure><p>In <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2017/257">Threshold FHE</a>, the concept acts similarly to TSS, but key shares are extended to the decryption process, requiring multiple entities to cooperate to decrypt data. This reinforces security by distributing decryption authority.</p><p>In the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/1119.pdf">PESCA</a> blueprint and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zama-ai/fhevm/blob/main/fhevm-whitepaper.pdf">Zama</a>’s implementation, an example of threshold FHE  is used to compute over encrypted blockchain states.  The transparent and public nature of blockchain data means that to maintain privacy, we need to be able to decrypt states and allow smart contracts to be composable selectively. The private key shares are distributed to validators, and a certain threshold of private keys is required for decryption. No single validator or group smaller than the threshold is able to decrypt the blockchain state. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/channels/901152454077452399/1126507772524113930/1156317837850329098">Note</a> that the threshold only applies to privacy and the risk is on confidentiality, not on actual assets.</p><p>Dynamic Proactive Secret Sharing could theoretically be used to support a consensus set where validator nodes are joining and leaving. There are some caveats to a Threshold FHE setup that requires an honest majority, which we discuss further in the challenges section.</p><h3 id="h-fhe-and-mpc" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>FHE &amp; MPC</strong></h3><p>With Threshold-FHE, trust is placed with a group of private key holders; in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://link.springer.com/article/10.1007/s10623-022-01160-x">FHE-MPC,</a> trust assumptions are minimized to each individual party. A simple example between 2 parties:</p><ul><li><p>The first party encrypts their input to create a ciphertext</p></li><li><p>The ciphertext is passed to the second party</p></li><li><p>The second party performs a function using FHE on the ciphertext and their own input, producing a second ciphertext.</p></li><li><p>The second ciphertext is returned to the first person who performs the decryption.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bb05d21f95c9f719f0e8c0a8bbef27c47fd55ee071c39cddd66c72b369fa92cf.png" alt="FHE-MPC" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">FHE-MPC</figcaption></figure><p>MPC and FHE can be combined in several ways:</p><ul><li><p>Multi-Key FHE-based MPC: Multiple FHE key pairs are combined to perform MPC</p></li><li><p>Multi-Party FHE-based MPC: Key generation is distributed, and Decryption is also distributed.</p></li></ul><p>The <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/981.pdf">takeaway</a> here is the combination of the two technologies allow the key properties of MPC to be combined with FHE. However, managing FHE ciphertext size with the communication complexity between parties in MPC is an important consideration.</p><h3 id="h-lattice-based-cryptography" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Lattice-based cryptography</strong></h3><p>Lattice-based cryptography provides the mathematical framework that underpins every FHE scheme. It is also used in the three post-quantum computing (PQC) standardization digital signature schemes<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://csrc.nist.gov/news/2023/additional-pqc-digital-signature-candidates"> selected by NIST</a>, CRYSTALS-Dilithium, FALCON, and SPHINCS+. The security of lattice-based cryptography comes from the inherent difficulty of solving lattice problems.</p><p>Think of<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=K026C5YaB3A"> lattice-based cryptography</a> as two vectors forming a pattern over a grid. As we add more vectors across multiple dimensions, this pattern becomes increasingly complex.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/014490e5762436a421227d4f7ebdebf4a8c925459e693f59c77888e1c46f40a4.png" alt="Lattice-Based Cryptography" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Lattice-Based Cryptography</figcaption></figure><p>Finding the shortest vector to the point of origin of the very first vector becomes extremely difficult, almost impossible. This is known as the Shortest Vector Problem (SVP).</p><h3 id="h-learning-with-errors-lwe-and-ring-lwe" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Learning With Errors (LWE) &amp; Ring-LWE</strong></h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=K026C5YaB3A">Learning With Errors</a> (LWE) is a hard math problem based on the approximate Shortest Vector Problem (SVP). Similar to lattice problems, its hardness makes it a good candidate for use in PQC cryptography.  Ring-LWE is a progression of LWE based on the SVP over ideal lattices. It is significant for FHE because the second generation of FHE schemes utilise LWE and RLWE to reduce ciphertext size and reduce noise, thus increasing performance.</p><h3 id="h-managing-noise" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Managing Noise</strong></h3><p>In FHE, noise refers to the distortion or error accumulating during homomorphic operations on encrypted data. Noise arises due to the mathematical properties of the homomorphic encryption and scale with the operations performed on encrypted values.</p><p>The<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf?ref=blog.sunscreen.tech"> diagram</a> below represents fresh encryption, where each component can be expressed as a coefficient in a polynomial or a vector. The height of the element represents the size of the coefficients. Note that in the first step, the initial noise is small.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/95b31e96136dac9d6e56cdea2f1dad3106d9b6f6b5299aa0a1eda36cebcfa9cf.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>As the number of computations (operations) increases, we see a corresponding growth in noise. The growth in noise can be described as exponential, polynomial, linear, constant, or logarithmic.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6cd0bbce53652c0c5d8ff4618749f5df190580fffb619c5f957f1afda4807c2f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>When working with FHE, the primary goal is to manage the noise reservoir. When there is an excessive number of operations, we experience noise overflow, at which point decryption becomes impossible.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8d2d93f1c00092e9466cee580bb0b899aacfefba18fbdd868ea75691ae9eff41.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Noise management techniques in FHE aim to control or reduce the noise level to maintain the correctness of computations. The main types of noise management include</p><ul><li><p><strong>Bootstrapping</strong>: this maintains the correctness of computations on encrypted data by reducing the impact of accumulated noise.</p></li><li><p><strong>Modulous Switching</strong>: lightweight noise management without secret-key use, rescaling ciphertexts. It is most effective when applied after each homomorphic multiplication.</p></li><li><p><strong>Batching:</strong> increasing efficiency by packing multiple plaintexts into the same ciphertext so FHE can be conducted on multiple inputs</p></li></ul><h3 id="h-bootstrapping" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Bootstrapping</strong></h3><p>Bootstrapping is the key technique used to manage noise overflow. When bootstrapping, the initial private key is encrypted as the bootstrapping key, allowing you to use it in a decryption circuit. This is secure as long as one assumes circular security.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f9afab742c4b1d73487e736140d04f99a27b881ec61b8daa356cca655dc1e8bb.png" alt="Bootstrapping" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Bootstrapping</figcaption></figure><p>The ciphertext is re-encrypted recursively, and the noise level is reset to the same level created by the bootstrapping operation itself.  Think of each recursive encryption as layers of wrapping over the original ciphertext, giving you a ciphertext of a ciphertext.</p><p>Using our layers example, each &quot;inner layer&quot; is homomorphically decrypted. As long as your noise reservoir allows room to do one more homomorphic operation (addition or multiplication), you can achieve FHE by running bootstrapping.</p><h3 id="h-relinerization" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Relinerization</strong></h3><p>Relinerization is a technique to transform quadratic equations into linear ones, effectively shortening ciphertext size. It is the key to fine-tuning FHE performance independent of bootstrapping and is particularly useful for homomorphic multiplication, where the cost of computation linearly increases with input size. Despite being computationally heavy, it can reduce computation costs and storage burdens.</p><h2 id="h-fhe-schemes" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>FHE Schemes</strong></h2><p>The development of FHE<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://queue.acm.org/detail.cfm?id=3561800"> schemes</a> in the last decade has been rapid, with TFHE and BGV being the most popular blockchain applications. We focus on three main schemes in this article, but<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/jonaschn/awesome-he"> many</a> others exist. Like any programming language, each comes with its unique properties suited for various use cases.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c9c66f170119db8a23cda4df8705908a72f95df992ce1199ff99f9c435941cfd.png" alt="Generations of FHE Schemes" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Generations of FHE Schemes</figcaption></figure><h3 id="h-bgv-and-bfv" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>BGV &amp; BFV</strong></h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://queue.acm.org/detail.cfm?id=3561800">Second-generation</a> FHE schemes<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2011/277.pdf"> BGV</a> (2011) drastically improved performance and allowed for weaker security assumptions. With BGV, the concept of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=K026C5YaB3A&amp;t=28s"> Learning With Errors</a> (LWE) was introduced, reducing the 30 minutes per bit operation performance time down to seconds. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2012/144.pdf">BFV</a> (2012) was published very shortly after BGV, where instead of using linear equations with LWE, polynomial rings over finite fields, Ring-LWE, is used.</p><p>BGV and BFV&apos;s computations use modular arithmetic circuits and work well with applications that require large vectors of small integers. These schemes are particularly useful for private information retrieval and database query applications.</p><h3 id="h-tfhe" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>TFHE</strong></h3><p>Fully Homomorphic Encryption over the Torus (TFHE)(2016) is an improved version of<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://link.springer.com/chapter/10.1007/978-3-662-46800-5_24"> FHEW</a> (2014). It was the first scheme to<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.tfhe.com/evolution-of-homomorphic-encryption-schemes"> realize programable bootstrapping</a> using a lookup table over a ciphertext with a managed level of noise. It drastically<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://link.springer.com/epdf/10.1007/978-3-662-53887-6_1?sharing_token=YsC3Hu6iPFp104kZQ6tZgPe4RwlQNchNByi7wbcMAY5bBAyAdgprN5xaaLEWgAqi3OyJt9tYY67Qr-JCwidvui2AFZZY23Iilns5cEmIIZMMdU8UUbfVmV_DCtPpkTVuaYBGgF2rZ79A9GuOu_QQi5L1eWufxVcTMf8_0-DEecE%3D"> improved</a> comparison and bootstrapping speeds, reducing times from seconds to milliseconds. TFHE&apos;s original implementation only allowed for Boolean circuits, but newer implementations like TFHErs are capable of bootstrapping over integers. It is most suitable for general-purpose computation.</p><h3 id="h-ckks" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>CKKS</strong></h3><p>CKKS (2016) is most appropriate for applications working with real numbers, such as practical machine learning problems, regression training, neural network inference, and statistical computations. CKKS<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dualitytech.com/blog/bootstrapping-in-fully-homomorphic-encryption-fhe/"> deals with</a> approximate arithmetic and so is not compatible with web3 applications where precise financial data is required. However, we list it here as a particularly efficient scheme and has proven to be a significant advancement in the last few years.</p><h2 id="h-scheme-comparisons" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Scheme Comparisons</strong></h2><p>Here is a high-level<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=VJZSGM4DdZ0"> comparison</a> of the three most relevant FHE schemes:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/77e4769c1b8a8be25df95a4137ae776e472ee737b2bbe3b46c7f292370965450.png" alt="FHE Scheme Comparisons" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">FHE Scheme Comparisons</figcaption></figure><h2 id="h-step-by-step-development" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Step-by-Step Development</strong></h2><p>Now that we have foundational concepts down, we dive into some practical considerations for building with FHE. Development can be broken down into the following<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf?ref=blog.sunscreen.tech"> steps</a>:</p><ul><li><p>Pick a FHE scheme appropriate for your use case</p><ul><li><p>BFV or TFHE most appropriate for web3 development at the moment</p></li></ul></li><li><p>Determine how data should be encoded</p><ul><li><p>Will batching be used?</p></li><li><p>Will you use one ciphertext per integer, vector, or matrix?</p></li><li><p>Aim to reduce ciphertext/plaintext size ratio</p></li></ul></li><li><p>Pick scheme parameters</p><ul><li><p>Some compilers do this automatically</p></li><li><p>What kinds of computation are you looking to do?</p><ul><li><p>What, if any,  limitations do you have on ciphertext and key sizes?</p></li><li><p>What level of performance are you looking to attain?</p></li><li><p>Is relinerization required?</p></li></ul></li></ul></li><li><p>Prove information about your encrypted data (may include ZKP element)</p><ul><li><p>Prove that the inputs are valid ie. the transaction amount</p></li><li><p>Prove that the data satisfies the condition i.e. check that the transacted amount is smaller than the balance in the account</p></li></ul></li></ul><h1 id="h-applied-fhe" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Applied FHE</strong></h1><p>So far, we have discussed FHE theoretically as a general concept in cryptography. Applied implementations of FHE can be categorized as relevant to the web3 stack as follows:</p><ul><li><p>FHE Applications: Implementations of FHE that are compatible with existing blockchains and smart contracts</p></li><li><p>FHE Infrastructure: Implementations of FHE that relate to data availability, scaling, block building, or consensus mechanisms</p></li></ul><p>We outline a few examples of FHE Applications here; despite their diversity, they share common elements. In each scenario, we:</p><ol><li><p><strong>Encrypt data</strong>: presented as an encrypted integer (i.e., euint8), which serves as a wrapper over FHE ciphertext.</p></li><li><p><strong>Perform an Operation</strong>: computation is run on the encrypted data using FHE (i.e, add, sum, diff)</p></li><li><p><strong>Apply the Condition</strong>: the result of the operation is used to take some action. This is achieved by using an “If…else…” multiplexer operator (i.e.,<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zama.ai/fhevm/writing-contracts/functions#multiplexer-operator-cmux"> cmux</a>, where three inputs return one output). Think of this like a railroad switch where two tracks converge to a single destination.</p></li></ol><h3 id="h-confidential-erc20-tokens" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Confidential ERC20 Tokens</strong></h3><p>In this implementation of a<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zama.ai/post/confidential-erc-20-tokens-using-homomorphic-encryption"> confidential ERC20</a> token contract by Zama, FHE is used to check that the wallet viewing the balance also owns the balance, effectively keeping the balance hidden from everyone else.</p><ol><li><p>During a token transfer, the amount sent is encrypted.</p></li><li><p>The sender user balance is checked to make sure that it is greater than the transfer amount to prevent overspending using FHE.</p></li><li><p>The transfer is then executed on-chain, deducting the sender&apos;s balance and adding it to the recipient&apos;s balance.</p></li></ol><p>Additional measures are also taken with token minting to prevent information about balances from leaking. In a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.fhenix.io/examples/reference-dapps/wrapped-erc20">different implementation</a> by Fhenix, a wrapped ERC20 keeps balances and amounts confidential, but the sender and receiver remain public. Note that these implementations are used as an extension of the existing ERC20 standard and not a replacement.</p><h3 id="h-order-matching" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Order matching</strong></h3><p>In a privacy-preserving<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.ifaamas.org/Proceedings/aamas2020/pdfs/p1747.pdf"> dark pool</a>:</p><ol><li><p>Traders can send their buy and sell orders encrypted to an exchange.</p></li><li><p>The exchange uses FHE to find a match in the order book without knowing the order type, amount, or price.</p></li><li><p>Once a match is found, the order is executed on the public market.</p></li></ol><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/06e1a05335aa6ddddd0cfb64103862fd69b8025b9948ef622fb2c53f250df67a.png" alt="Dark Pools: Order Matching using FHE" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Dark Pools: Order Matching using FHE</figcaption></figure><p>In this use case, traders can place orders without &quot;alerting&quot; the open market of their intentions, potentially giving away high-value alpha. Exchange operators remain neutral and establish trust, as their role here is purely used in order matching and execution. Regulatory authorities can ensure compliance with an additional layer, mitigating conflicts of interest between traders and operators. For an<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/omurovec/fhe-darkpools/blob/master/src/DarkPool.sol"> on-chain darkpool</a>, trades can be encrypted to prevent MEV. Zama has an FHE implementation of a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zama.ai/post/dark-market-tfhe-rs">dark market</a>, and Sunscreen provides an AMM example <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.sunscreen.tech/fhe/fhe_programs/example.html">here</a>. Note that most of these are partial implementations, and privacy leaks exist.</p><h3 id="h-private-voting" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Private Voting</strong></h3><p>Tokens or NFT owners can anonymously vote on proposals for DAO governance. Details such as token circulation amount, voting decisions, and delegation selection can be kept confidential with FHE.</p><p>In this specific delegation<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zama.ai/post/confidential-dao-voting-using-homomorphic-encryption"> example</a>, an existing Compound contract is used:</p><ol><li><p>The COMP token contract, including token balances, is first encrypted.</p></li><li><p>Any changes in vote delegation are subsequently run over the encrypted token contract using FHE.</p></li><li><p>The number of votes per delegate is then stored for each specific block.</p></li></ol><p>The Governor contract subsequently manages proposals and votes:</p><ol><li><p>Each delegate&apos;s &quot;for&quot; or &quot;against&quot; vote is encrypted.</p></li><li><p>The vote tally is made over encrypted votes with FHE.</p></li><li><p>The vote is cast for the respective proposal.</p></li></ol><h3 id="h-blind-auctions" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Blind Auctions</strong></h3><p>In previous blind auctions with ZKP implementations, bid data and compute is off-chain, requiring the trust of a third-party entity for proof creation. FHE allows<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zama.ai/post/on-chain-blind-auctions-using-homomorphic-encryption"> blind auctions</a> to run entirely on-chain, allowing parties to submit an encrypted private bid.  In the bidding process:</p><ol><li><p>The bid amount by each user is kept encrypted.</p></li><li><p>FHE is used to check if a previous bid has been made and determines the highest bid from all bidders.</p></li><li><p>The contract returns the auction object to the winner and returns losing bids back to other auction participants.</p></li></ol><h3 id="h-other-novel-applications" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Other Novel Applications</strong></h3><p>Some other fhEVM novel use cases are being explored by the community<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://fhevm-explorers.notion.site/fhevm-explorers/fhEVM-Novel-Use-Cases-c1e637b0ca5740afa7fe598407b7266f"> here</a>; they include:</p><ul><li><p>Private Surveys: Survey answers are encrypted, and FHE is used to run analytics on the results whilst keeping participants and their answers anonymized</p></li><li><p>DIDs: NFTs could contain encrypted metadata; FHE is run on the private metadata to enable entry into gated communities or authentication for access</p></li><li><p>Gaming: Poker, battleship, rock paper scissors - game results are calculated with FHE from encrypted play submissions.</p></li></ul><h1 id="h-challenges-and-open-problems" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Challenges and Open Problems</strong></h1><p>The open problems for FHE fall into three categories: usability, composability, and performance. Expanding the scope of feasible computations remains a challenge, and different schemes excel in different areas, but generally, there needs to be more standardization between schemes. Performance issues predominantly revolve around data efficiency due to large ciphertext and bootstrapping key sizes. Note that most challenges are often scheme-specific; we only discuss them at a high level for simplicity.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f60cfa92a2ccda2e7c2814e66d15ecb8c75bf3d1798fc2d274445f3eafb1afab.png" alt="Applied FHE Challenges" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Applied FHE Challenges</figcaption></figure><h2 id="h-transciphering-hybrid-homomorphic-encryption" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Transciphering/ Hybrid Homomorphic Encryption</strong></h2><p>The large size of ciphertexts is one of the greatest barriers to practical implementation due to its associated computation time and bandwidth usage. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/1531.pdf">Transciphering</a>, or Hybrid Homomorphic Encryption, is a method of carrying out compression encryption within the FHE setup. Data is first compacted with a scheme like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a> before creating a ciphertext, which FHE is then run on. There are several <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/980.pdf">methods of transciphering</a> being explored at the moment that are compatible with TFHE schemes.</p><h2 id="h-hardware-acceleration" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Hardware Acceleration</strong></h2><p>Whilst bootstrapping reduces ciphertext noise to make FHE practically possible, it still requires a large amount of computation and time. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dualitytech.com/blog/hardware-acceleration-of-fully-homomorphic-encryption-making-privacy-preserving-machine-learning-practical/">Hardware acceleration</a> allows for computing tasks to be offloaded to specialized hardware components. At the moment, there are several teams working on ASICs for TFHE; the speedup with the use of more efficient hardware is likely to hit 1000x by 2025.</p><h2 id="h-developer-tooling" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Developer Tooling</strong></h2><p>Reducing the complexity of FHE for developers is crucial. Creating user-friendly libraries, tools, and APIs that abstract the cryptography-heavy aspects of FHE while offering easy integration into existing development frameworks can encourage wider adoption. At the moment, there is a lack of standardization when it comes to APIs, schemes, and compilers. Improving <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf?ref=blog.sunscreen.tech">library interoperability</a> and higher-level automation for developers will make FHE more usable.</p><h2 id="h-fhe-compilers" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>FHE Compilers</strong></h2><p>A compiler is a piece of software that converts source code to binary code in one go. Think of it as a translator for human readable languages (programming languages) to machine-readable languages (binary code). The majority of FHE compilers that exist at the moment add a significant amount of time to computation. The most efficient compiler at the time of writing (Sunscreen) has 1.3x overhead when compared to a low-level FHE library.</p><p>One of the barriers to wider FHE adoption is the need for developer-friendly compilers. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.sunscreen.tech/from-toy-programs-to-real-life-building-an-fhe-compiler/">Sunscreen</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zama.ai/concrete/">Zama</a> are actively building compilers that increase the usability of FHE by automating parameters and key selection. At the moment, both compilers currently only support single-key FHE schemes and are standalone. The compatibility of the two is being worked on so that ZKPs can be used to prove information with FHE ciphertexts.</p><h2 id="h-fhe-for-blockchain" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>FHE for Blockchain</strong></h2><h3 id="h-performance" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Performance</h3><p>Improving the performance of FHE schemes is essential for responsive Web3 applications. As blockchains are limited by block size, we need to find a way to maximize throughput without sacrificing block space. When it comes to user experience, both cost and latency need to be managed to usable levels. Reducing ciphertext size will be key here.</p><h3 id="h-gas-cost" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Gas Cost</strong></h3><p>Gas cost estimations are possible on the blockchain because transaction data is public. In the case of FHE, smart contract execution flow logic will differ depending on the outcome of computation (which may be hidden), making it difficult to accurately estimate gas costs. However, there are currently some <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zama-ai/fhevm/blob/main/fhevm-whitepaper.pdf">proposed ways</a> to navigate this, and more accurate techniques will need to be developed to create a desirable user experience.</p><h3 id="h-trust-assumptions" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Trust assumptions</strong></h3><p>The implementation of Threshold FHE for encrypted states on a private blockchain utilizes the security assumptions of a network of decentralized validators. In order to perform the decryption, only 2/3rds of the validators or the number predetermined in the Threshold-FHE setup is required.  Unlike a public blockchain, any form of collusion would be <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/cd7YCyEqQh-n_LJ0kArtQw">undetectable</a>; malicious activity would, therefore, leave no verifiable trace. Some would argue that a setup requiring stronger trust assumptions, like FHE-MPC, is more prudent.  Decryption nodes and validator notes could also be potentially <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/channels/901152454077452399/1126507772524113930/1153599900244791397">separate entities</a>, varying the trust assumptions and threshold of the two operations.</p><h3 id="h-privacy-leaks" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Privacy Leaks</strong></h3><p>The simple act of the client sending a command to the server running the fhEVM may already disclose more information than the user is willing to. Similarly, any wallet that interacts with a smart contract to run the FHE application like voting will disclose, at a minimum they have voted. On the transaction level, we may be able to hide specific balances or amounts, but external parties may be able to deduce details from the macro state. Creating a cohesive system that prevents critical data leakage is a challenge, one which the composability of FHE, ZKPs and MPC might help to solve.</p><h1 id="h-conclusion" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Conclusion</strong></h1><p>FHE opens up new frontiers in secure computation, realizing its full potential demands overcoming challenges such as usability, performance, and integration with other cryptographic primitives. While practical applications of FHE across domains are just emerging, its integration into decentralized systems remains an ongoing narrative.  The technology&apos;s potential to reshape data privacy is vast, promising a future where we default to privacy-centric systems.</p><p>The road ahead involves deeper dives into advanced concepts and integration strategies like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.mdpi.com/2227-7390/10/5/728">Ring-LWE</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/emilianobonassi/zkFHE">ZK</a>-<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/enricobottazzi/zk-fhe">FHE</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.fhenix.io/wp-content/uploads/2023/11/FHE_Rollups_Whitepaper.pdf">FHE Rollups</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/981.pdf">FHE-MPC</a>, and Latticed-based <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/284">ZKP</a>s.</p><h1 id="h-fhe-resources" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>FHE Resources</strong></h1><p>Craig Gentry: A Fully Homomorphic Encryption Scheme<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cdn.sanity.io/files/r000fwn3/production/5496636b7474ef68f79248de4a63dd879db55334.pdf"> https://cdn.sanity.io/files/r000fwn3/production/5496636b7474ef68f79248de4a63dd879db55334.pdf</a></p><p>Slides: CSS_HE tutorial slides<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf?ref=blog.sunscreen.tech"> https://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf?ref=blog.sunscreen.tech</a></p><p>Slides: Computing Arbitrary Functions of Encrypted Data<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://crypto.stanford.edu/craig/easy-fhe.pdf"> https://crypto.stanford.edu/craig/easy-fhe.pdf</a></p><p>Fhenix: FHE Rollups</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.fhenix.io/fhe-rollups-scaling-confidential-smart-contracts-on-ethereum-and-beyond-whitepaper/"><strong>FHE-Rollups: Scaling Confidential Smart Contracts on Ethereum and Beyond – whitepaper</strong></a></p><p>fhEVM Whitepaper:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/zama-ai/fhevm/blob/main/fhevm-whitepaper.pdf"><strong>fhevm/fhevm-whitepaper.pdf at main · zama-ai/fhevm</strong></a></p><p>fhEVM Novel Use cases:<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://fhevm-explorers.notion.site/fhevm-explorers/fhEVM-Novel-Use-Cases-c1e637b0ca5740afa7fe598407b7266f"> https://fhevm-explorers.notion.site/fhevm-explorers/fhEVM-Novel-Use-Cases-c1e637b0ca5740afa7fe598407b7266f</a></p><p>FHE-MPC Advanced Grad Course</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://homes.esat.kuleuven.be/~nsmart/FHE-MPC/"><strong>homes.esat.kuleuven.be</strong></a></p><p>Fully Composable Homomorphic Encryption</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cseweb.ucsd.edu/classes/fa23/cse208-a/cfhe-draft.pdf"><strong>cseweb.ucsd.edu</strong></a></p><p>Video: FHE and MPC by Shruthi Gorantala<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=Q3glyMsaWIE"> https://www.youtube.com/watch?v=Q3glyMsaWIE</a></p><p>Github: FHE awesome list</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/jonaschn/awesome-he"><strong>GitHub - jonaschn/awesome-he: ✨ Awesome - A curated list of amazing Homomorphic Encryption libraries, software and resources</strong></a></p><p>Pesca: A Privacy Enhancing Smart Contract Architecture</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/1119.pdf"><strong>eprint.iacr.org</strong></a></p><p>Slides: MPC from Theory to Practice, Nigel Smart</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://crypto.stanford.edu/RealWorldCrypto/slides/smart.pdf"><strong>crypto.stanford.edu</strong></a></p><p>Video: Prog Crypto</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://app.streameth.org/devconnect/progcrypto/archive"><strong>PROGCRYPTO - Archive</strong></a></p><p>Sunscreen:</p><p>An Intro to FHE:<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.sunscreen.tech/an-intro-to-fully-homomorphic-encryption-for-engineers/"> https://blog.sunscreen.tech/an-intro-to-fully-homomorphic-encryption-for-engineers/</a></p><p>Building Private Dapps:<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=_AiEmS8ojvU">https://www.youtube.com/watch?v=_AiEmS8ojvU</a></p><p>Documentation:<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.sunscreen.tech/"> https://docs.sunscreen.tech/</a></p><p>ZK9 Building an FHE Compiler:<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=VJZSGM4DdZ0"> https://www.youtube.com/watch?v=VJZSGM4DdZ0</a></p><p>ZK Podcast: Episode 295 The Return to MPC with Nigel Smart</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://open.spotify.com/episode/4zfrPFbPWZvn6fXwrrEa5f?si=9ab56d47510f4da0"><strong>Episode 295: Return to MPC with Nigel Smart</strong></a></p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/0a47ecbed85450fe1abb218a09b064031f5dce3206ebd2c72ab99deac8baa122.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Zero to Start: Applied Fully Homomorphic Encryption (FHE) Part 1]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/zero-to-start-applied-fully-homomorphic-encryption-fhe-part-1</link>
            <guid>ZOzHgB7qYdWq95vpMyjV</guid>
            <pubDate>Wed, 20 Dec 2023 21:26:22 GMT</pubDate>
            <description><![CDATA[Part 1: An Introduction to FHE, ZKPs & MPC, and The State of FHE Development TodayThis post was written by 0xZoey. Special thanks to Janmajaya, Enrico, and Owen who generously gave their time and expertise to review this piece. Your valuable contributions and feedback have greatly enhanced the quality and depth of this work. Find Part 2: Fundamental Concepts, FHE Development, Applied FHE, Challenges and Open Problems here…What is FHE?Present privacy technology ensures secure communication and...]]></description>
            <content:encoded><![CDATA[<h1 id="h-part-1-an-introduction-to-fhe-zkps-and-mpc-and-the-state-of-fhe-development-today" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Part 1: An Introduction to FHE, ZKPs &amp; MPC, and The State of FHE Development Today</strong></h1><p>This post was written by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/0xZoey">0xZoey</a>. Special thanks to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/Janmajaya_mall">Janmajaya</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/backaes?lang=en">Enrico</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/omurovec">Owen</a> who generously gave their time and expertise to review this piece. Your valuable contributions and feedback have greatly enhanced the quality and depth of this work.</p><p>Find <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/wQZqa9acMdGS7LTXmKX-fR05VHfkgFf9Wrjso7XxDzs">Part 2: Fundamental Concepts, FHE Development, Applied FHE, Challenges and Open Problems</a> here…</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d5e29490f7a4f3776da860ef0d97cd5c4c7b963af71ee7854b850b4f26d1c8d7.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-what-is-fhe" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>What is FHE?</strong></h2><p>Present privacy technology ensures secure communication and storage, encrypting our emails during transit and safeguarding databases in storage. However, accessing data for <strong>processing</strong> requires the data to be first decrypted. What if secure processing could occur without compromising data privacy?</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/55212e286f2a115067e235a200ee68f2da80be41e05cf090e76e67366905c266.png" alt="FHE allows computation over encrypted data" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">FHE allows computation over encrypted data</figcaption></figure><p><strong>Fully Homomorphic Encryption (FHE) is a technology that allows computation over encrypted data, where only the owner of the key can decrypt the result of the computation.</strong></p><p>This article focuses on the current state of FHE, fundamental concepts, applied FHE, and design challenges ahead. It is meant to help users understand the thought framework around applied FHE without requiring the reader to understand complex math or cryptography.</p><p>The idea for FHE was initially proposed in 1978 by Rivest, Adleman, and Dertouzous (the &quot;R&quot; and &quot;A&quot; of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/RSA_(cryptosystem)">RSA</a>). FHE is an extension of public key cryptography; the encryption is &quot;homomorphic&quot; because it works on the principle that for every function performed on unencrypted text (Plaintext), there is an equivalent function for encrypted text (Ciphertext).</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d1d762f85b91a0b6d7002d52fed1d144abb8acdb8a6b6ddc3d2ef878a996854b.png" alt="Homomorphic Encryption" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Homomorphic Encryption</figcaption></figure><p>FHE shares fundamental components with traditional cryptography like encryption, decryption, and key generation. In addition to this, it uniquely enables arithmetic operations such as addition and multiplication on ciphertexts.</p><p>There are generally four categories of homomorphic encryption:</p><ol><li><p><strong>Partially homomorphic</strong>: enables only one type of operation (addition or multiplication). RSA is an example of partially homomorphic encryption only using multiplication and not addition.</p></li><li><p><strong>Somewhat homomorphic</strong>: limited for one operation but unlimited for the other. For example, limited multiplications but unlimited additions.</p></li><li><p><strong>Leveled homomorphic</strong>: limited operations for both addition and multiplication</p></li><li><p><strong>Fully homomorphic</strong>: unlimited operations for both addition and multiplication (and others).</p></li></ol><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/862dcd57f759ec1ee049f8ee6a86da62a35b4753007fd194e0e247b6c823f84d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In the past, the difficulty in achieving FHE  was due to the &quot;noise&quot; that accumulated with every subsequent operation. The excess overflow in noise eventually makes decryption impossible. Craig Gentry proposed the first FHE scheme in 2009, where he solved this problem with a method called bootstrapping. Bootstrapping is used to recursively evaluate the decryption circuit to reduce and manage noise accumulation.</p><h2 id="h-why-is-fhe-important" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Why is FHE important?</strong></h2><p>Fully Homomorphic Encryption (FHE) signifies a groundbreaking shift in privacy, enabling data-centric systems to preserve privacy with minimal data exposure inherently. FHE, built using lattice-based cryptography, also offers the notable advantage of being post-quantum resistant, ensuring robust security against future potential threats from quantum computing.</p><p>Some <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://homomorphicencryption.org/wp-content/uploads/2018/10/CCS-HE-Tutorial-Slides.pdf?ref=blog.sunscreen.tech">general</a> FHE use cases include:</p><ul><li><p>Private inference &amp; training: FHE could be used to protect the privacy of both the model and data  (likely 3-5 years away).</p></li><li><p>Encrypted searches: query an encrypted file and only see the result of your specific query without the entire contents of the database revealed, also known as Private Information Retrieval (PIR).</p></li><li><p>Policy Compliance &amp; Identity Management: Secure identity management by enabling the processing of identity-related data without exposure, allowing organizations to comply with regulators&apos; KYC policies.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/74d11e9a85634b898f34ab8bb34cd4488bb7016eeacb523f6991a36524e2cc9f.png" alt="General FHE Use Cases" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">General FHE Use Cases</figcaption></figure><p>Fully Homomorphic Encryption (FHE) holds immense significance in blockchain technology because it can perform encrypted data computations within a trustless environment. We won&apos;t dive into the importance of privacy on the blockchain and how off-chain ZKPs are not the complete solution, but Wei Dai&apos;s article<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://wdai.us/posts/navigating-privacy/"> Navigating Privacy on Public Blockchains</a> is a great primer.</p><p>Here are some theoretical blockchain use cases that FHE could facilitate:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/1119.pdf">Private Transactions</a>: the processing of confidential transactions by smart contracts, allowing private transactions in dark pools, AMMs, blind auctions, and voting.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://collective.flashbots.net/t/frp-10-distributed-blockbuilding-networks-via-secure-knapsack-auctions/1955">MEV</a> (Maximal Extractable Value) Mitigation: FHE could potentially allow proposing blocks and ordering transactions while ensuring Pre-execution, failed execution, and post-execution privacy, offering a potential solution to prevent front-running.</p></li><li><p>Scaling:<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.fhenix.io/fhe-rollups-scaling-confidential-smart-contracts-on-ethereum-and-beyond-whitepaper/"> Leveraging </a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.fhenix.io/wp-content/uploads/2023/11/FHE_Rollups_Whitepaper.pdf">FHE Rollups</a> presents a scalable approach to execute private smart contracts utilizing the security derived from Ethereum for state transitions</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2022/1119.pdf">Private Blockchains</a>: encrypted chain states that are programmatically decrypted via consensus using Threshold FHE.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b1211e6f10af7ba85d459898040f684f173e02cf194dedca34b31b90c49b0c3b.png" alt="FHE: Blockchain Use Cases" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">FHE: Blockchain Use Cases</figcaption></figure><p>The applied use cases for FHE are far-reaching, there are non-trivial technical challenges to overcome, and many are still being explored today. At its core, FHE ensures secure <strong>data processing</strong>, which, combined with other cryptographic primitives, can be incredibly powerful. In our exploration of Applied FHE, we dive deeper into real-world applications and use cases.</p><h1 id="h-zkp-mpc-and-fhe" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>ZKP, MPC, &amp; FHE</strong></h1><p>The terms ZKPs, MPC, and FHE have often been misused and interchanged and have been the source of much confusion. The post,<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/xXcRj5QfvA_qhkiZCVg46Gn9uX8P_Ld-DXlqY51roPY"> Beyond Zero-Knowledge: What&apos;s Next in Programmable Cryptography?</a> provides a succinct overview and comparisons of Zero-Knowledge Proofs (ZKPs), Multi-Party Computation (MPC), Fully Homomorphic Encryption (FHE) and Indistinguishability Obfuscation (iO). All fall under the broader umbrella of programmable cryptography.</p><p>To briefly summarize how the three concepts are connected:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=aDL_KScy6hA&amp;t=571s"><strong>Multi-Party Computation (MPC)</strong></a>: MPC, when described as a <strong><em>general function</em></strong>, is any setup where mutually distrustful parties can individually provide inputs (private to others) to collaboratively compute a public outcome.  MPC can be used as the term used to describe the <strong><em>technology</em></strong> itself, where randomized data shares from each individual are delegated for compute across servers.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e185774ee6c769cec0fb678d3ad0d468029c4009597fd902922eab2a6ae69c48.png" alt="MPC" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">MPC</figcaption></figure><p>To add to the confusion, it is also often used to describe MPC <strong><em>use cases</em></strong>, most notably in the context of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Distributed_key_generation">Distributed Key Generation</a> (DKG) and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://link.springer.com/referenceworkentry/10.1007/0-387-23483-7_429#:~:text=Threshold%20signatures%20are%20digital%20signatures,structure%20of%20a%20threshold%20scheme.">Threshold Signature Schemes</a> (TSS).</p><p>Three leading technologies form the<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://open.spotify.com/episode/4zfrPFbPWZvn6fXwrrEa5f?si=9ab56d47510f4da0"> building blocks</a> of MPC <strong><em>applications</em></strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=La6LkUZ4P_s">Garbled Circuits (GC)</a>, Linear Secret Sharing Schemes (LSSS), and Fully Homomorphic Encryption (FHE). These can be used both conjunctively or exclusively.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ecd163042238a5f9ab9a99e16be10158463898a145baa5c67ca2f546abef365e.png" alt="MPC &amp; ZKPs" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">MPC &amp; ZKPs</figcaption></figure><p><strong>Zero-Knowledge Proofs (ZKPs):</strong> A method that allows a single party (prover) to prove to another party (verifier) knowledge about a piece of data without revealing the data itself. Using both public and private inputs, ZKPs enable the prover to present a true or false output to the verifier.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/16b30506c692c965bae936063275ef4560ab147c301b532cba3bdf6d5e03fc3c.png" alt="ZKPs" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">ZKPs</figcaption></figure><p>In Web 3 applications, the integration of ZKPs alongside FHE becomes crucial for constructing private and secure systems. ZKPs are vital because they can be used to generate proofs of correctly constructed FHE ciphertexts. Otherwise, users can encrypt any unverified gibberish. Hence corrupting the entire FHE circuit evaluation.</p><p>Note the difference in ZKPs, FHE, and MPCs, where the input element of each primitive is distinct when evaluating the exposure of private data.</p><ul><li><p>In ZKPs, private data contained in the input is only <em>visible to the prover</em></p></li><li><p>In MPC, private data contained in each input is only <em>visible to the owner</em></p></li><li><p>In FHE, private data contained in the input is encrypted and is <strong><em>never revealed</em></strong></p></li></ul><p>While MPC is network bound, FHE and ZKPs are compute bound. The three primitives also differ regarding relative computation costs and interactiveness required between parties.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/949f0c2bad5496c7cd858fa365859ae952dbff251379b4e598b450781a8d58e6.png" alt="ZKPs, MPC, FHE, computation costs and interactiveness" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">ZKPs, MPC, FHE, computation costs and interactiveness</figcaption></figure><p>In summary,</p><ul><li><p>ZKPs focus on proving the truth of a statement without revealing the underlying data; it is useful for preserving private states for the prover.</p></li><li><p>MPC enables joint computation; it is useful when users want to keep their state private from others.</p></li><li><p>FHE allows computations on encrypted data without decryption; it is non-interactive and useful for preserving privacy throughout the entire computation process.</p></li></ul><p>FHE is an extension of public key cryptography, not a replacement for ZKPs or MPC. Each can act as an individual building block and serve a distinct cryptographic purpose. An assessment needs to be made on where and which primitive should be applied within different applications.</p><h2 id="h-the-state-of-fhe-today" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>The State of FHE Today</strong></h2><p>Early concepts of FHE developed in the 1970s-90s laid the theoretical groundwork for homomorphic encryption. However, the real breakthrough came with Gentry&apos;s solution for FHE in 2009. The initial construction needed to be faster to be practically applied. Performance at the time was close to 30mins per bit operation and only applicable in a single key setting. Much of the research published following Gentry&apos;s paper has been focused on performance improvements that address these issues through:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2021/315.pdf">refining schemes</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/1788">reducing computation complexity</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/759">faster bootstrapping</a>, and</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2023/618">hardware acceleration</a></p></li></ul><p>FHE is not possible with Ethereum today due to the size of ciphertexts and the cost of computation on-chain. It is estimated with the current rate of hardware acceleration, we may see applications in production by 2025.</p><p>Zama’s implementation of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zama.ai/fhevm/">fhEVM</a> is a fork of Ethereum; they have several <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zama.ai/homepage/">tools</a> available:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zama.ai/tfhe-rs"><strong>TFHE-rs</strong></a>: Pure Rust implementation of TFHE for boolean and small integer arithmetics over encrypted data</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zama.ai/fhevm"><strong>fhEVM</strong></a>: Private smart contracts on the EVM using homomorphic encryption</p></li></ul><p>There are some challenges with ZAMA&apos;s fhEVM approach that are yet to be improved. Networks using ZAMA&apos;s fhEVM are limited to about 2 FHE transactions per second (tps). Compared to Ethereum&apos;s ~15 tps this is not far off; however, it will need to be greatly improved for many time-sensitive applications.</p><p>Additionally, operations on encrypted integers are much more difficult to perform than on plaintext integers. For example, on an Amazon m6i.metal machine (one of Amazon&apos;s top machines costing $2-4k per month to operate):</p><ul><li><p>adding or subtracting two <strong>encrypted</strong> uint8 values takes around 70ms</p></li><li><p>adding <strong>plaintext</strong> uint8 values is essentially free and instant on any modern device</p></li></ul><p>There are also limitations to the size of unsigned integers available in the fhEVM context. Encrypted uint32 values are the largest possible in the fhEVM, while uint256 are the largest in the standard EVM and are used frequently by many protocols on Ethereum. Due to the challenge of operating on encrypted values in the fhEVM it is currently unreasonable to run validators at home, which makes this more suitable for networks with a smaller, more trusted validator set.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.sunscreen.tech/">Sunscreen</a> is another project actively working on FHE; they have a Rust-based FHE compiler using the BFV scheme with a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://playground.sunscreen.tech/">playground</a>. They’ve deployed a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://demo.sunscreen.tech/auctionwithweb3">blind auction</a> proof of concept on SepoliaETH.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.fhenix.io/">Fhenix</a>, a team working on a modular “FHE blockchain extension”, plans on launching their testnet in January 2024. They also recently released their <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.fhenix.io/fhe-rollups-scaling-confidential-smart-contracts-on-ethereum-and-beyond-whitepaper/">whitepaper on FHE-Rollups</a>.</p><p>In the last five years, significant advancements have been made to make FHE more usable. Shruthi Gorantala&apos;s<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://youtu.be/Q3glyMsaWIE?si=TbhlNxGsozbalIHU&amp;t=1278"> framework</a> for thinking about FHE development as a hierarchy of needs is particularly helpful. The performance improvements listed above address deficiency needs and are contained in Layers 1-3 within the FHE tech stack. For FHE to realize its full potential, we also need to address the growth needs listed in Layers 4-5.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7140ec5109cd053a0272c452b52c0c38127fb98d99cef5c5bf35e9d83e18f171.png" alt="FHE Hierarchy of Needs" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">FHE Hierarchy of Needs</figcaption></figure><p>A critical aspect of systems integration is figuring out how to combine FHE technology with other privacy-enhancing primitives like ZKPs and MPC in a way that suits each unique trust model and protocol.</p><p>Continue to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/wQZqa9acMdGS7LTXmKX-fR05VHfkgFf9Wrjso7XxDzs">Part 2: Fundamental Concepts, FHE Development, Applied FHE, Challenges and Open Problems</a>.</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/a75de41e527827be44912bfc14e9325ca2d911d289386e425a9d806848a4c340.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Beyond Zero-Knowledge: What’s Next in Programmable Cryptography?]]></title>
            <link>https://paragraph.com/@privacy-scaling-explorations/beyond-zero-knowledge-what-s-next-in-programmable-cryptography</link>
            <guid>ii14onINPoOHSGMrIXhP</guid>
            <pubDate>Thu, 09 Nov 2023 17:30:59 GMT</pubDate>
            <description><![CDATA[This post was written by kichong with helpful feedback and comments from sinu and jmall. MPC, FHE, iO. If these combinations of letters make little sense to you, then you’re in the right place. This post attempts to review, at a high level, the world of programmable cryptography beyond the borders of zero-knowledge (ZK). The intent is to expose people to the idea that ZK is only one part of a constantly shifting landscape of cryptographic primitives, techniques, and protocols. And what remain...]]></description>
            <content:encoded><![CDATA[<p><em>This post was written by </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/kichongtran"><em>kichong</em></a><em> with helpful feedback and comments from </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/sinu_eth"><em>sinu</em></a><em> and </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/Janmajaya_mall"><em>jmall</em></a><em>.</em></p><p>MPC, FHE, iO. If these combinations of letters make little sense to you, then you’re in the right place. This post attempts to review, at a high level, the world of programmable cryptography beyond the borders of zero-knowledge (ZK).</p><p>The intent is to expose people to the idea that ZK is only one part of a constantly shifting landscape of cryptographic primitives, techniques, and protocols. And what remains is more powerful, more private, and more confusing than the average cryptography-curious person is aware of.</p><p>This post makes no claims, conclusions, or predictions. This is no deep dive. At best, it’s an informal skimming of the surface in the quest for the holy grail of cryptography.</p><h1 id="h-programmable-cryptography" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Programmable cryptography</strong></h1><p>While encryption has been around for thousands of years, programmable cryptography is a modern technology. Described as “<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://archive.devcon.org/archive/watch/6/zkps-and-programmable-cryptography/?tab=YouTube">general-purpose cryptography … [or] an expressive language for claims”</a>, it’s the idea that a cryptographic primitive like a ZK proof could be made flexible and adaptive enough that a developer could program nearly any function on top of it. That there can exist an unbroken chain of logic from someone clicking a button on a website to the mathematical proof that guarantees the security of a cryptographic operation.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ffe818fb227c526c99ff46875abd5eeed42fa3a8f91aac61c49965db5acc5734.png" alt="https://youtu.be/qAfprVCBhdQ?t=1024" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">https://youtu.be/qAfprVCBhdQ?t=1024</figcaption></figure><p>While traditional cryptography relied on fixed sets of functionalities, which required a skilled cryptographer to build a specialized system for every new mechanism, programmable cryptography lets developers deploy cryptographic properties and functionality in a language closer to what they already understand. It gives developers who are not cryptography experts a more familiar interface.</p><p>ZK proofs were first <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://people.csail.mit.edu/silvio/Selected%20Scientific%20Papers/Proof%20Systems/The_Knowledge_Complexity_Of_Interactive_Proof_Systems.pdf">conceived of in 1985</a>. The concept was officially published in 1989, but remained mostly theoretical until 2012 when a type of ZK proof called a<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2011/443.pdf"> zk-SNARK </a>was discovered. This new primitive allowed ZK proofs to prove or authenticate nearly any function or arbitrary computation.</p><p>Since zkSNARKS became possible, resources and talent have poured into building zCash, zkRollups, zkEVMs, and a host of other applications beginning with the letter z. It turned out, decentralized systems like Ethereum, and blockchains in general, were the perfect motivation to get people interested in cryptography, turning a once-impractical research field into an active ecosystem with actual end-user applications.</p><p>There are no guarantees that <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Secure_multi-party_computation">Multi-Party Computation (MPC)</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Homomorphic_encryption">Fully Homomorphic Encryption (FHE)</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Indistinguishability_obfuscation">Indistinguishable Obfuscation (iO)</a> will follow the same path as ZK, becoming more practical, optimized, and general-purpose as time goes on. But at this early stage, it is certainly possible.</p><p>If you think of programmable cryptography as a type of digital computer, built on certain assumptions that allow for certain properties and guarantees, then we are still at the hardware stage. We are still actively figuring out the best way to construct the logical gates or circuits for this new computer.</p><h1 id="h-relatively-intuitive-comparisons" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Relatively intuitive comparisons</strong></h1><p>To better understand the general landscape of programmable cryptography, let’s start by very roughly approximating where MPC, FHE, and IO stand in relation to ZK, and each other. In this section, and really all the sections that come after, we will trade-off nuance, precision, and formality in favor of simplicity and accessibility.</p><p>The simplest way to reason about cryptography is what information is kept hidden or secret. And what the system proves or reveals.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/709d71dabf0a94e2880cb06d3e63451a154184dacc59e30dba38e44777cea8b3.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>You can also think of each of these systems as standing in for an imaginary mutual friend. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Secure_multi-party_computation#Definition_and_overview">Wikipedia calls this friend “Tony”.</a> Tony is infallible, incorruptible, and totally trustworthy. Tony’s job is to keep secrets. In the table below, think of the “Private Elements” as what secrets Tony can be trusted to keep, the “Use Cases” as tasks Tony could perform reasonably well, and the “Practicality” as how skillfully Tony could perform these tasks today.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6de76b52e5bd6120d09f9bb57b1539628f58e9e318ee4e90cb8169423189798b.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The tables above are intended to give a rough idea for different areas of programmable cryptography. Now, let’s go a bit deeper and review what MPC, FHE, and iO do along with some interesting tidbits about each field.</p><h1 id="h-multi-party-computation-mpc" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Multi-Party Computation (MPC)</strong></h1><p>Multi-Party Computation (MPC) allows many parties to jointly compute some agreed upon function without revealing any data to the other participants. With MPC, the same computation is applied to everyone&apos;s data, but each party’s input is kept secret. Intermediate values would also stay secret. Only the output is revealed at the end.</p><p>As opposed to ZK, MPC is collaborative. It allows different parties to collaborate on the same computation, each contributing their own data, to get some mutual result everyone wants.</p><p>We can compare ZK and MPC in the context of an AI system to get more context. ZK would be good at authenticating or verifying a piece of data came from a real person or from a person’s phone. MPC is better for training an AI system because different individuals, groups, or organizations could share sensitive data with the AI system but trust that the data won’t be revealed to anyone else.</p><h2 id="h-millionaire-problems" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Millionaire problems</strong></h2><p>MPC was thought of in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://research.cs.wisc.edu/areas/sec/yao1982-ocr.pdf">1982 by Andrew Yao</a> to solve a thought experiment called the “Millionaire’s Problem” where two millionaire’s want to know who is richer without telling each other how much money they have. The solution was to use <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://vitalik.ca/general/2020/03/21/garbled.html">garbled circuits, which according to Vitalik Buterin,</a> frequent explainer of cryptographic concepts, is also one of the most basic ways to wrap your head around MPC.</p><p>[Before learning about a garbled circuit, you need to know what a arithmetic circuit is in general. If you’re new to the idea of circuits, there’s a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/privacy-scaling-explorations.eth/AW854RXMqS3SU8WCA7Yz-LVnTXCOjpwhmwUq30UNi1Q">simple explanation here.</a>]</p><p>MPC is a multi-step, interactive process where millionaire #1 (Alice the Garbler) must first create the circuit, enter her net worth, then transform it into a garbled or encrypted form before passing it along to millionaire #2 (Bob the Evaluator). When Bob gets his hands on the circuit, his job is to add his own net worth, then evaluate or run the circuit to make sure it’s correct. Finally, Bob decrypts the final output and, for example, learns Alice is richer, but never learns that Alice is, in fact, way richer, and he shouldn’t have made assumptions.</p><p>The Millionaire’s Problem and garbled circuits as a solution were crucial to the early development of MPC. But its application was limited. A more complex and nuanced version of the problem, called the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Socialist_millionaire_problem">Socialist Millionaire’s Problem</a>, checked if the two millionaires were equally rich, instead of revealing which one had more money. This subtle difference significantly extended MPC functionality but required more complex cryptographic solutions and techniques beyond the scope of this article.</p><h1 id="h-fully-homomorphic-encryption-fhe" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Fully Homomorphic Encryption (FHE)</strong></h1><p>Fully Homomorphic Encryption (FHE) allows computations on encrypted data. It can perform a function on encrypted data just as if it had remained unencrypted. The output of the function is only decrypted by the party with the secret key. If we think of encryption as a black box that hides secrets, then FHE ensures that the data and the computations on that data remain within that black box.</p><p>Though there are no famous thought experiments like the Millionaire’s Problem for MPC, FHE does solve a fundamental security weakness: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.cryptographyengineering.com/2012/01/02/very-casual-introduction-to-fully/">“the need to decrypt before processing data.”</a></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/477867ec21660b97d996ef20037c690be8485c209a6798ec8aaa5a9657de31eb.png" alt="https://www.zama.ai/post/the-revolution-of-fhe" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">https://www.zama.ai/post/the-revolution-of-fhe</figcaption></figure><p>In an AI context, FHE would keep all the data between the user (secret key holder) and the AI system encrypted. The user interacts with the system as normal, but the user could be confident that the AI never “learned” anything about the data being given. The entire interaction would be encrypted. The AI never learns what you typed or asked, what pictures you sent, or who sent it, but can still respond as if it did know the information.</p><p>If it works, FHE will be one of the most powerful privacy-preserving technologies available. And who knows? <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://youtu.be/ptoKckmRLBw?si=WQDbSStGkqWCx5JM&amp;t=1734">In 10 years, we may even have FHE-EVMs</a>.</p><h2 id="h-noise-management" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Noise management</strong></h2><p>Compared to MPC and ZK, FHE is – at the moment – on the more theoretical or less practical end of the spectrum. The technology was only considered to be feasible in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.cs.cmu.edu/~odonnell/hits09/gentry-homomorphic-encryption.pdf">2009 when Craig Gentry</a> figured out how to deal with noise.</p><p>FHE operations are computationally very intensive because “noise” is added during the encryption process to enhance security. Noise in FHE is a small random value added to the plaintext (unencrypted data) before it is turned into ciphertext (encrypted data). Each operation increases noise.  While addition and subtraction operations cause negligible noise growth, multiplication is more computationally expensive, which results in significant noise growth. So as the complexity of a program increases, noise – the space required to accommodate noise and the computational resources needed to process noise – accumulates.</p><p>Gentry’s breakthrough was a technique called bootstrapping, which could reduce noise and allow for more computation on encrypted data in FHE systems. Bootstrapping takes the ciphertext and decrypts it homomorphically, which means reducing the noise level on an encrypted piece of data without actually revealing what it is. The result is a ciphertext with much lower pre-defined noise, thus allowing us to compute on the ciphertext further. Bootstrapping, in general, allows us to circumvent the need of having higher space for noise growth as complexity of computation increases. We can limit the space to a few operations and repeatedly bootstrap to compute arbitrarily large computations without compromising the original data.</p><p>Depending on the FHE scheme, bootstrapping can either take several minutes or milliseconds. If bootstrapping is slower, the computational cost can be spread out by applying it to several ciphertexts at once. If bootstrapping is faster, it usually comes with the trade-off of only working with small pieces of plaintext (usually 8 bits) at a time to stay efficient.</p><h1 id="h-indistinguishability-obfuscation-io" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Indistinguishability Obfuscation (iO)</strong></h1><p>If FHE turns all the elements of the computation into a black box, then iO turns the computation itself into a black box.</p><p>Indistinguishability Obfuscation (iO) is considered the most powerful cryptographic system within the realm of theoretic possibility. In <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.quantamagazine.org/computer-scientists-achieve-crown-jewel-of-cryptography-20201110/">one article</a>, iO is described as a “master tool from which nearly every other cryptographic protocol could be built” and referred to by cryptography experts as a “crown jewel” and “one cryptographic primitive to rule them all.”</p><p>According to Amit Sahai, the professor known for <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=fOGdb1CTu5c">explaining ZK proofs to kids</a>, and one of the researchers who devised a way <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2020/1003">build iO on well-founded assumptions</a>, iO works on a fundamentally different paradigm than previous cryptographic systems. IO assumes the adversary can already read your mind (a metaphor for your computer). Your secrets are already known so can’t be hidden. The only thing you can do is obfuscate what the adversary can already see.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bd9b70c9635dd3e7ba61a762fc92bb7057b88a50a1bca9c4f4c1f630326a5cf4.png" alt="https://youtu.be/v2RR_c5hn1E" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">https://youtu.be/v2RR_c5hn1E</figcaption></figure><p>The point of iO is to make two functions or computations equally obscure. If you turn two computations into a form that is indistinguishable from each other, then you can hide how the program works. If you can’t tell the difference between two programs, you don’t know which of the two programs is being executed, and no information can be deduced from either one, other than that they both perform the same function. Both programs take the same inputs and produce the same outputs, but iO makes it so no one can figure out how.</p><p>With iO, you can conceal the structure of every type of function including nearly all the functions that make up cryptography. In other words, by obscuring nearly anything, you reach the most general-purpose programmable cryptography on which other primitives can be programmed on top of.</p><p>Technically, there is a black box bigger than iO. It’s literally called <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Black-box_obfuscation">black box obfuscation</a>. But that one is still impossible.</p><h2 id="h-well-founded-assumptions" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Well-founded assumptions</strong></h2><p>No one knew how to build iO <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2013/451.pdf">until 2013, when multilinear maps were proposed by Garg, Gentry, Halevi, Raykova, Sahai, Waters.</a> A computer program could be broken up like puzzle pieces then obscured using multilinear maps. The obscured pieces could be reassembled to achieve the same functionality as the original program without revealing its inner workings.</p><p>Multilinear maps are a generalization of the bilinear maps or pairings used in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">Elliptic Curves Cryptography (ECC</a>). While bilinear maps are foundational to existing cryptographic schemes like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/BLS_digital_signature">BLS signatures</a>, they are not complex or expressive enough for iO. And while multilinear maps could handle iO, this newly developed algebraic structure was easily attackable and wasn’t secure so relying on multilinear maps was generally unsatisfying for cryptographers. The field was stuck again.</p><p>Then, in 2020, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2020/1003">Jain, Lin, and Sahai proposed</a> a solution that while unusual and new, was simple enough for cryptographers to reason about, and instead of relying on newly developed assumptions like multilinear maps, this version of iO could be built on more standard and well-founded assumptions that have been studied for decades such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Learning_with_errors">Learning with Errors (LWE).</a> With this latest breakthrough, iO became feasible again. The holy grail was still in reach.</p><h1 id="h-untamed-wilderness" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Untamed wilderness</strong></h1><p>Each cryptographic system is made of different mathematical assumptions and cryptographic techniques. No single breakthrough solves all the problems in a system. Instead, discoveries follow an unpredictable series of small steps and big leaps that alter existing assumptions and techniques, which in turn lead to more breakthroughs and discoveries. And for every discovery that worked, many more did not.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9fb1e445e11f467a37fa4d1158e96e5e240aaa61bae032161714bd3318ded556.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In a presentation on iO, Sahai described the field as being in the “<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://youtu.be/v2RR_c5hn1E?t=1317">untamed wilderness</a>,” where it wasn’t even clear what was not understood and what the right problems to solve were.</p><p>Teams like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.appliedzkp.org/">PSE</a> primarily work on the practical or applied side of programmable cryptography, focusing on primitives like ZK and MPC with well-founded assumptions that have been battle-tested, relatively optimized, and thought to be secure and effective. Though there are plenty of optimizations left, ZK is now firmly within the realm of practicality. But there was also a time when ZK was confined to the untamed wilderness.</p><p>To maximize the number of privacy-preserving, security-guaranteeing, claim-verifying, cryptography-enabled tools the world has access to, we should keep, at least, one eye squinted toward the horizon of what’s to come because no one can predict what will be practical in 10 years.</p><p>Sahai’s presentation includes a quote from a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.nature.com/articles/426389a">2003 Nature article by Steven Weinberg called Four Golden Lessons</a>, which highlights another reason to work on the currently impractical.</p><p>“When I was teaching at the Massachusetts Institute of Technology in the late 1960s, a student told me that he wanted to go into general relativity rather than the area I was working on, elementary particle physics, because the principles of the former were well known, while the latter seemed like a mess to him. It struck me that he had just given a perfectly good reason for doing the opposite… My advice is to go for the messes — that&apos;s where the action is.”</p><hr><p>Programmable Cryptography is being explored by a variety of teams including <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pse.dev/">PSE</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://0xparc.org/">0xPARC</a>, co-organizers of a 2-day event called the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://progcrypto.org/">Programmable Cryptography Conference</a> happening in Istanbul, Turkey on November 16 &amp; 17, 2023.</p><p>Come say hello! Or find <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/sF5CT5rzrR">PSE online on Discord</a>.</p>]]></content:encoded>
            <author>privacy-scaling-explorations@newsletter.paragraph.com (Privacy and Scaling Explorations)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1e983e24f838d46d14948cc799131509b9e94052f30e5729b148be41e1503dae.png" length="0" type="image/png"/>
        </item>
    </channel>
</rss>