<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dmytriiev Petro on Medium]]></title>
        <description><![CDATA[Stories by Dmytriiev Petro on Medium]]></description>
        <link>https://medium.com/@ogpetya?source=rss-100bdbcadd3b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*seaaWzDYFsL0GR2e</url>
            <title>Stories by Dmytriiev Petro on Medium</title>
            <link>https://medium.com/@ogpetya?source=rss-100bdbcadd3b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:31:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ogpetya/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Revolutionizing Decentralized Private Liquidity on Aleo]]></title>
            <link>https://ogpetya.medium.com/revolutionizing-decentralized-private-liquidity-on-aleo-d738a1348436?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d738a1348436</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 15:24:10 GMT</pubDate>
            <atom:updated>2024-11-30T15:24:10.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*I7Va9xARw58Nnu7N.jpeg" /></figure><h3>ShadowFi: Bridging the Gap</h3><p>At the forefront of decentralized private liquidity marketplaces stands ShadowFi, an innovative platform built on Aleo. Designed to function as the base liquidity layer, ShadowFi addresses critical challenges faced by protocols and users alike. With a focus on privacy, security, and user empowerment, ShadowFi aims to redefine the landscape of decentralized finance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*hTtNZG4g84RrVY_V.png" /></figure><h3>Operating Mechanism</h3><p>ShadowFi incentivizes liquidity provision through voter-escrowed voting and protocol bribing. By allowing projects to allocate additional rewards to voters, liquidity providers are motivated to participate, fostering a mutually beneficial ecosystem for protocols, traders, voters, and liquidity providers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*U3YX1m4a6LsgpRQ9.png" /></figure><h3>Distinguishing Features</h3><p>While ShadowFi offers a feature-rich swapping experience for users, its primary focus lies in providing liquidity-seeking projects with a means to incentivize market participants. Acting as a protocol for protocols, ShadowFi’s swapping mechanism naturally emerges as a prerequisite, catering to both user needs and protocol requirements.</p><h3>Rationale Behind Aleo</h3><p>Aleo’s privacy-focused blockchain offers scalability and operational efficiency, making it the ideal choice for ShadowFi’s mission. With a strong emphasis on privacy and democratic voting, Aleo aligns seamlessly with ShadowFi’s vision of a platform where users and protocols interact with liquidity effortlessly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*9YxsF_v5Es942I_J.jpg" /></figure><h3>Unique Attributes</h3><p>ShadowFi implements a governance mechanism that drives protocol revenue to tokens, ensuring value capture and intrinsic value. The platform introduces a dual pool system, catering to stable ratio assets and volatile assets, thereby enhancing liquidity provision and trading efficiency.</p><h3>Roadmap</h3><p>Looking ahead, ShadowFi’s roadmap outlines its plans and milestones, signaling its commitment to innovation and continuous improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*I6YmsPMJIkMA-M1J.png" /></figure><p>In a rapidly evolving decentralized financial landscape, ShadowFi stands as a beacon of innovation, offering solutions that balance user experience, privacy, and functionality. By addressing liquidity challenges, implementing robust governance mechanisms, and introducing diversified pool systems, ShadowFi underscores the importance of privacy and user empowerment in today’s digital age. Join us on this journey toward a more private and empowered decentralized finance ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d738a1348436" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The technical architecture of the Aleo blockchain (AHP)]]></title>
            <link>https://ogpetya.medium.com/the-technical-architecture-of-the-aleo-blockchain-ahp-97d06e5724a4?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d06e5724a4</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 15:17:33 GMT</pubDate>
            <atom:updated>2024-11-30T15:17:33.398Z</atom:updated>
            <content:encoded><![CDATA[<h3>AHP</h3><p>AHP (Algebraic Holographic Proof) is essentially evolved from IOP (Interactive Oracle Proof). The distinction between AHP and IOP lies in the division of the verifier’s verification process into two phases: offline and online. The offline algorithm is known as the indexer algorithm, which can be understood as involving multiple rounds of interaction between the prover and the verifier. Additionally, the verifier can access the indexer oracle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*OEaTmtKv_dD3mfEI" /></figure><h3>1. R1CS</h3><p>R1CS primarily involves instance-witness pairs ((𝐴,𝐵,𝐶), (𝑥,𝑤)), where 𝐴,𝐵,𝐶 are matrices, and (𝑥,𝑤)∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹} satisfy (𝐴𝑧)∘(𝐵𝑧)=𝑐𝑧; 𝑧=(1,𝑥,𝑤). For a detailed explanation of R1CS, please refer to this <a href="https://tlu.tarilabs.com/cryptography/rank-1">example</a>. We will not delve into further details here. If we use Lagrange interpolation to construct three univariate polynomials, \ℎ𝑎𝑡{𝑧}𝐴(𝑋), \ℎ𝑎𝑡{𝑧}𝐵(𝑋), \ℎ𝑎𝑡{𝑧}𝐶(𝑋), on a subgroup 𝐻 from the three sets of vectors 𝐴𝑧, 𝐵𝑧, 𝐶𝑧, then R1CS needs to prove the following:</p><ul><li>entry-wise product：∀ 𝜅∈ 𝐻, \ℎ𝑎𝑡{𝑧}𝐴(𝜅)\ℎ𝑎𝑡{𝑧}𝐵(𝜅)-\ℎ𝑎𝑡{𝑧}𝐶(𝜅)=0</li><li>linear relation：∀ 𝑀∈ \{𝐴,𝐵,𝐶\},∀ 𝜅∈ 𝐻, \ℎ𝑎𝑡{𝑧}𝑀(𝜅)=\𝑠𝑢𝑚𝑖\𝑖ₙ 𝐻𝑀[𝜅,𝑖]\ℎ𝑎𝑡{𝑧}(𝑖)，meaning it needs to be proven that 𝐴𝑧, 𝐵𝑧, 𝐶𝑧 are indeed derived from the same linear combination 𝑧 of matrices 𝐴,𝐵,𝐶.</li></ul><p>The entry-wise product can be easily proven using the aforementioned zeroTest, while the linear relation requires the use of the sumCheck protocol for proof.</p><h3>2. Lemma</h3><p>Lemma 1 (<a href="https://eprint.iacr.org/2018/828.pdf">Univariate Sumcheck for Subgroups</a>): Given a multiplicative subgroup 𝑆⊂\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}, for a polynomial 𝑓(𝑋), the sum \𝑠𝑢𝑚𝜅\𝑖ₙ 𝑆𝑓(𝜅) = 𝜎. If and only if 𝑓(𝑋) can be represented as 𝑓(𝑋)=ℎ(𝑋)∙ 𝑣𝑆(𝑋)+𝑋∙ 𝑔(𝑋) + 𝜎/|𝑆|, where 𝑣𝑆(𝑋) is the vanish polynomial over subgroup 𝑆, and 𝑆 denotes the number of elements in the subgroup 𝑆. This lemma is derived from the paper <a href="https://eprint.iacr.org/2018/828.pdf">Aurora: Transparent Succinct Arguments for R1CS</a>, and we will not delve into a detailed explanation of this lemma here.</p><h3>3. AHP for R1CS</h3><p><strong>3.1. Offline: Index Algorithm</strong></p><p>Due to the verification process of zk-SNARKs typically requiring “reading the description of the computation, in order to know what statement is being verified,” and the large computational load involved, which means the verification time is proportional to the computational effort, Marlin’s approach splits the verification process into two phases:</p><ul><li>Offline phase: Produces a short summary for the given circuit, consisting of coefficient matrices (index).</li><li>Online phase: Uses this short summary to verify the proof, called instance.</li></ul><p>The offline algorithm in Marlin is known as the indexer algorithm, which encodes the coefficient matrices.</p><p>The indexer 𝐼(\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}; (𝐻, 𝐾)⊂ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}; (𝐴,𝐵,𝐶)∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}𝐻× 𝐻), |𝐾| \𝑔𝑒 𝑚𝑎𝑥\{||𝐴||, ||𝐵||, ||𝐶||\}→\{\ℎ𝑎𝑡{𝑟𝑜𝑤}𝑀(𝑋), \ℎ𝑎𝑡{𝑐𝑜𝑙}𝑀(𝑋), \ℎ𝑎𝑡{𝑣𝑎𝑙}𝑀(𝑋)\}𝑀\𝑖ₙ \{𝐴,𝐵,𝐶\}, outputs nine univariate polynomials.</p><p>Based on the non-zero elements of matrices 𝐴,𝐵,𝐶, these non-zero elements are mapped into three vectors: row, col, val, and then polynomialized on subgroup 𝐻 using Lagrange interpolation. These nine univariate polynomials have degrees less than |𝐾| and ensure that the bivariate polynomial \ℎ𝑎𝑡{𝑀}(𝑋,𝑌) is a low-degree extension of 𝑀.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*OeuckdtNX8W72hK-" /></figure><p>Matrix 𝑀 corresponds to the row, col, and val matrices of all non-zero elements in matrices 𝐴,𝐵,𝐶. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*GZoxesRYEbp-f5HC.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*EkPXQwNz6m1XYv4o" /></figure><p>Based on the diagram, let’s briefly introduce the calculation process for 𝑟𝑜𝑤(𝜅): Essentially, it involves converting high-degree polynomials over the group 𝐾 into more low-degree polynomials over the group 𝐻 through mapping. This means calculating nine low-degree polynomials for 𝑟𝑜𝑤𝐴,𝐵,𝐶, 𝑐𝑜𝑙𝐴,𝐵,𝐶, 𝑣𝑎𝑙𝐴,𝐵,𝐶 on 𝐻.</p><ul><li>Assume the subgroup 𝐻=\{ℎ₁,ℎ₂,\𝑙𝑑𝑜𝑡𝑠,ℎₙ\} has an order 𝑜𝑟𝑑(𝐻)=|𝐻|=𝑛, which is related to the constraints and the number of instances and witnesses. In the given example, 𝑛=6 corresponds to the number of columns in row, col, val, but for ease of FFT transformations, 𝑛=²³=8.</li><li>The subgroup 𝐾=\{𝑘₁,𝑘₂,\𝑙𝑑𝑜𝑡𝑠, 𝑘ₘ\} has an order 𝑜𝑟𝑑(𝐾)=|𝐾|=𝑚, which relates to the number of non-zero entries in the matrix 𝑀. In the example above, the total number of non-zero entries in matrices 𝐴,𝐵 𝑎𝑛𝑑 𝐶 is 14, but for FFT convenience, 𝑚=²⁴=16.</li><li>𝑟𝑜𝑤(𝜅): Let 𝜅 = 𝑘𝑗, then 𝜙𝐾(𝜅)=𝑗, and 𝑡𝜅 is the row index of the 𝑗th non-zero entry in matrix 𝑀, assumed to be 𝑖, hence 𝑟𝑜𝑤(𝜅)=𝜙𝐻⁻¹(𝑖)=ℎ𝑖. Using Lagrange interpolation based on (𝑥=𝜅=𝑘𝑗, 𝑦=𝑟𝑜𝑤(𝜅)=ℎ𝑖), the polynomial \ℎ𝑎𝑡{𝑟𝑜𝑤𝑀}(𝑋) can be derived.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*40lBsssQhn_iUub-" /></figure><p><strong>3.2. Online: Proving and Verifying Algorithms</strong></p><p>Let 𝑝𝑝=[\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}; (𝐻, 𝐾)⊂ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}; (𝐴,𝐵,𝐶)∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}𝐻× 𝐻), with |𝐾| \𝑔𝑒 𝑚𝑎𝑥\{||𝐴||, ||𝐵||, ||𝐶||\}].</p><p><strong>Prover(</strong>𝑝𝑝, 𝑥, 𝑤<strong>):</strong> The prover’s inputs are an instance 𝑥∈\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}𝐻[\𝑙𝑒 |𝑥|] and a witness 𝑤∈\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}𝐻[\𝑔𝑒 |𝑥|].</p><p><strong>Verifier(</strong>𝑝𝑝, 𝑥<strong>, indexer)</strong>: The verifier’s inputs are an instance 𝑥∈\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}𝐻[\𝑙𝑒 |𝑥|] and access to the indexer oracle.</p><p><strong>(1) Round 1 — Prover</strong></p><ul><li>Assume the multiplicative subgroup 𝐻=\{ℎ₁, ℎ₂,\𝑙𝑑𝑜𝑡𝑠, ℎₙ\}, define the instance polynomial \ℎ𝑎𝑡{𝑥}(𝑋), 𝑥∈ 𝐻[\𝑙𝑒 |𝑋|]=\{ℎ₁, ℎ₁,\𝑙𝑑𝑜𝑡𝑠,ℎ|ₓ|\}.</li><li>Define the shifted witness polynomial \ℎ𝑎𝑡{𝑤}(𝑋) such that for 𝑋∈ 𝐻[\𝑔𝑒 |𝑋|]=\{ℎ|ₓ|₊₁,\𝑙𝑑𝑜𝑡𝑠, ℎₙ\}, its corresponding value is \𝑓𝑟𝑎𝑐{𝑤(𝛾)-\ℎ𝑎𝑡{𝑥}(𝛾)}{𝑣𝐻[\ₗₑ|ₓ|](𝛾)}, 𝛾∈ 𝐻[\𝑔𝑒 |𝑋|]. This construction is utilized because 𝑧=(𝑥,𝑤).</li><li>Let 𝑧=(𝑥;𝑤)∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}𝐻, construct \ℎ𝑎𝑡{𝑧}𝐴(𝑋), \ℎ𝑎𝑡{𝑧}𝐵(𝑋), \ℎ𝑎𝑡{𝑧}𝐶(𝑋)∈\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}&lt;|𝐻|⁺𝑏[𝑋] based on the linear combination 𝑧𝐴=𝐴𝑧, 𝑧𝐵=𝐵𝑧,𝑧𝐶=𝐶𝑧 on subgroup 𝐻.</li><li>ZeroTest: Calculate the polynomial ℎ₀(𝑋) 𝑠.𝑡. \ℎ𝑎𝑡{𝑧}𝐴(𝑋)∙ \ℎ𝑎𝑡{𝑧}𝐵(𝑋)-\ℎ𝑎𝑡{𝑧}𝐶(𝑋)=ℎ₀(𝑋)∙ 𝑣𝐻(𝑋).</li><li>Note: \ℎ𝑎𝑡{𝑧}(𝑋)=\ℎ𝑎𝑡{𝑤}(𝑋)𝑣𝐻[\ₗₑ|ₓ|](𝑋)+\ℎ𝑎𝑡{𝑥}(𝑋) can also be directly constructed based on 𝑧=(𝑥;𝑤) in group 𝐻.</li><li>Construct a random polynomial 𝑠(𝑋)∈\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}&lt;²|𝐻|⁺𝑏⁻¹[𝑋] and \𝑠𝑢𝑚𝜅\𝑖ₙ 𝐻𝑠(𝜅)=𝜎₁, also known as the mask polynomial, to satisfy the zero-knowledge property of the univariate sumcheck.</li><li>The prover sends \ℎ𝑎𝑡{𝑤}(𝑋), \ℎ𝑎𝑡{𝑧}𝐴(𝑋), \ℎ𝑎𝑡{𝑧}𝐵(𝑋), \ℎ𝑎𝑡{𝑧}𝐶(𝑋), ℎ₀(𝑋), 𝑠(𝑋), 𝜎₁.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*i91wXkXT9nj4sNXp" /></figure><p><strong>(2) Round 1 — Verifier</strong></p><p>Randomly sends 𝛼, 𝜂𝐴,𝜂𝐵,𝜂𝐶∈\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}, where 𝛼 is to reduce the linear check problem to a sumcheck problem, and 𝜂𝐴,𝜂𝐵,𝜂𝐶 is to bundle three sumcheck problems into one.</p><p><strong>(3)Round2-Prover</strong></p><blockquote><em>&gt; reduce lincheck problem to a sumcheck problem: the verifier samples a random element α ∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹} and sends it to Prover. Indeed, letting 𝑟(𝑋, 𝑌) = 𝑢𝐻(𝑋,𝑌).</em></blockquote><blockquote><em>&gt; Prover is left to convince Verifier that the following univariate polynomial sums to 0 on 𝐻.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*zLAB60_iMOBTe4t6" /></figure><p>Following the provided reference, if it can be proven that the sum of polynomial 𝑞₁(𝑋) over 𝐻 equals 𝜎₁, then it demonstrates a linear relation between 𝑓₁(𝑋) and 𝑓₂(𝑋).</p><p>The polynomial 𝑞₁(𝑥)=𝑠(𝑋)+𝑟(𝛼,𝑋)𝑓₁(𝑋) -𝑟𝑀(𝛼, 𝑋)𝑓₂(𝑋) where 𝑓₁(𝑋)=𝜂𝐴∙ \ℎ𝑎𝑡{𝑧}𝐴(𝑋)+𝜂𝐵∙ \ℎ𝑎𝑡{𝑧}𝐵(𝑋)+𝜂𝐶∙ \ℎ𝑎𝑡{𝑧}𝐶(𝑋)𝑓₂(𝑋)=\ℎ𝑎𝑡{𝑧}(𝑋)</p><p>Next, the prover needs to demonstrate to the verifier the following polynomial \𝑠𝑢𝑚𝜅\𝑖ₙ 𝐻𝑞₁(𝜅)=𝜎₁, indicating that the value within the red box is zero, which corresponds to the linear relation that needs to be proven.</p><p>𝑟𝑀(𝛼, 𝑋)=\𝑠𝑢𝑚𝜅\𝑖ₙ 𝐻𝑟(𝛼,𝜅) \ℎ𝑎𝑡{𝑀}(𝜅, 𝑋)</p><p>𝑞₁(𝑋)=𝑠(𝑋)+\𝑓𝑟𝑎𝑐{𝑣𝐻(𝛼)-𝑣𝐻(𝑋)}{𝛼-𝑋}∙(𝜂𝐴∙ \ℎ𝑎𝑡{𝑧}𝐴(𝑋)+𝜂𝐵∙ \ℎ𝑎𝑡{𝑧}𝐵(𝑋)+𝜂𝐶∙ \ℎ𝑎𝑡{𝑧}𝐶(𝑋))- \{\𝑠𝑢𝑚𝜅\𝑖ₙ 𝐻[𝜂𝐴∙ 𝑟(𝛼,𝜅)∙\ℎ𝑎𝑡{𝐴}(𝜅, 𝑋)+𝜂𝐵∙ 𝑟(𝛼,𝜅)∙\ℎ𝑎𝑡{𝐵}(𝜅, 𝑋)+𝜂𝐶∙ 𝑟(𝛼,𝜅)∙\ℎ𝑎𝑡{𝐶}(𝜅, 𝑋)]\}∙ \ℎ𝑎𝑡{𝑧}(𝑋)</p><p>Note:</p><ul><li>The bivariate polynomial 𝑟(𝑋,𝑌)=𝑢𝐻(𝑋,𝑌)=\𝑓𝑟𝑎𝑐{𝑣𝐻(𝑋)-𝑣𝐻(𝑌)}{𝑋-𝑌}, where 𝑣𝐻(𝑋) is the vanishing polynomial on 𝐻.</li><li>If 𝐻 is a multiplicative subgroup, then 𝑢𝐻(𝑋,𝑌)=\𝑓𝑟𝑎𝑐{𝑣𝐻(𝑋)-𝑣𝐻(𝑌)}{𝑋-𝑌}=\𝑓𝑟𝑎𝑐{𝑋|𝐻|-𝑌|𝐻|}{𝑋-𝑌}; 𝑢𝐻(𝑋,𝑋)=|𝐻|𝑋|𝐻|⁻¹=𝑛𝑋ⁿ⁻¹.</li></ul><p>Next, the prover needs to prove to the verifier the following polynomial \𝑠𝑢𝑚𝜅\𝑖ₙ 𝐻𝑞₁(𝜅)=𝜎₁, in accordance with the lemma mentioned in section 5.2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*EzM8aadW4qL9iucF" /></figure><p><strong>(4) Round 2 — Verifier</strong></p><p>Randomly selects 𝛽₁∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}\𝐻.</p><p><strong>(5) Round 3 — Prover: Sumcheck</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*u8s7ecUl7Iic1rt1" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*2DkJ9bSAi496U6C5" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dM1PM1jkp3dyYhwa" /></figure><p>𝜎₂=\𝑠𝑢𝑚𝜅\𝑖ₙ 𝐻𝑞₂(𝜅) requires finding polynomials ℎ₂(𝑋),𝑔₂(𝑋).</p><p><strong>(6) Round 3 — Verifier</strong></p><p>Randomly selects 𝛽₂∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}\𝐻.</p><p><strong>(7) Round 4 — Prover: Sumcheck</strong></p><p>Using the calculation formula for \ℎ𝑎𝑡{𝑀}(𝑋,𝑌):</p><ul><li>𝑓₃(𝑋)=𝑋𝑔₃(𝑋)+𝜎₃/|𝐾|, this equation proves that 𝑓₃ sums to 𝜎₃ over 𝐾.</li><li>𝑎(𝑋)-𝑏(𝑋)𝑓₃(𝑋)=ℎ₃(𝑋)𝑣𝐾(𝑋), this equation demonstrates that 𝑓₃ agrees with the correct addends over 𝐾.</li></ul><p>These two equations can be combined into one: ℎ₃(𝑋)𝑣𝐾(𝑋)=𝑎(𝑋)-𝑏(𝑋)(𝑋𝑔₃(𝑋)+𝜎₃/|𝐾|).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*BAEePXWbVguINYgM" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*K_IVsKE4oR5rIVw-" /></figure><p><strong>(8)Round4-Verifier</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Y2PqLOKYdI1fVSmT" /></figure><p><strong>Summary:</strong></p><ul><li><strong>Offline</strong>: 9 univariate polynomials define the low-degree extension of matrix $$M$$, leading to the output of 9 polynomial commitments.</li><li><strong>Online</strong>: The verifier queries each of the 9 indexer polynomials and 12 prover polynomials at exactly one location, which amounts to 21 queries.:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*rcqduWY2NnzUAky0.png" /></figure><ul><li>The prover outputs 12 commitments, 21 evaluations, and 3 evaluation proofs.</li><li>12 commitments:</li><li>At point 𝛽₁: \ℎ𝑎𝑡{𝑤}, \ℎ𝑎𝑡{𝑧𝐴},\ℎ𝑎𝑡{𝑧𝐵},\ℎ𝑎𝑡{𝑧𝐶}, ℎ₀, 𝑠, ℎ₁,𝑔₁</li><li>At point 𝛽₂: ℎ₂, 𝑔₂</li><li>At point 𝛽₃: ℎ₃,𝑔₃, \ℎ𝑎𝑡{𝑟𝑜𝑤}𝑀,\ℎ𝑎𝑡{𝑐𝑜𝑙}𝑀, \ℎ𝑎𝑡{𝑣𝑎𝑙𝑀}, 𝑀∈\{𝐴,𝐵,𝐶\}.</li><li><strong>Overall</strong>: 27 \𝑚𝑎𝑡ℎ𝑏𝑏{𝐺}₁ + 24\𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}𝑞.</li></ul><h3>4. Optimizations for AHP</h3><ol><li><strong>Elimination of ℎ₀ and \ℎ𝑎𝑡{𝑧𝐶}:</strong></li></ol><ul><li>Research indicates it’s possible to omit proving the zeroTest, simply by replacing \ℎ𝑎𝑡{𝑧𝐶}(𝑋) directly with \ℎ𝑎𝑡{𝑧𝐴}(𝑋)∙\ℎ𝑎𝑡{𝑧𝐵}(𝑋) in subsequent proofs.</li></ul><p><strong>2. Minimal Zero Knowledge Query Bound:</strong></p><ul><li>Set the coefficient 𝑏=1 directly within the mask polynomial.</li></ul><p><strong>3. Eliminating 𝜎₁:</strong></p><ul><li>Construct a special mask polynomial that sums to zero over 𝐻, rather than 𝜎₁.</li></ul><p><strong>4. A More Efficient Holographic Lincheck</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*iPPU44MZLIu-0B9k" /></figure><ul><li>The use of polynomial commitments to commit and prove the values mentioned above.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*DIkDUnXdZbddXese" /></figure><p><a href="https://github.com/arkworks-rs/marlin/blob/master/diagram/diagram.pdf">https://github.com/arkworks-rs/marlin/blob/master/diagram/diagram.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97d06e5724a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The technical architecture of the Aleo blockchain “Marlin and Varuna”]]></title>
            <link>https://ogpetya.medium.com/the-technical-architecture-of-the-aleo-blockchain-marlin-and-varuna-79909a5ca857?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/79909a5ca857</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 15:12:56 GMT</pubDate>
            <atom:updated>2024-11-30T15:12:56.533Z</atom:updated>
            <content:encoded><![CDATA[<h3>Marlin and Varuna</h3><h3>1. Overview of Zero-Knowledge Proof Technology</h3><p>Zero-knowledge proofs are widely applied in blockchain applications and have become crucial tools for privacy and scalability. Among these, zk-SNARKs (succinct non-interactive arguments of knowledge) are favored for their short proof size and efficient verification. In practice, the efficiency of verification is significantly determined by the proof’s length/computational complexity, which is associated with the application’s circuit size. A typical SNARK protocol includes the following processes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*YvIXKRbOYSH-KFbh.png" /></figure><p>In general, the length of a SNARK proof has a sublinear relationship with the witness (the prover’s private input). Verifiers need to review the instance and circuit information during proof verification, making the verification complexity related to the instance length and the size of the circuit. Achieving succinct proofs and efficient verification ultimately boils down to the preprocessing setup, specifically the setup process illustrated above.</p><ul><li><strong>Proof Conciseness: </strong>To achieve shorter proofs, where the proof length is logarithmically related to the circuit gate size 𝑙𝑒𝑛(𝜋)=𝑂𝜆 (log (|𝐶|))</li><li><strong>Verification Efficiency:</strong> If verifiers do not have time to review circuit-related information, the setup algorithm generates a verification key (vk), usually a short summary of the circuit.</li></ul><p>In the specific schemes of zk-SNARKs widely used today, such as Groth16, Sonic, and Plonk, as well as optimized implementation protocols like Halo2 and Marlin, all these specific zero-knowledge proof schemes have a preprocessing setup process. During this process, some public parameters (common reference string, CRS) are secretly generated. These parameters will be involved in the subsequent proof generation and verification processes. The term “secret” here refers to the issue of “toxic waste” introduced during the generation of these public parameters. Anyone who can access this toxic waste could potentially forge proofs, making the management of this toxic waste especially critical. After the CRS is generated, it needs to be immediately destroyed to prevent misuse. Nowadays, MPC algorithm can avoid these problems.</p><p>Currently, there are three main types of preprocessing setup:</p><ul><li>trusted setup per circuit: A representative scheme is Groth16. In this type of setup, each circuit has a corresponding toxic waste random number, which is crucial and must be permanently discarded after one use. Otherwise, if a prover gains access to this toxic waste, they could forge proofs. Therefore, any change in the circuit requires the regeneration of both the proving and verification parameters (pp and vp). Generating the Common Reference String (CRS) consumes a significant amount of computational and human resources, making this approach more suited for static, unchanging application scenarios. For instance, Zcash implements this scheme to facilitate privacy-preserving transactions based on the UTXO model.</li></ul><blockquote><em>𝑆(𝑐𝑖𝑟𝑐𝑢𝑖𝑡; 𝑟)</em></blockquote><ul><li>universal (updatable) setup: Sonic and Plonk are typical examples of this setup, with Plonk being an optimized scheme of Sonic. In such setup, the random number r/toxic waste is only involved in the generation of global parameters and is independent of the circuit; this algorithm runs only once. The algorithms for generating proving and verification parameters (pp and vp) are deterministic, depending on the global parameters (gp) and the circuit. For different circuits, it is only necessary to run this deterministic algorithm each time. Therefore, a universal SRS (Structured Reference String) can support a broader and more diverse range of application scenarios. Although a universal setup is more expensive and generates larger proofs compared to a circuit-specific setup, its ability to accommodate more complex and diverse application scenarios makes it more popular among users.</li></ul><blockquote><em>𝑆=(𝑆𝑖ₙ𝑖ₜ, 𝑆𝑖ₙ𝑑ₑₓ): 𝑆𝑖ₙ𝑖ₜ(𝜆 ,𝑟)→ 𝑔𝑝, 𝑆𝑖ₙ𝑑ₑₓ(𝑔𝑝, 𝐶𝑖𝑟𝑐𝑢𝑖𝑡)→ (𝑝𝑝,𝑣𝑝)</em></blockquote><ul><li>transparent setup: This setup does not contain any secret randomness, meaning there is no trusted setup process. The proving and verification parameters (pp and vp) it generates are only related to the circuit. A representative protocol is Bulletproofs, which are used for range proofs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*AWM9svvvyQLSk0AO" /></figure><p>Aleo uses the Varuna scheme, which is an improved version of the Marlin scheme. The main difference between Varuna and Marlin is that Marlin’s arithmetic language only allows R1CS, while Varuna can support both R1CS and custom gates and lookups(custom constraints lookup arguments), such as Plonkish. This means that in the arithmetic representation of circuits, Marlin is limited to three matrices, whereas Varuna can utilize a greater number of matrices, offering better extensibility. Beyond addition and multiplication circuits, Varuna can support various types of arithmetic circuits with corresponding distinct construction methods, referred to as generalized R1CS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Dboau6pz26-quuSb" /></figure><p>We will give a detailed introduction to the Marlin scheme.</p><h3>2. Overview of the Marlin Protocol</h3><p>The Marlin protocol encompasses three main processes: updatable setup, Prove, and Verify.</p><p><strong>(1) Updatable Setup mainly includes two algorithms:</strong></p><ul><li><a href="https://github.com/arkworks-rs/marlin/blob/master/src/lib.rs">Setup Algorithm</a>: A deterministic algorithm used for generating SRS, based on different polynomial commitment schemes and security assumptions. This algorithm, which needs to run only once and is independent of the circuit, can be found in Marlin’s GitHub repository. For detailed information, refer to <a href="https://github.com/arkworks-rs/poly-commit/tree/master/poly-commit">marlin-poly-commit</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*H6UmUMIa6ke0ATxp" /></figure><ul><li><a href="https://github.com/arkworks-rs/marlin/blob/master/src/ahp/indexer.rs">Index Algorithm</a>: Based on the SRS generated above and different circuits, it generates a provingKey and a verifierKey. This deterministic algorithm can be run by anyone.</li></ul><p><strong>(2) Prove: The process where the prover generates a proof using the provingKey, instance, and witness.</strong></p><p><a href="https://github.com/arkworks-rs/marlin/blob/master/src/ahp/prover.rs">https://github.com/arkworks-rs/marlin/blob/master/src/ahp/prover.rs</a></p><p><strong>(3) Verify: The process where the verifier uses the verifierKey and instance to verify the proof.</strong></p><p><a href="https://github.com/arkworks-rs/marlin/blob/master/src/ahp/verifier.rs">https://github.com/arkworks-rs/marlin/blob/master/src/ahp/verifier.rs</a></p><p>Constructing an effective SNARK for a general circuit typically requires two main components:</p><ul><li><strong>Polynomial Commitment Scheme</strong></li><li><strong>IOP (Interactive Oracle Proof):</strong> Essentially a multi-round interactive protocol where the verifier sends a challenge in each round, and the prover responds with an oracle. Through this oracle, the verifier can make queries/inquiries.</li></ul><p>The Marlin protocol discusses various polynomial commitment schemes under different security models, including:</p><ul><li>Opening multiple polynomials with the same degree bound at a single point</li><li>Opening multiple polynomials with multiple degree bounds at a single point</li><li>Opening multiple polynomials with multiple degree bounds at multiple points</li></ul><p>Let’s dive into a few specific schemes.</p><h3>3. Polynomial Commitment Schemes</h3><p><strong>3.1. Definition of Polynomial Commitments</strong></p><p>A polynomial commitment allows a prover to generate a commitment to a polynomial and later open this commitment at a specific point, producing a proof that the opened value matches the committed polynomial. The most straightforward method would be to send the polynomial to the verifier for direct validity verification, but this approach scales linearly with the polynomial’s degree(𝑑), which is impractical for polynomials of billion-degree (𝑑) magnitudes in real applications. Instead, the goal is to construct proofs that are both succinct and efficiently verifiable.</p><p>The polynomial commitment process involves the following algorithms:</p><ul><li>𝐾𝑒𝑦𝐺𝑒𝑛/𝑠𝑒𝑡𝑢𝑝(1𝜆 )→ 𝑔𝑝: Generates a public key, public parameters, or a common reference string. This is represented directly by 𝑔𝑝 (global parameters).</li><li>𝑐𝑜𝑚𝑚𝑖𝑡(𝑔𝑝, 𝑓)→ 𝑐𝑜𝑚𝑓: Given the 𝑔𝑝(global parameters) and a polynomial, the prover can compute a commitment to the polynomial.</li><li>𝑒𝑣𝑎𝑙(𝑔𝑝, 𝑓, 𝑧)→ (𝑣, 𝜋): The prover computes the value 𝑣 of the polynomial at a point 𝑧, along with the proof 𝜋.</li><li>𝑣𝑒𝑟𝑖𝑓𝑦(𝑔𝑝, 𝑐𝑜𝑚𝑓, 𝑧, 𝑣, 𝜋) → 𝑎𝑐𝑐𝑒𝑝𝑡 ~ 𝑜𝑟~ 𝑟𝑒𝑗𝑒𝑐𝑡: The verifier checks the correctness of the value $$v$$computed by the polynomial at point 𝑧.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*uKnbmOrY8visE9j3" /></figure><p><strong>3.2. KZG Polynomial Commitment Scheme</strong></p><p>This section details the specific algorithms of the KZG polynomial commitment scheme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*N72b8Yi10-SpJMsZ" /></figure><ul><li>setup: \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}ₚ is a finite field of prime order 𝑝, and \𝑚𝑎𝑡ℎ𝑏𝑏{𝐺} is a cyclic group with a generator 𝐺. In this algorithm, 𝛽 represents the toxic waste that must be permanently destroyed. In practice, Multi-Party Computation (MPC) is introduced to generate this value. In actual schemes, particularly in universal setup zero-knowledge proof schemes, this algorithm functions as 𝑆𝑖ₙ𝑖ₜ, participating only in the generation of 𝑔𝑝 and being independent of the circuit. The size of 𝑔𝑝 is linearly related to 𝑑, where 𝑑 is typically on the order of billions, implying that 𝑔𝑝 is very large.</li><li>commit: Making a commitment to a polynomial involves calculating the value of the polynomial at 𝛽, even though the value of 𝛽 is not known. However, this calculation can be performed using 𝑔𝑝.</li><li>eval: The computational effort required for the prover to calculate the quotient polynomial 𝑞(𝑋) is substantial, as the degree 𝑑 of this polynomial is typically very large, often on the order of billions. After calculating the quotient polynomial, a commitment to this polynomial must be made. This means that the computational effort for proof is very large. How to optimize this in practice will be discussed later.</li><li>verify: The verification equation (𝛽 — 𝑧)∙ 𝑐𝑜𝑚𝑞 = 𝑐𝑜𝑚𝑓 — 𝑣∙ 𝐺 involves the toxic waste 𝛽, but the verifier cannot know the information about 𝛽. Therefore, it is necessary to introduce bilinear mapping/pairing for the final verification step.</li></ul><p><strong>3.3. MarlinKZG10</strong></p><p>In the <a href="https://github.com/arkworks-rs/poly-commit/tree/master/poly-commit">marlin-poly-commit</a> repository, several polynomial commitment schemes are implemented, including:</p><ul><li><a href="https://eprint.iacr.org/2020/499">Inner-product-argument Polynomial Commitment (PC)</a></li><li>Marlin variant of the Kate-Zaverucha-Goldberg (KZG) Polynomial Commitment: marlinKZG10</li><li>Sonic/AuroraLight variant of the KZG Polynomial Commitment</li><li>Marlin variant of the Papamanthou-Shi-Tamassia multivariate Polynomial Commitment: Marlin-PST13</li></ul><p>This article will not detail every scheme but will focus on some of the representative ones.</p><p>Marlin requires polynomial commitment schemes to satisfy:</p><ul><li>Extractability: A stronger notion than binding.</li><li>Efficiency:</li></ul><p>(1) For the prover: The time to create a polynomial commitment should be short, implying the need to reduce the polynomial’s degree <em>d</em> (low-degree); the verification of proofs should be efficient, meaning the size of the generated proof/quotient polynomial commitment should be proportional to the polynomial’s degree, not to the highest degree <em>D</em>.</p><p>(2) For the verifier: the commitment size, proof size, time to verify an opening must be independent of the claimed degrees for the polynomials</p><ul><li>hiding：commitments and proofs of evaluation reveal no information about the committed polynomial beyond the publicly stated degree bound and the evaluation itself.</li></ul><p>To meet the functional and security requirements specified in the Marlin project, Marlin employs an extended Kate-Zaverucha-Goldberg (KZG) polynomial commitment scheme, achieving extractability within the algebraic group model (AGM).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*vqhAEXMRALCjdhMC" /></figure><p><strong>(1) Setup</strong> In the code, g = G, gamma_g = 𝛾 𝐺, where 𝛾 is introduced to provide the hiding feature for commitments. If the hiding feature is not considered, then the components marked in blue in the scheme are not necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*FVBSElqOjGgiq4S6" /></figure><p><strong>(2) Commit</strong></p><ul><li>The process of committing to a univariate polynomial is as follows: Normally, the commitment to a polynomial 𝑝(𝑋)=𝑎₀ + 𝑎₁𝑋+\𝑙𝑑𝑜𝑡𝑠+𝑎ₜ𝑋𝑡 would be 𝑐𝑜𝑚𝑚𝑖𝑡(𝑝(𝑋))=𝑝(𝛽)∙ 𝐺. However, this method does not offer the hiding property since it reveals the value of the polynomial at 𝛽. To ensure hiding, a random blinding polynomial, \𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑝(𝑋)}, is added to the calculation. The final commitment is 𝑐𝑜𝑚𝑚𝑖𝑡(𝑝(𝑋))=𝑝(𝛽)∙ 𝐺+\𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑝(𝛽)}∙𝛾 𝐺.</li><li>For multiple univariate polynomials, represented as [𝑝𝑖]𝑖₌₁ⁿ, to achieve hiding, it’s not necessary to add a random blinding polynomial \𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑝𝑖(𝑋)} to every univariate polynomial. It depends on the randomly generated vector \𝑣𝑒𝑐{𝑤}=[𝑤𝑖]𝑖₌₁ⁿ.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*k0NQmGslhp6RmTyR" /></figure><p><strong>(3) Eval -&gt; </strong>(𝜋)</p><p>The open algorithm in the code, specifically the ‘compute_witness_polynomial &amp;&amp; open_with_witness_polynomial’, essentially generates a commitment/proof for the quotient polynomial/witness polynomial.</p><ul><li>For a univariate polynomial:</li></ul><p>(1) The witness polynomial 𝑤(𝑋)=\𝑓𝑟𝑎𝑐{𝑝(𝑋)-𝑝(𝑧)}{𝑋-𝑧}, and its proof is 𝑤(𝛽)∙ 𝐺.</p><p>(2) To maintain the hiding feature, \𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑤(𝑋)}=\𝑓𝑟𝑎𝑐{\𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑝(𝑋)}-\𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑝(𝑧)}}{𝑋-𝑧}, and its proof is \𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑤(𝛽)}∙𝛾 𝐺. Since the prover introduces a new polynomial, the value of this new polynomial at point 𝑧 cannot be obtained through SRS, thus the generated proof includes an extra term\𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒 𝑣=\𝑜𝑣𝑒𝑟𝑙𝑖𝑛𝑒{𝑝}(𝑧).</p><ul><li>For multiple univariate polynomials, a linear combination is used with a value 𝜉 randomly chosen by the verifier.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*RBkgGcMDiOyqEXb7" /></figure><p><strong>(4) Verify</strong></p><ul><li>For a single variable polynomial, the verification algorithm is consistent with KZG and is not further derived here.</li><li>For multiple univariate polynomials, the verification method is a batch check, which essentially introduces 𝜉 for a linear combination.</li></ul><p><strong>3.4. Marlin-PST13</strong></p><p>The KZG polynomial commitment scheme is not only applicable to univariate polynomials but also to multivariate polynomials and supports batch proofing. The <a href="https://eprint.iacr.org/2011/587.pdf">PST13</a> scheme, utilizing KZG for multivariate 𝑘-𝑣𝑎𝑟𝑖𝑎𝑡𝑒 polynomial commitments, achieves batch proofs.</p><ul><li>Assume the verifier has commitment values 𝑐𝑜𝑚𝑓₁,\𝑙𝑑𝑜𝑡𝑠,𝑐𝑜𝑚𝑓ₙ.</li><li>The prover aims to prove 𝑓𝑖(𝑢𝑖,𝑗=𝑣𝑖,𝑗), 𝑖∈[1,𝑛],𝑗∈[1,𝑚], and can generate a batch proof 𝜋, which requires only a single group element.</li></ul><h3>4. Proof Properties of Polynomial Commitments</h3><p>Combining polynomials commitment with Interactive Oracle Proofs (IOP), they are frequently used in protocols like zeroTest, sumcheck, and productCheck. The proof system in Marlin mainly utilizes the zeroTest and sumcheck protocols. Before introducing these protocols, it’s necessary to discuss the concept of vanishing polynomials.</p><p><strong>4.1. Vanishing Polynomial</strong></p><p>In a prime field \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}ₚ, let 𝜴 be a subgroup of the field with order 𝑘. A vanish polynomial 𝑍𝜴(𝑋)<em> </em>takes the value 0 for all elements of 𝜴. If the subgroup is a cyclic group generated by 𝜴, and if 𝜴=\{1,𝜴, \𝑙𝑑𝑜𝑡𝑠, 𝜴𝑘⁻¹\}, the vanishing polynomial 𝑍𝜴(𝑋)=(𝑋-1)(𝑋-𝜔)(𝑋-𝜔²)\𝑙𝑑𝑜𝑡𝑠(𝑋-𝜔𝑘⁻¹)=𝑋𝑘 — 1. The definition of a vanishing polynomial plays a significant role here. Instead of calculating the product of 𝑘 polynomials, one only needs to compute 𝑋𝑘-1. For 𝑧∈ \𝑚𝑎𝑡ℎ𝑏𝑏{𝐹}ₚ , computing 𝑍𝜴(𝑟) requires ≤ 2log₂ 𝑘 field operations.</p><ul><li>If 𝜴 is a multiplicative subgroup, then 𝑍𝜴(𝑋)=𝑥𝑘-1.</li><li>If 𝜴 is a 𝜉-𝑐𝑜𝑠𝑒𝑡 of some multiplicative subgroup 𝜴₀, then 𝜴=𝜉 𝜴₀, 𝑍𝜴(𝑋)=𝑋𝑘 — 𝜉𝑘</li></ul><p><strong>4.2. ZeroTest on 𝜴</strong></p><p>The prover has a polynomial 𝑓(𝑋) and needs to prove that 𝑓(𝑋) equals 0 over the entire multiplicative subgroup 𝜴, which essentially means proving that 𝑓(𝑋) can be divided by the vanishing polynomial of the multiplicative subgroup 𝑍𝜴(𝑋)=𝑋𝑘 — 1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*o-ub-4etMI6GCFyq" /></figure><p>For this protocol:</p><ul><li>verifier time: 𝑂(𝑙𝑜𝑔 (𝑘)) and two poly queries (but can be done in one)</li><li>Prover time: dominated by the time to compute 𝑞(𝑋) and then commit to 𝑞(𝑋).</li></ul><p><strong>4.3. SumCheck Protocol</strong></p><p>The prover needs to prove to the verifier that the value of a multivariate polynomial 𝑔(𝑏₁,\𝑙𝑑𝑜𝑡𝑠, 𝑏\𝑒𝑙𝑙) is 𝐶₁. The specific method is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*mA2fDQBjSrKLpkwm" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79909a5ca857" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Public vs. Private State: Aleo’s Innovative Solution to Blockchain Data Storage]]></title>
            <link>https://ogpetya.medium.com/public-vs-private-state-aleos-innovative-solution-to-blockchain-data-storage-ca539ac78ba2?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca539ac78ba2</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 21:04:32 GMT</pubDate>
            <atom:updated>2024-10-31T21:04:32.336Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YbK8MZ0BpRpxvOFf" /></figure><p>Blockchain technology promises transparency and security, but it’s also essential to give users control over their privacy. Since the concept of <strong>zero-knowledge proofs (ZKPs)</strong> emerged in 1985, cryptography has evolved to help realize this vision. Early adopters like <strong>Zcash</strong> and recent <strong>zkEVM Layer-2 chains</strong> have demonstrated that zero-knowledge cryptography can add privacy and improve scalability. However, the majority of these applications focus on one or the other — privacy or scalability.</p><p><strong>Aleo</strong>, a layer-1 blockchain, goes beyond this limitation. Aleo not only integrates privacy and scalability by default but also gives developers the power to choose which data should be public or private. In this article, we’ll explore how Aleo’s state storage model works and why this dual approach is so promising for blockchain development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*luV514kJY0v5XGwh.png" /></figure><h3>Aleo State Storage: Privacy as the Default with Flexibility for Transparency</h3><p>Aleo’s <strong>record model</strong> allows for secure, private data storage on-chain, providing a structure similar to the UTXO model used in Bitcoin, but enhanced with encryption for added privacy. Aleo takes this a step further by enabling developers to designate specific application states as public, leveraging a traditional <strong>account model</strong> (like Ethereum) for publicly viewable states. This flexibility opens up possibilities for creating applications that can balance privacy and transparency based on unique use cases.</p><h3>Storing Private States with Records</h3><p>In Aleo, <strong>records</strong> are core data structures that store user assets or application states, serialized in a secure format. Each record represents a specific state within a program — whether it’s a user’s balance or an encrypted document — ensuring that only the designated owner can modify it. By default, these records are stored as ciphertext on-chain, preserving user privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*GkqaylJTwqv6ppjT" /></figure><p>Records are specifically tied to individual programs deployed on Aleo, giving users fine-grained control over which states they want to keep private, while ensuring secure storage.</p><h3>Storing Public State with Mappings</h3><p>For use cases that benefit from transparency, Aleo provides the option to use <strong>mappings</strong> — key-value pairs accessible to anyone querying the Aleo Network. This makes publicly stored data easily accessible, enabling applications that require open data structures without compromising user security on private data.</p><h3>Switching Between Privacy States: Flexible for Real-World Scenarios</h3><p>Aleo’s unique structure supports <strong>switching between private and public states</strong> as needed, allowing for dynamic changes within an application’s life cycle. Imagine a <strong>poker game</strong> where certain data points, like the shuffled deck, remain private initially. However, as the game progresses, the top three cards (the “flop”) are revealed to all players, transitioning from private to public.</p><p>This ability to convert between public and private states is a key feature that expands what developers can create on-chain, accommodating use cases like gaming, finance, and more that require selective data transparency.</p><h3>Enhanced Control with View Keys</h3><p>Aleo introduces a novel feature: the <strong>view key</strong>. Unlike the private key, which controls spending, the view key lets users decrypt their transaction history without having the ability to alter it. This ensures that while a user’s transaction details remain private to others, they can still audit and view their own activity whenever needed. This feature supports self-sovereignty in data access without compromising security.</p><h3>Public vs. Private State: A Two-Pronged Approach for Developers</h3><p>Choosing whether to make an application state public or private depends on the specific needs of the application. Rather than enforcing complete privacy or total transparency, Aleo offers a two-pronged approach that allows developers to configure the ideal privacy level for each part of their program.</p><p>Real-world applications often depend on a mix of private and public information. Take voting as an example: a voter may want their individual choice to remain confidential, but the overall tally should be accessible to all for verification purposes. Aleo’s dual model supports these diverse needs, making it easier to design applications that require trust without sacrificing user privacy.</p><h3>Why Aleo’s Programmable Privacy Model Stands Out</h3><p>As one of the few layer-1 blockchains prioritizing programmable privacy, Aleo provides developers with the unique ability to design applications with selective transparency. This capability enables a range of applications that are difficult to achieve on other blockchains, including secure voting systems, privacy-preserving gaming applications, and compliant financial systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mwqg7O8La5vmhGrU.png" /></figure><p>Get started with building on Aleo by exploring the resources available on <a href="https://github.com/AleoHQ">GitHub</a> and the Aleo developer documentation. Aleo is bridging the gap between privacy and transparency, redefining what’s possible in blockchain development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca539ac78ba2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Zero-Knowledge Powers the Future of Blockchain Wallets]]></title>
            <link>https://ogpetya.medium.com/how-zero-knowledge-powers-the-future-of-blockchain-wallets-59761176016a?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/59761176016a</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 20:58:35 GMT</pubDate>
            <atom:updated>2024-10-31T20:58:35.355Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*szqTt7rk3QRAHMlO.jpg" /></figure><p>Blockchain wallets are a cornerstone of decentralized finance (DeFi), enabling users to manage assets independently of traditional banks. However, to fully unlock the mainstream potential of blockchain, networks must become efficient enough to handle billions of users and transactions cost-effectively. <strong>Zero-knowledge proofs (ZKPs)</strong> are paving the way forward, with Aleo’s <strong>zPass</strong> setting a new standard for blockchain wallets. With zPass, users gain financial freedom and control while retaining the ability to verify compliance with third parties.</p><h3>A Leap Forward for Decentralized Finance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kyn2PPwkz_t2W-KX" /></figure><p>ZK wallets transform the traditional role of blockchain wallets. Typically, a blockchain holds the state of transactions, and wallets serve mainly as signing mechanisms. In contrast, Aleo encrypts the entire chain, making each individual wallet responsible for verifying its assets, decrypting transactions, and executing transfers.</p><p>According to Zack Xuereb, an engineer at Aleo Network Foundation, “Zero-knowledge cryptography within a distributed system creates an environment where users’ privacy is preserved online.” Unlike conventional blockchain wallets, which rely on external indexers to reveal transaction details, ZK wallets handle decryption and transaction generation internally, exposing less user data and enabling faster, more private transactions.</p><h3>Enhanced Financial Control</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*u0sNmzmC6eid2K4_.jpeg" /></figure><p>While social media may be a space for sharing, financial information is generally kept private. <strong>ZK wallets</strong> encrypt data on your local device, such as your phone or laptop, before submitting proofs to the Aleo blockchain. This lets users selectively disclose information, empowering them with greater control over their financial privacy.</p><p>Barron Caster, Co-Founder and CEO of Demox Labs and creator of Leo Wallet, explains, “Other wallets do not have this level of privacy and security. Many delegate the harder work of creating transactions by sharing your wallet’s view key with others, making your transaction history forever accessible.” By eliminating the view key, ZK wallets ensure that asset and transaction details remain private.</p><p><strong>New on-chain use cases</strong> also arise, as explained by Matthew Wyatt, Co-Founder and CEO of Puzzle Wallet. He explains, “Puzzle Wallet and the Puzzle Arcade offer ways for on-chain organizations to share merchandise, discount codes, and giveaways without exposing discount codes or transaction details publicly. Traditional wallets can’t match this functionality without relying on a trusted third party.”</p><h3>Greater Efficiency</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*r-wwc8LjSOaCRyOl.jpg" /></figure><p>Traditional blockchain wallets often need to execute heavy computations to validate and confirm transactions. With <strong>ZKPs</strong>, transaction verification becomes faster and less computationally demanding. For instance, <strong>Leo Wallet</strong> leverages WebGPU to tap into your device’s hardware, drastically accelerating local proof generation. “We’ve created a custom engine to make the experience smoother,” says Caster.</p><p>Puzzle Wallet also capitalizes on cost-effective zero-knowledge proofs, allowing simple games and storefronts to move on-chain. With Aleo, users can run micro-rollups that combine edge computing with trustless ZK verification, supporting innovative applications like games and discounted storefronts.</p><h3>Better Defense Against Bad Actors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*btp9XU3jy0cHYqoG" /></figure><p>Blockchain wallets typically make transaction data — like sender and receiver addresses and transaction amounts — public. This exposure makes wallets vulnerable to exploitation by attackers who might intercept transactions or target specific addresses based on large holdings.</p><p>Zero-knowledge wallets, however, conceal transaction details, reducing the risk of unauthorized access. Without visible transaction data, bad actors cannot easily pinpoint large-value accounts or sensitive transfers, making ZK wallets inherently safer.</p><h3>Expanded Possibilities with Multiparty Computation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*oJUmSb4h0_CVF49i.png" /></figure><p><strong>Multiparty computation (MPC)</strong> is a cryptographic technique that enables secure collaboration among multiple parties without compromising their data. This is particularly useful for scenarios where users share partial control of assets or data.</p><p>Matthew Wyatt of Puzzle Wallet discusses a novel use case for MPC in adversarial environments, like games with hidden information: “In games like Battleship, one user might be tempted to leave the game upon discovering their ship was hit. With Aleo’s programmable privacy and Puzzle Wallet’s multiparty features, we’re able to maintain fair play in Puzzle Arcade games like <em>Where’s Alex</em>.”</p><h3>Meet the ZK-Powered Wallets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-38pP_hqBZiB_7b4ovTtw.png" /></figure><p>With wallets like <strong>Leo Wallet</strong> and <strong>Puzzle Wallet</strong>, users can engage in financial transactions privately, securely, and independently of traditional financial institutions. These ZK wallets exemplify how far decentralized finance has come and the potential it holds to shape the future of finance, identity, and more. Explore Aleo’s <a href="https://www.aleo.org/">ecosystem page</a> to discover why zero-knowledge technology is key to DeFi’s future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59761176016a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aleo’s Record Model: Building a More Secure, Efficient Blockchain]]></title>
            <link>https://ogpetya.medium.com/aleos-record-model-building-a-more-secure-efficient-blockchain-b96bbf4dbd9c?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b96bbf4dbd9c</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 20:51:34 GMT</pubDate>
            <atom:updated>2024-10-31T20:51:34.059Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YN3XH5Xx3U6mTV44.jpg" /></figure><p>At the core of Aleo’s technology lies a groundbreaking cryptographic protocol called <strong>ZEXE</strong> (Zero-Knowledge EXecution), introduced in 2018. ZEXE was built to bring stronger privacy and security to decentralized systems and was the first to introduce the <strong>record model</strong>. Unlike traditional models, the record model extends the UTXO (Unspent Transaction Output) model, enabling the storage and encryption of arbitrary data such as user assets and application states — going beyond simple token values.</p><p>The record model’s privacy-focused structure allows Aleo to shield critical data aspects like inputs (messages), outputs (state changes), users, and functions, with the sole exception of private functions. Initially, Aleo aimed for function privacy as well (as outlined in the original ZEXE paper), but found that it impacted performance and extended proving times. In this article, we explore how Aleo’s record model works to maintain privacy, how it compares to other state models, and why Aleo relies on it.</p><h3>Comparing UTXO, Account, and Record Models</h3><p>Blockchain networks typically use either the <strong>UTXO</strong> model, popularized by Bitcoin, or the <strong>account model</strong> introduced by Ethereum. Aleo, however, has adapted the UTXO model into the record model to better meet privacy and security goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*16DlDmXNacYJ5QrH" /></figure><p>In Ethereum’s account model, for example, each application’s state is linked to a specific address, making it easy for anyone to monitor account activities by simply tracking the address. Aleo’s record model, however, goes a step further by encrypting the application state and its owner’s information, enhancing privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*TEGAGqw01UnW8AKD" /></figure><h3>How the Record Model Works</h3><p>In Aleo’s record model, application states and ownership details are encrypted and stored on the blockchain. A <strong>record</strong> serves as a fundamental data structure containing any arbitrary payload, encoding user assets or application states. These records make up the global state on-chain, such as a user’s credit balance represented by multiple records tied to their address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*CfvclBpLpkeEbm9x" /></figure><p>An Aleo record is serialized in the following format:</p><pre>{<br>  &quot;owner&quot;: &quot;aleo13ssze66adjjkt795z9u5wpq8h6kn0y2657726h4h3e3wfnez4vqsm3008q.private&quot;,<br>  &quot;amount&quot;: &quot;100u64.private&quot;,<br>  &quot;_nonce&quot;: &quot;5861592911433819692697358191094794940442348980903696700646555355124091569429group.public&quot;<br>}</pre><p>The <strong>owner</strong> field specifies the account authorized to spend the record, and the <strong>amount</strong> field carries the data payload, encoding relevant application information. Additionally, a <strong>serial number nonce</strong> acts as a unique identifier, generated by evaluating the address secret key and serial number.</p><p>For a practical demonstration of an Aleo record, visit Aleo’s developer documentation.</p><h3>How the Record Model Updates State</h3><p>In Aleo’s model, applications update state by consuming records with the old state and generating new records with the updated state. Once a record is consumed, it’s marked as spent and cannot be reused. This process occurs within a <strong>transition function</strong>. A single Aleo transaction can contain up to 32 transitions, with one designated for transaction fees.</p><h3>Why Aleo Uses the Record Model</h3><p>In the account model, like Ethereum’s, application data is stored persistently in a location tied to an account, with updates made directly to this stored data. For instance, a token transfer transaction reduces the balance of User A and increases that of User B in a table indexed by user account addresses.</p><p>When aiming for privacy in the account model, this approach becomes limiting. Although it’s possible to hide transaction values, user identities remain visible, as account addresses cannot be encrypted. Furthermore, achieving user privacy would require updating all account commitments in the table, which can become inefficient as the user base grows. Additionally, the account model lacks concurrency, limiting it to one user accessing and updating the program state at a time.</p><p>Aleo’s record model resolves these issues by using <strong>program IDs</strong> to uniquely identify applications rather than account addresses. This approach enhances privacy, supports internal program states, and enables concurrency, allowing multiple users to interact with the program state simultaneously.</p><p>The record model is ideal for Aleo’s goals of programmable privacy and scalability. By enhancing the UTXO model to encode arbitrary data, the record model introduces a level of programmable privacy not achievable in traditional account-based systems.</p><p>Ready to build on Aleo? Dive into our <a href="https://github.com/AleoHQ">GitHub repository</a> and check out our recently updated developer documentation to start creating on the Aleo network.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b96bbf4dbd9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aleo Staking Resources: Tools for the Community]]></title>
            <link>https://ogpetya.medium.com/aleo-staking-resources-tools-for-the-community-5a56fda4366d?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a56fda4366d</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 20:46:16 GMT</pubDate>
            <atom:updated>2024-10-31T20:46:16.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*50c7PvITaa2XEspY" /></figure><p>With the launch of the Aleo mainnet, staking has become a vital way for the community to bolster the network’s crypto-economic security. Whether you’re interested in becoming a validator or a delegator, understanding where to find the necessary tools is essential. Below, we outline key resources available to participants in the Aleo network to help you get started with staking.</p><blockquote><strong><em>Note:</em></strong><em> These resources were created by independent community members, and the Aleo Network Foundation has not verified their functionality, security, or operations. Use of these tools is at your discretion, and you should independently review and manage any relationship or contract with these third-party providers.</em></blockquote><h4>1. Block Explorers</h4><p>Block explorers are invaluable tools in any blockchain ecosystem, allowing users to monitor transactions, blocks, and other on-chain data. For those participating in the Aleo Network, block explorers provide insights into validator activity and on-chain metrics.</p><p>Here are some available block explorers for the Aleo Network:</p><ul><li><a href="https://explorer.provable.com/">Provable Explorer</a></li><li><a href="https://aleo123.io/">Aleo123</a></li><li><a href="https://aleoscan.io/">AleoScan</a></li></ul><p>More block explorers are in development, so keep an eye out for new releases that will provide additional insights and functionalities for Aleo participants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/0*tMJD2ZbncuWYXUt6.png" /></figure><h4>2. Wallets</h4><p>Wallets are crucial for managing Aleo Credits and participating in staking. Below are some of the wallets currently available in the Aleo ecosystem, offering different options for managing and staking Aleo assets. While not all of these are wallets per se, some provide unique staking solutions:</p><ul><li><a href="https://www.leo.app/">Leo Wallet</a></li><li><a href="https://puzzle.online/">Puzzle Wallet</a></li><li><a href="https://hc.foxwallet.com/docs/aleo/">Fox Wallet</a></li><li><a href="https://sotertech.io/">Soter Wallet</a></li><li><a href="https://www.staking.xyz/">Staking.xyz</a> (focused on native and liquid staking)</li><li><a href="https://www.pondo.xyz/">Pondo.xyz</a> (focused on liquid staking)</li></ul><p>Each wallet and staking tool offers unique features, so research the options that align with your needs and security standards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D4bjmE1umLz-iPyw.png" /></figure><h4>3. Community Curated Lists</h4><p>As the Aleo ecosystem grows, so does the variety of community-driven tools. To stay updated, you may want to explore the soon-to-be-launched <strong>“awesome-aleo” GitHub repository</strong>. This community-curated list will catalog a wide array of resources developed for the Aleo ecosystem, from block explorers to wallets and staking platforms.</p><p>Access the repository here once it’s live: <a href="https://github.com/AleoNet/awesome-aleo">awesome-aleo</a></p><p>The “awesome-aleo” repo will serve as a go-to reference for community members, keeping everyone up to date with the latest in Aleo tooling. Community contributions are welcome, so feel free to share resources you find helpful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BFPLfDilcxV4qBbQ.png" /></figure><h3>Reminder: Do Your Own Research</h3><p>As we introduce you to available resources, remember that these tools are community-driven and not officially endorsed. Before integrating any tool into your staking activities, conduct thorough research, verify its security, and make informed decisions that align with your own risk tolerance.</p><p>Stay tuned for further updates and resources to enhance your Aleo staking journey. Happy staking!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F1CdyAxAUaEJVkFm.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a56fda4366d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seeding Validator Ecosystem and Infrastructure Diversity]]></title>
            <link>https://ogpetya.medium.com/seeding-validator-ecosystem-and-infrastructure-diversity-f866010395e6?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f866010395e6</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Tue, 27 Aug 2024 18:43:18 GMT</pubDate>
            <atom:updated>2024-08-27T18:43:18.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RLcmU-UeFOkskjB0.jpg" /></figure><p>Just as thriving cities and flourishing gardens require careful planning, blockchain ecosystems need intentional development to achieve balance, resilience, and long-term survival. Over time, cities grow through efficient markets, while nature cultivates diverse ecosystems through the forces of natural selection. Similarly, a successful blockchain network, like Aleo, requires a thoughtfully designed ecosystem with a diverse set of validators and infrastructure providers.</p><h3>Building a Resilient Blockchain Ecosystem</h3><p>At the core of Aleo’s decentralized network is a diverse group of validators — key infrastructure service providers that secure the network through AleoBFT, our Proof-of-Stake-based consensus mechanism. Selecting a diverse group of validators is critical to establishing Aleo as a healthy, resilient, and decentralized network. This process is akin to city planning or forestry management, where diversity is intentionally seeded to ensure long-term stability and growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rnrqJesV2BKdxXl5.jpg" /></figure><p>To achieve true decentralization, it’s not enough to have a varied set of validators; the underlying infrastructure must also be diversified. In the past, networks often assumed that a decentralized set of validators naturally implied diversified infrastructure. However, this assumption can lead to issues where a network is decentralized in name only, lacking the true diversity needed to withstand challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jETTTcZbLlDtVAYw.jpg" /></figure><h3>Ensuring True Decentralization in Blockchain Ecosystems</h3><p>A thriving blockchain ecosystem isn’t just composed of infrastructure service providers. It should also include data analytics providers, consumer applications, decentralized financial services, marketing services, auditors, traders, developers, artists, gamers, and regional interest groups. Each of these domains plays a crucial role in the health and resilience of the ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*ydaGJenO6gnslI9j.png" /></figure><p>For Aleo, achieving a decentralized network means fostering resilience in both infrastructure and ecosystem representation. This can be accomplished by intentionally promoting diversity and inclusion at both the infrastructure and ecosystem levels. Our collaborative delegation program, which involves the Aleo Network Foundation, our backers, and the Aleo community, is dedicated to ensuring this necessary diversification.</p><h3>Cultivating Representative Governance</h3><p>As blockchain ecosystems grow, governance becomes increasingly important. Just as lawmakers in a congressional legislature represent the interests of diverse groups, validators in a blockchain network should reflect the full spectrum of ecosystem participants. Validators should not only serve as general-purpose infrastructure providers but also represent different domain-specific groups, guiding the network’s direction with their expertise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*B-aB5cTD6bhtUDet.png" /></figure><p>The Aleo Network Foundation is committed to fostering this representative governance by empowering validators to guide the ecosystem’s evolution with intentionality and inclusivity. Much like subcommittees in a legislature, validators can be grouped into domain-specific subcommittees, working groups, or DAOs, ensuring that each aspect of the ecosystem is adequately represented and supported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PtFdUODICMrvLJzn" /></figure><p>The governance power of validators should encompass the entire ecosystem, not just a single domain. The Aleo Network Foundation plays a crucial role in laying the groundwork for diverse representation across all ecosystem domains at the mainnet launch. By doing so, we aim to seed the beginnings of an ideal governance system, one that is truly representative and empowered by a diverse validator community.</p><h3>Conclusion</h3><p>The success of a blockchain network lies in its ability to cultivate a diverse, resilient, and inclusive ecosystem. Aleo’s approach to seeding validator diversity and infrastructure resilience is a critical step toward building a decentralized network that can thrive in the long term. By ensuring that our validators and infrastructure providers reflect the full spectrum of ecosystem participants, Aleo is not only promoting decentralization but also laying the foundation for a robust and representative governance system.</p><p>As we move toward the mainnet launch, the Aleo Network Foundation will continue to focus on fostering this diversity and intentionality, ensuring that our network is well-equipped to handle the challenges of the future. In doing so, we will create a thriving, resilient, and truly decentralized blockchain ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f866010395e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the Aleo Community Paved the Road to Mainnet]]></title>
            <link>https://ogpetya.medium.com/how-the-aleo-community-paved-the-road-to-mainnet-7747c9008ce5?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7747c9008ce5</guid>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Tue, 27 Aug 2024 18:20:31 GMT</pubDate>
            <atom:updated>2024-08-27T18:20:31.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/0*RnWmkIJPyX803TBz.png" /></figure><p>The Aleo community has rallied around a shared vision: a more secure and private internet. At the heart of this vision lies a zero-knowledge network that prioritizes privacy by default, offering a new standard for online interactions. This journey toward a more secure web began with the launch of Aleo Testnet 1 in 2020 and has been marked by groundbreaking achievements, community engagement, and significant milestones.</p><h3>The Beginnings: Aleo Testnet 1</h3><p>Aleo Systems was founded in December 2019 by Howard Wu, Michael Beller, Collin Chin, and Raymond Chu, with a mission to create the first platform for fully private applications. By June 2020, Aleo released its developer preview, including Aleo Studio and the Leo v1 coding language, followed by the launch of Testnet 1. This was a significant step, bringing the concepts of zero-knowledge cryptography into practical application for blockchain developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j8DN7SbTjbye2615.png" /></figure><h3>A Landmark Event: The Aleo Setup Ceremony</h3><p>August 2021 saw the Aleo Setup Ceremony, a historic event in the blockchain world. This multiparty computation (MPC) was inspired by Zcash’s Powers of Tau and became the largest setup of its kind. With over 2,200 participants globally, the ceremony secured Aleo’s foundational zkSNARKs, setting the stage for decentralized private computation. This setup was crucial in ensuring a secure and robust network for the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f7RmvNrpx7qSyW3O" /></figure><h3>Pushing Boundaries: Testnet 2</h3><p>Testnet 2, launched between 2021 and 2022, further pushed the limits of what Aleo could achieve. Provers ran over 10,000 nodes, producing millions of zero-knowledge proofs — an unprecedented feat in the blockchain space. This testnet not only validated Aleo’s technical architecture but also its crypto-economic design. Throughout this phase, miners and provers were rewarded with 15 million Aleo Credits, and critical consensus issues were addressed, including a shift from vanilla Nakamoto Consensus to ASERT. This phase also saw the introduction of multiple mining pools, ensuring a more distributed and accountable network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e07AguID-KxvrOek" /></figure><h3>Incentives and Community Growth</h3><p>The Testnet 2 Incentives Program, launched in January 2022, rewarded active mining nodes and developers, further incentivizing community participation. This program distributed rewards to the top miners, GitHub contributors, and beta testers, strengthening Aleo’s ecosystem.</p><p>Testnet 3, which spanned 2022 to 2023, introduced AleoBFT, a new consensus algorithm combining proof-of-stake with work-based compensation. This testnet also saw the introduction of the Deploy &amp; Execute feature, allowing developers to deploy zero-knowledge programs that users could interact with. The Prover Incentives Program and Deploy Incentives Program, launched in January and August 2023 respectively, continued to encourage community participation, resulting in over 1,000 program submissions and 44,000 provers connecting to the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*at6NUTBhz41V5VnI" /></figure><h3>Expanding Horizons: Events and Community Engagement</h3><p>Beyond testnets, Aleo has launched several programs to drive community engagement and technological advancements. The Aleo Ambassador Program, established in 2022, has grown to include over 415 ambassadors who contribute high-quality content and promote Aleo’s mission. The ZPrize competition, launched the same year, has become a major event in the blockchain space, driving improvements in cryptographic algorithms and increasing awareness of zero-knowledge technology.</p><p>Aleo’s commitment to innovation continued with the zkML program in May 2023, integrating machine learning with zero-knowledge proofs. The Enigma series, launched in December 2023, brought together leading minds in ZK technology to solve complex puzzles, further advancing the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iP1NFiTyM76CFRVU" /></figure><h3>Preparing for Mainnet</h3><p>As Aleo prepares for its mainnet launch in 2024, it has taken significant precautions to ensure the network’s security and robustness. Multiple security audits were conducted by leading firms such as Trail of Bits, NCC Group, and zkSecurity, and the findings have been incorporated into Aleo’s final preparations for mainnet.</p><p>The Aleo Network Foundation, launched in December 2023, will guide and support Aleo’s transition to a fully decentralized, open-source network. This foundation will play a crucial role in developer education, grants, and product incubation, ensuring a thriving ecosystem post-mainnet launch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/0*GKzxJwo_gB9fFAcY.png" /></figure><h3>What’s Next for Aleo</h3><p>The Aleo community’s collective effort over the past five years has been nothing short of extraordinary. As Aleo moves closer to its mainnet launch, the contributions of developers, miners, provers, and ambassadors will continue to shape the future of the network and the broader blockchain ecosystem.</p><p>Aleo’s testnets and incentive programs have laid a strong foundation for a secure and private zero-knowledge network. As we enter this new phase, the community’s involvement remains vital in driving Aleo’s mission forward. The mainnet launch is not just the culmination of years of hard work — it’s the beginning of a new chapter for Aleo and the future of the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*B9RJ9PJyhmNvXiRX.jpeg" /></figure><h3>Continue Learning</h3><p>To learn more about building, deploying, and launching applications on Aleo, explore our comprehensive resources and join the growing community committed to a more secure and private web.</p><ul><li><a href="https://aleo.org/post/prover-incentives-2-retrospective/">Prover Incentives II Retrospective</a></li><li><a href="https://aleo.org/post/announcing-aleo-deploy-incentives/">Announcing Aleo Deploy Incentives | Aleo Blog</a></li></ul><p><a href="https://aleo.org/post/the-future-of-zero-knowledge-with-aleo/">https://aleo.org/post/the-future-of-zero-knowledge-with-aleo/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7747c9008ce5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero Knowledge Proofs and Aleo]]></title>
            <link>https://ogpetya.medium.com/zero-knowledge-proofs-and-aleo-7fee05cf744d?source=rss-100bdbcadd3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fee05cf744d</guid>
            <category><![CDATA[zero-knowledge-proofs]]></category>
            <category><![CDATA[aleo]]></category>
            <dc:creator><![CDATA[Dmytriiev Petro]]></dc:creator>
            <pubDate>Sun, 28 Jul 2024 10:44:49 GMT</pubDate>
            <atom:updated>2024-07-28T10:44:49.288Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHC2dD8G9PktLdJLoBD30g.png" /></figure><h3>What is a Zero Knowledge Proof?</h3><p>A zero-knowledge proof is a cryptographic method that allows one party (the prover) to prove to another party (the verifier) that they possess certain information or knowledge, without revealing the actual information. In a zero-knowledge proof, the prover convinces the verifier of the truth of a statement without disclosing any details about the statement itself. This concept is essential for maintaining privacy and security in various applications, as it allows authentication and verification without unnecessary information disclosure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*8_6kdUfMrGumDsTg.gif" /></figure><h3>What’s an example of Zero Knowledge?</h3><p>We find that the easiest and most simple form of a zero knowledge proof is the example of the two colored balls. Basically it goes that there are 2 people, one is colorblind and one is not. The not colorblind person has to prove to the colorblind person that the balls in the colorblind person’s hand are a different color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e7K2j8016pjIfo-S" /></figure><p>How is the non colorblind person going to prove they are different?</p><p>He will do this buy telling the colourblind man to show him the balls and the person will tell him which is red and which is blue. The colourblind person will then switch them behind his back. If the balls are really of different colours then the person seeing well will know they have been switched . If they repeat this many times eventually the colourblind person will know they are different because the good vision person will be right every time about weather the person switched the balls or not. In this way the good vision person prooved the balls are different without the other party seeing the colours.</p><p>Alice has two balls, labeled “X” and “Y,” with different colors that she wants to prove to Bob, who is colorblind, without revealing the colors. In multiple rounds, Bob randomly selects a ball from Alice’s pocket, and Alice tells him whether it’s “X” or “Y” without revealing the actual colors. Bob, initially guessing randomly, gradually begins to guess the actual colors more often due to the consistent pattern, thereby convincing Alice that the balls are indeed of different colors without disclosing their actual color information. This way, they achieve a zero-knowledge proof, where the claim is proven without revealing sensitive details.</p><h3>Zero Knowledge and Blockchains</h3><p>A major problem with blockchain technology is the fact that 99% of blockchains are public such as Bitcoin, Etherium and Solana. This means anyones finances can be viewed by everyone on these blockchains. This makes blockchains not fit to be adopted by everyone because people don’t want their transactions to be public. For example if I bought something, I wouldn’t want my friends to see that I sent money out of my wallet. This is the huge issue zkP will solve. Projects such as Aleo are blockchains that make use of Zero Knowledge Proofs to make transactions private and secure. Avail is a wallet built on the Aleo blockchain. Moreover Avail is a private self custodial wallet that will allow you to store your money in a decentralized way allowing only you to have access to it and only you can see transactions made by you making Avail a powerful tool for people who want to fully own what happens to their data and funds in a private way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DKFe2TaLlurQN25I" /></figure><h3>Zero knowledge from the ground up</h3><p>Aleo’s purpose-built zero-knowledge architecture allows developers to leverage the power of zero-knowledge in their applications without dealing with the tedious and time-consuming complexities of cryptography.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1oiXUusAihGIqTZN" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fee05cf744d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>