scieee AI-readable full text Open interactive document viewer

eSTARK: extending STARKs with arguments

Masip Ardévol, Héctor,Baylina Melé, Jordi,Guzmán Albiol, Marc,Muñoz Tapia, José Luis

Abstract

STARK is a widely used transparent proof system that uses low-degree tests for proving the correctness of a computer program. STARK consumes an intermediate representation known as AIR that is more appropriate for programs with a relatively short and structured description. However, an AIR is not able to succinctly express non-equality constraints, leading to the incorporation of unwanted polynomials. We present the eSTARK protocol, a new probabilistic proof that generalizes the STARK family through the introduction of a more generic intermediate representation called eAIR. We describe eSTARK in the polynomial IOP model, which combines the optimized version of the STARK protocol with the incorporation of three arguments into the protocol. We also explain various techniques that enhance the vanilla STARK complexity, including optimizations applied to polynomial computations, and analyze the tradeoffs between controlling the constraint degree either at the representation of the AIR or inside the eSTARK itself.

Full text

Designs, Codes and Cryptography (2024) 92:3677–3721 https://doi.org/10.1007/s10623-024-01457-z eSTARK: extending STARKs with arguments Héctor Masip-Ardevol1·Jordi Baylina-Melé2·Marc Guzmán-Albiol1· Jose Luis Muñoz-Tapia1 Received: 3 November 2023 / Revised: 8 May 2024 / Accepted: 29 June 2024 / Published online: 20 July 2024 © The Author(s) 2024 Abstract STARK is a widely used transparent proof system that uses low-degree tests for proving the correctness of a computer program. STARK consumes an intermediate representation known as AIR that is more appropriate for programs with a relatively short and structured description. However, an AIR is not able to succinctly express non-equality constraints, leading to the incorporation of unwanted polynomials. We present the eSTARK protocol, a new probabilistic proof that generalizes the STARK family through the introduction of a more generic intermediate representation called eAIR. We describe eSTARK in the polynomial IOP model, which combines the optimized version of the STARK protocol with the incorporation of three arguments into the protocol. We also explain various techniques that enhance the vanilla STARK complexity, including optimizations applied to polynomial computations, and analyze the tradeoffs between controlling the constraint degree either at the representation of the AIR or inside the eSTARK itself. Keywords STARK ·eSTARK ·AIR ·eAIR ·FRI ·Lookup Mathematics Subject Classification 94A60 ·94B70 Communicated by C. Weinert. BHéctor Masip-Ardevol hector[email protected] Jordi Baylina-Melé [email protected] Marc Guzmán-Albiol [email protected] Jose Luis Muñoz-Tapia [email protected] 1Department of Network Engineering, Polytechnic University of Catalonia, Barcelona 08034, Spain 2Polygon zkEVM, Zug, Switzerland 123 3678 H. Masip-Ardevol et al. Contents 1 Introduction ............................................. 3679 1.1 Organization ........................................... 3681 2 Preliminaries ............................................. 3681 2.1 Notation ............................................. 3681 2.2 Interactive oracle proofs and STARKs ............................. 3682 2.3 FRI ............................................... 3684 TheCommitPhase ....................................... 3684 The query phase ......................................... 3684 The batched FRI Protocol ...................................... 3686 The batched consistency check ................................. 3686 FRI as a polynomial commitment scheme .............................. 3687 2.4 Vanilla STARK ......................................... 3688 Constraints and trace ...................................... 3688 From polynomial constraints to rational functions ....................... 3689 The quotient polynomial .................................... 3689 Trace low degree extension ................................... 3690 Trace consistency check ..................................... 3691 The FRI polynomial ....................................... 3691 Proof verification ........................................ 3692 Soundness ............................................ 3692 2.5 Arguments ............................................ 3693 Multiset equality ........................................ 3693 Connection ........................................... 3694 Inclusion ............................................. 3695 3 STARK techniques .......................................... 3696 3.1 Commiting to multiple polynomials at once .......................... 3696 3.2 On the quotient polynomial ................................... 3697 3.3 FRI polynomial computation .................................. 3697 3.4 Adding selected vector arguments ............................... 3698 From vector arguments to simple arguments .......................... 3699 From selected vector arguments to simple arguments ..................... 3700 Parallel execution of the arguments ............................... 3702 3.5 Controlling the constraint degree wih intermediate polynomials ................ 3704 4 The eSTARK protocol ........................................ 3707 4.1 Extended algebraic intermediate representation (eAIR) .................... 3707 4.2 Preprocessed polynomials and public values .......................... 3708 4.3 The setup phase ......................................... 3708 4.4 IOP for eAIR .......................................... 3709 4.5 From a STIK to a non-interactive STARK ........................... 3712 4.6 Full protocol description .................................... 3713 PROVER ALGORITHM .................................... 3713 Round 1: trace column polynomials .............................. 3713 Round 2: inclusion polynomials ................................ 3714 Round 3: grand product and intermediate polynomials ..................... 3714 Round 4: trace quotient polynomials .............................. 3714 Round 5: deep query answers .................................. 3714 Round 6: FRI protocol ..................................... 3715 VERIFIER ALGORITHM ................................... 3716 5 Conclusions ............................................. 3716 Appendix A: Vanilla STARK description ................................ 3717 References ................................................ 3720 123 eSTARK: extending STARKs with arguments 3679 1 Introduction Since the term was coined and the first example was given in 1985 by Goldwasser et al. [21], probabilistic proofs leverages a set of protocols, such as Interactive Proofs (IPs) [21]and Probabilistic Checkable Proofs [1], that enable one party, known as the prover, to provide a guarantee to another party, known as the verifier, that the former performed a computation requested by the latter correctly. In practical terms, probabilistic proofs enable a computationally weak device to monitor the execution of a powerful but untrusted powerful server, allowing it to outsource a program execution to the server. Probabilistic proofs can be even more useful when they also possess a property known as zero-knowledge [21], which intuitively means that the proof reveals nothing but its validity. Equipped with zero-knowledge, probabilistic proofs let the prover demonstrate knowledge of a secret input satisfying a certain statement without revealing any information about the input beyond the validity of the statement. For example, a probabilistic proof satisfying zero-knowledge can be used to prove possession of a secret key associated with a particular public key or the knowledge of the preimage of a particular hash digest; without revealing any information about the secret key or the preimage. The latter could be used to log in to a website without typing a password, by simply sending proof of possession of the valid password. Slightly more formal, our scenario is one in which the verifier, denoted as V, sends a program description fand an input xfor that program to the prover, denoted as P. Then, Pcomputes and returns the execution of program fon input x, i.e., y=f(x), along with a proof πthat the output yis correct and consistent with the description fand the input x. The proof πshould satisfy the following properties: •Completeness.IfPis honest, which means that he knows a pair (x,y)such that the claim f(x)=yis true and follows the protocol properly, then Pshould be able to compute a proof that convinces the verifier Vof the validity of the claim. •Soundness. A malicious prover P∗should be able to produce a proof that convinces the verifier Vof a statement of a false claim, i.e., that f(x)= y, with negligible probability. Completeness means that an honest verifier will always accept a proof if it is generated by an honest prover. Soundness deals with the verifier not accepting false proofs from malicious provers. These two properties protect the verifier against malicious provers. Moreover, the verification of the proof πshould be much more efficient than rerunning the program fon x. To also make probabilistic proofs privacy-preserving, Pcan provide his private input wto the computation, known as the witness. Thus, fnow is written as a function of two inputs (x,w)such that f(x,w) =y. If at the end of the protocol, Vis convinced that the statement y=f(x,w)is true without learning anything about w, then the scheme satisfies the zero-knowledge property and is typically called a Zero-Knowledge Proof (ZKP). More formally, a ZKP satisfies completeness, soundness and zero-knowledge defined as follows: •Zero-Knowledge: After interacting with Pabout the claim f(x,w)=y,Vshould learn nothing about the witness wand still be convinced of the validity of the claim. Compared with completeness and soundness, the zero-knowledge property guarantees the privacy of the prover’s secret information against malicious verifiers. 123 3680 H. Masip-Ardevol et al. zk-SNARKs. One family of ZKPs that has become of important consideration in recent years both in theory and in practice are zero-knowledge Succinct Non-interactive ARguments of Knowledge (zk-SNARKs) [9]. At a high level, zk-SNARKs is a generic term to refer to ZKPs whose cryptographic assumptions and computational complexity are reasonable for practical use. More specifically, the acronym zk-SNARKs refers to probabilistic proofs such that: •zk: Satisfy the zero-knowledge property, even though it is optional. •Succinct: Have size sublinear compared to the size of the statement or the witness, i.e., the size of the computation itself. •Non-Interactive: Do not require rounds of interaction between a particular prover and verifier and are publicly verifiable. •Argument: Assume that are generated by provers having at most polynomial computational resources. In particular, provers are not able to break standard cryptographic assumptions. •Of Knowledge: Satisfy knowledge soundness rather than plain soundness.Thatis,the proof demonstrates that the prover owns a witness for the statement, not only its existence. In the literature it can be found many examples of zk-SNARKs [10,12,15,22], each of them based on distinct cryptographic primitives and coming with different tradeoffs. An application that makes use of zk-SNARKs as its core technology is Zcash [33], a public blockchain based on bitcoin that uses these proofs in its core protocol for verifying that private transactions, named shielded transactions, have been computed correctly while revealing anything else to an external observer. More applications range from using zk- SNARKs to fight disinformation [24], to using zk-SNARKs for proving that convolutional neural networks have made predictions correctly without revealing the model itself [26]. zk-STARKs. Although zk-SNARKs have numerous applications, they suffer from a severe limitation: the requirement of a trusted party that generates random public parameters, known as the trusted setup, for the system to work that eliminates any knowledge of the randomness used in the process (typically known as the toxic waste). In fact, if a malicious party obtains access to that toxic waste then this party can easily forge false proofs. As a result, systems that remove the previous requirement, and are therefore of transparent nature, have been developed. The most prominent family of transparent ZKPs are zero-knowledge Scalable Transparent ARguments of Knowledge (zk-STARKs) [5]. Apart from satisfying the same properties of zk-SNARKs, zk-STARKs are required to satisfy two additional properties: •Scalability. Proving time is at most quasilinear and verification time is at most logarithmic in the size of the statement. •Transparency. They do not require any trusted setup, i.e., any randomness used by transparent frameworks are public coins. Examples of zk-STARKs are also present in the literature [32], [13], [29]. Intermediate Representations. Given a program f, to compute a proof of the validity of the execution of f, we typically agree upon an equivalent model amenable to probabilistic proof and then express fas an algebraic constraint satisfaction problem of that model. This latter step is often called arithmetization, the output of such being an intermediate representation. For instance, (unstructured) arithmetic circuits are often encoded as a system of quadratic equations over a finite field known as Rank-1 Constraint System (R1CS).In 123 eSTARK: extending STARKs with arguments 3681 contrast, “structured” arithmetic circuits are often encoded as a set of repeated polynomial computations known as Algebraic Intermediate Representation (AIR). Here, by structured we are referring to circuits that are designed with a layered architecture, where each layer contains a small circuit that is replicated in every layer. In fact, an AIR is the standard intermediate representation consumed by a STARK [30]. Since we will be dealing with structured arithmetic circuits, let us introduce an AIR more formally. An AIR Aover a field Fis defined by a set of multivariate constraint polynomials Ci∈F[X1,...,X2M]. The idea is that f, represented as a set of univariate polynomials p1,...,p2M∈F[X], will be said to satisfy Aif and only if the following polynomial constraints: Ci(p1(X),...,p2M(X)) =0, are satisfied over a subset of F. Therefore, we translate the computation of finto the satisfaction of every polynomial Ciof an (equivalent) AIR A, being the latter ready to be consumed by an appropriate STARK. Note that the definition of an AIR only captures polynomial constraints defined through equality. So, for instance, we are not able to directly express that the evaluations of a polynomial over the given subset are lower than a predetermined upper bound. For this, we would need to express this inequality as a set of equality with the incorporation of new polynomials such that the new constraints satisfy the equality if and only if the inequality is satisfied. In this paper, we enlarge the type of constraints that can be captured by an AIR with the addition of non-identity constraints satisfying some requirements. We call the resulting constraint system an extended AIR (eAIR). Details will be explained in Sect. 4.1. Moreover, we provide a particular probabilistic proof that is ready to consume an eAIR, and because it will be defined as a generalization of a STARK, we will refer to it as an extended STARK (eSTARK). 1.1 Organization This paper is organized as follows. In Sect. 2we recall basic definitions related to the IOP model, introduce the non-identity constraints from which we enlarge the AIR expressiveness and provide an in-depth overview of STARKs. Moreover, we explain the low-degree test FRI that will be later on used by our eSTARK. In Sect. 3we not only exhibit the main differences between STARKs and our eSTARK, but we also explain how to introduce the new type of constraints into the STARK protocol. We put everything together in Sect. 4and proof that the eSTARK protocol is sound. Moreover, in Sect. 4.5 we provide a full description of our eSTARK in the practical realm. We conclude in Sect. 5. 2 Preliminaries 2.1 Notation We denote by Fto a finite field of prime order pand F∗to its respective multiplicative group and define kto be the biggest non-negative integer such that 2k|(p−1). We also write K to denote a finite field extension of F,ofsizepe,e≥2. Furthermore, we write F[X](resp. K[X]) for the ring of polynomials with coefficients over F(resp. K) and write F<d[X](resp. K<d[X]) to denote the set of polynomials of degree lower than d. 123 3682 H. Masip-Ardevol et al. Although all the protocols presented in this article work over any prime order, we fix our attention on fields that contain a multiplicative subgroup of size a large power of two. This restriction is crucial to achieving a practical protocol. Given a cyclic subgroup Sof F∗,wedenotebyLi∈F<|S|[X]thei-th Lagrange polynomial for S.Thatis,Lisatisfies Li(gi)=1andLi(gj)=0for j= i,wheregis used here to denote the generator of S. Moreover, we denote by ZS(X)=X|S|−1∈F[X]to the polynomial that vanishes only over Sand call it the vanishing polynomial over S. We denote by Gto a cyclic subgroup of F∗with order nsatisfying n|2kand 1 <n<2k, and let g∈Fdenote the generator of G. Similarly, we denote by Hto a nontrivial coset of a cyclic subgroup of F∗with order msatisfying m|2kand n<m. Given a set of polynomials p1,p2,...,pN∈K[X]we denote by MTR(p1,...,pN)to the Merkle root obtained after computing a Merkle tree [27] whose leaves are the evaluations of p1,...,pNover the domain H. Additionally, given a set of elements x1,x2,...,xN∈K, we also use MTP(x1,...,xN)to denote the Merkle tree path (i.e., the Merkle proof) computed from the leaf containing these elements. If X={x1,...,xN},thenweuseMTP(X)as a shorthand for MTP(x1,...,xN). Finally, in the description of the protocols, we use Pto denote the prover entity and Vto denote the verifier entity. 2.2 Interactive oracle proofs and STARKs In this section, we define a polynomial IOP [7] and the standard security notions associated with this model. Moreover, we introduce a popular polynomial IOP family of protocols known as STIK [4] and explain how a STIK can be compiled into a STARK. Definition 1 (Polynomial IOP) Given a function F, a public coin polynomial interactive oracle proof (IOP) for Fis an interactive protocol between two parties, the prover Pand the verifier V, that comprises krounds of interaction. Pis given an input wand both Pand Vare given a common input x. At the start of the protocol, Pprovides to Vavalueyand claims to him the existence of a wsatisfying y=F(x,w). In the i-th round, Vsends a uniformly and independently random message αito P.Then Preplies with a message of one of the two following forms: (1) a string mithat Vreads in full, or (2) an oracle to a polynomial fithat Vcan query (via random access) after the i-th round of interaction. At the end of the protocol, Voutputs either accept or reject, indicating whether Vaccepts P’s claim. The security notions for IOPs are similar to the security notions of other preceding models (e.g., interactive proofs). In the following definition, probabilities are taken over the internal randomness of V. Definition 2 (Completeness and (Knowledge) Soundness) We say that a polynomial IOP has perfect completeness and soundness error at most εsif the following two conditions hold. •Perfect Completeness.Foreveryxand every prover Psending a value ysatisfying y=F(x,w)at the start of the protocol, it holds that: Pr [V(x,P(x,w))=accept]=1, where V(x,P(x,w))denotes the V’s output after interacting with the prover on input x. 123 eSTARK: extending STARKs with arguments 3683 •Soundness.Foreveryxand every prover P∗sending a value yat the start of the protocol, if it holds that: Pr V(x,P∗(x,w))=accept≥εs, then ysatisfies y=F(x,w). If the next condition holds as well, we say that the polynomial IOP has knowledge soundness error at most εks. •Knowledge Soundness. There exists a probabilistic polynomial-time algorithm E, known as the knowledge extractor, such that for every xand every prover P∗sending a value y at the start of the protocol if it holds that: Pr V(x,P∗(x,w))=accept≥εks, then E(x,P∗(x,w) )=wand ysatisfies y=F(x,w). In words, soundness guarantees that a malicious prover cannot succeed with probability greater than εson the “existence” claim of w; whereas knowledge soundness guarantees that a malicious prover cannot succeed with probability greater than εks claiming “possession” of wsatisfying y=F(x,w). A polynomial IOP satisfying knowledge soundness is known as a polynomial IOP of knowledge. Naturally, knowledge soundness implies soundness. Surprisingly, the converse is also true for polynomial IOPs (see, e.g., Lemma 2.3 in [11]). This means that proving the soundness of a polynomial IOP is sufficient for achieving knowledge soundness. Definition 3 (STIK) A Scalable Transparent polynomial IOP of Knowledge (STIK) is a polynomial IOP that moreover satisfies the following properties: •Transparent. They do not require a trusted setup before the execution of the protocol. This setup constitutes a single point of failure and could be exploited by powerful parties to forge false proofs. •Doubly Scalable. The verifier runs in time O(log(n)) and the prover runs in time O(nlog(n)),whereninformally denotes the size of the computation F. When STIKs get instantiated for practical deployment, they result in protocols in which the prover is assumed to be computationally bounded. Protocols of such kind are known as argument systems (in contrast to proof systems), and consequently, instantiation of STIKs results in protocols satisfying soundness only against adversaries running in polynomial time. Definition 4 (STARK) A scalable transparent argument of knowledge (STARK) is a realization of a STIK through a family of collision-resistant hash functions. More specifically, polynomial oracles sent from the prover to the verifier in the underlying polynomial IOP are substituted by Merkle roots (computed from polynomial evaluations over a set); and whenever the verifier asks queries to a polynomial fat v, the prover answers with f(v) together with the Merkle path associated with it. Finally, we briefly explain how to remove the interaction between a specific prover and verifier of protocols and make them publicly verifiable. The Fiat-Shamir heuristic [14] can be used to compile a STIK into a non-interactive argument of knowledge in the random oracle model by substituting verifier’s messages for queries to the random oracle on input the previous prover’s messages until that point. The random oracle is modeled in practice by a cryptographic hash function. Specific details on this compilation will be explained in Sect. 4.5. Therefore, a realization of a non-interactive STIK is called a non-interactive STARK (but we abuse notation and refer to both as STARKs). 123 3684 H. Masip-Ardevol et al. 2.3 FRI Fast Reed-Solomon Interactive Oracle Proof of Proximity (FRI) [6] is a protocol for proving that a function f:H→Fis close to a polynomial of low degree d. Here, by low degree, we mean that d|H|. The FRI protocol consists of two phases. In the first phase, known as the commit phase, the prover commits to (via Merkle trees) a series of functions generated from fand random elements v0,v 1,... from Kprovided by the verifier at each round. Then, in the second phase, known as the query phase, the prover provides a set of evaluations of the previously committed functions at a point randomly chosen by the verifier. Following, we provide more details about how each phase works. The Commit Phase Let’s denote by p0the function fof interest and assume for the simplicity of the exposition that the prover is honest (i.e., p0is a polynomial of low degree). In the commit phase, the polynomial p0is split into two other polynomials g0,1,g0,2:H2→Kof degree lower than d/2. These two polynomials satisfy the following relation with p0: p0(X)=g0,1(X2)+X·g0,2(X2). (1) Then, the verifier sends to the prover a uniformly sampled v0∈K, and asks the prover to commit to the polynomial: p1(X):= g0,1(X)+v0·g0,2(X). Note that p1is a polynomial of degree less than d/2 and the commitment of p1is not over Hbut over H2={x2:x∈H}, which is of size |H|/2. The prover then continues by splitting p1into g1,1and g1,2of degree lower than d/4, then constructing p2with a uniformly sampled v1∈Ksent by the verifier. Again, p2is of degree d/22and committed over H22={x2:x∈H2},whosesizeis|H|/22. The whole derivation of pi+1from piis often known as split-and-fold due to the prover splitting the initial polynomial into two and then folding it into one using a random value. The previous process gets repeated a total of k=log2(d)times, the point at which deg(pk)=0 and the prover sends a constant pk, representing a polynomial of degree lower than 1, to the verifier. The query phase In the query phase, the verifier sends a uniformly sampled r∈Hto the prover and queries the evaluations p0(r),p0(−r)and p1(r2).Fromp0(r)and p0(−r)the verifier computes p1(r2)and checks that the computed value matches with the third value p1(r2)provided by the prover. To obtain p1(r2)from p0(r)and p0(−r), the verifier first solves the following system of linear equations for g0,1(r2), g0,2(r2): p0(r)=g0,1(r2)+r·g0,2(r2), p0(−r)=g0,1(r2)−r·g0,2(r2), and then computes: p1(r2)=g0,1(r2)+v0·g0,2(r2). 123 eSTARK: extending STARKs with arguments 3685 Fig. 1 Skeleton description of FRI’s commit phase Fig. 2 Skeleton description of one iteration of FRI’s query phase The verifier continues by querying for p1(−r2)and p2(r4).Fromp1(r2)and p1(−r2) computes p2(r4)as before and checks that the computed value is consistent with p2(r4). Each step locally checks the consistency between each pair (pi,pi+1). The verifier continues in this way until it reaches the value of the constant pk. The verifier checks that the value sent by the prover is indeed equal to the value that the verifier computed from the queries up until pk−1. To fully ensure correctness, the prover must accompany the evaluations that he sends with a claim of their existence (via Merkle tree paths). Upon the completion of this process, the verifier has a first confirmation that the polynomials committed in the commit phase p0,p1,...,pkare consistent with each other. Finally, to achieve the required bounds for the soundness of the protocol, the query phase is repeated multiple times. We give the specific soundness bound of a more generic version of FRI in Theorem 1. The full skeleton description of FRI can be found in Fig. 3a. 123 3692 H. Masip-Ardevol et al. What we obtain is that the Fpolynomial is of degree lower than n−1 if and only if: (1) both the trace columns polynomials triand the trace quotient polynomials Qiare of degree lower than nand (2) all the values sent by the prover in the previous step are evaluations of the corresponding polynomials. Finishing with our example, the prover computes the Fpolynomial as: F(X):= ε(1) 1 tr1(X)−tr1(z) X−z+ε(1) 2·tr2(X)−tr2(z) X−z+ε(1) 3·tr3(X)−tr3(z) X−z +ε(1) 4·tr4(X)−tr4(z) X−z+ε(1) 5·tr5(X)−tr5(z) X−z+ε(2) 1·tr1(X)−tr1(gz) X−gz +ε(3) 1·Q1(X)−Q1(z2) X−z2+ε(3) 2·Q2(X)−Q2(z2) X−z2. Proof verification To verify the STARK, the verifier performs the following checks: (a) Trace Consistency. Checks that the trace quotient polynomials Q1,...,QSare consistent with the trace column polynomials tr1,...,trNby means of the evaluations of these polynomials at either z,gz or zS. I.e., the verifier checks that Eq. (11) is satisfied. (b) Batched FRI Verification. It runs the batched FRI verification procedure on the polynomial F. If either (a)or (b)fails at any point, the verifier aborts and rejects. Otherwise, the verifier accepts. The full skeleton description of the vanilla STARK protocol can be found in one-shot in Appendix A, in which we include the FRI message exchange in Fig. 7. Soundness We finally recall the soundness error of the vanilla STARK protocol as in Theorem 4 of [30]. Recall that ρ=|G|/|H|is the rate of the code. Theorem 2 (Soundness) Fix integer m ≥3. Suppose a prover that interacts with a verifier in the vanilla STARK protocol causes it to accept with probability two times greater than: εSTARK := 1 |K|+(D+|G|+S)· |K|−S|H|−|G|+εFRI,(14) then Eq. (6) is satisfied (i.e., the original statement is true), where =m/ρ and εFRI is as defined in Theorem 1. We give some intuitions for the computation of this error bound. The first term in Eq. (14) corresponds to the probability of sets {a1,b1,...,aT,bT}being “good” under a dishonest prover. This means that if all ai,biare uniformly and independently randomly sampled, then the probability the quotient polynomial Qis a polynomial is at most /|K|. The second term corresponds to the probability of sampling a z∈K\(G∪¯ H)for which the FRI protocol passes with a probability greater than εFRI. 123 eSTARK: extending STARKs with arguments 3693 2.5 Arguments In this section, we introduce the “arguments” that we will use to extend the vanilla STARK. Here, by argument, we mean a relation between polynomials that cannot be directly expressed through an identity. We often refer to these arguments as non-identity constraint.Thethree arguments we will introduce are multiset equality,connection and inclusion. The protocols that instantiate these arguments are all based on the same idea of the computation of a grand product polynomial over the two (or more) vectors involved in the argument. Specifically, a polynomial is cumulatively computed as the quotient of a function of the first vector and a function of the second vector. Then, a set of identities is proposed as insurance for a verifier of the protocol that not only the grand product was correctly computed by a prover, but also that the specific intention of the protocol is satisfied. To ensure the soundness of the protocols, random values uniformly sampled by the verifier are used in such computation. Recall that G=gis a cyclic subgroup of F∗of order n. Multiset equality Given two vectors f=(f1,..., fn)and t=(t1,...,tn)in Fn, a multiset equality argument, denoted f. =t, is used for checking that fis equal to tas multisets (or equivalently, that fand tare a permutation of each other). The protocol that instantiates the multiset equality arguments works by computing the following grand product polynomial Z∈K<n[X]: Z(gi)=⎧ ⎪ ⎪ ⎨ ⎪ ⎪ ⎩ 1,if i=1 i−1  j=1 (fj+γ) (tj+γ),if i=2,...,n where γ∈Kis the value sent from the verifier. The definition of the previous polynomial is based on the following lemma. Lemma 1 (Soundness of Multiset Equality) Fix two vectors f =(f1,..., fn)and t = (t1,...,tn)in Fn. If the following holds with probability larger than εMulEq(n):= n/|K| over a random γ∈K: n  i=1 (fi+γ)= n  i=1 (ti+γ), then f . =t. Proof Assume that f. =t. Then, there must be some i∗∈[n]such that ti∗= fifor all i∈[n]. Define degree npolynomials F(X):= n i=1(fi+X)and T(X):= n i=1(ti+X). By the assumption, we have that F= Tand therefore by the Schwartz-Zippel lemma F(γ ) = T(γ ) except with probability n/|K|. As a consequence of Lemma 1, the identities that must be checked by the verifier for x∈Gare the following: L1(x)·(Z(x)−1)=0,(15) Z(x·g)·(t(x)+γ)=Z(x)·(f(x)+γ), (16) where f,t∈F<n[X]are the polynomials resulting from the interpolation of {fi}i∈[n]and {ti}i∈[n]over G,respectively. 123 3694 H. Masip-Ardevol et al. Connection The protocol for a connection argument and the definitions and results we provide next are adapted from [15]. Given some vectors f1,..., fk∈Fnand a partition T={T1,...,Ts}of the set [kn],a connection argument, denoted (f1,..., fk)∝{T1,...,Ts}, is used to check that the partition Tdivides the field elements {fi,j}i∈[k],j∈[n]into sets with the same value. More specifically, if we define the sequence f(1),..., f(kn)∈Fby: f((i−1)n+j):= fi,j for each i∈[k],j∈[n],thenwehave f(1)=f(2)if and only if 1, 2belong to the same block of T. In order to express the partition Twithin a grand product polynomial, we define a permutation σ:[kn]→[kn]as follows: σis such that for each block Tiof T,σ(T)contains a cycle going over all elements of Ti. Then, the protocol that instantiates the connection arguments works by computing the following grand product polynomial Z∈K<n[X]: Z(gi)=⎧ ⎪ ⎪ ⎨ ⎪ ⎪ ⎩ 1,if i=1 k  =1 i−1  j=1 (f, j+γ·( −1)·n+j)+δ) (f, j+γ·σ(( −1)·n+j)+δ),if i=2,...,n where γ,δ ∈Kare the values sent from the verifier. The definition of the previous polynomial is based on the following lemma, a proof of which can be found2in Claim A.1. of [15] and is similar to the one of Lemma 1. Lemma 2 (Soundness of Connection) Fix f1,..., fk∈Fnand a partition T={T1,...,Ts} of [kn]. If the following holds with probability larger than εCon(n):= kn/|K|over randoms γ,δ ∈K: k  =1 n  j=1 (f, j+γ·(( −1)·n+j)+δ) = k  =1 n  j=1 (f, j+γ·σ(( −1)·n+j)+δ), then, (f1,..., fk)∝{T1,...,Ts}. As a consequence of Lemma 2, the identities that must be checked by the verifier for x∈Gare the following: L1(x)·(Z(x)−1)=0, Z(x·g)=Z(x)·(f1(x)+γ·SID1(x)+δ) (f1(x)+γ·Sσ1(x)+δ) ·····(fk(x)+γ·SIDk(x)+δ) (fk(x)+γ·Sσk(x)+δ) ,(17) where SIDi(gj)=(i−1)·n+jis the polynomial mapping G-elements to indexes in [kn]and Sσi(gj)=σ((i−1)·n+j)is the polynomial defined by σ. Since the permutation σperfectly relates with the partition Tit refers to, from now on we denote a connection argument between polynomials f1,..., fk∈F[X]and a partition Tas (f1,..., fk)∝(Sσ1,...,Sσk).Aswe will see in later sections, this overloading notation will become very natural. Formoredetailssee[15]. 2The claim in [15] is for a slightly more general protocol. 123 eSTARK: extending STARKs with arguments 3695 Inclusion The protocol for an inclusion argument and the definitions and results we provide next is adapted from the well-known Plookup protocol [16], with the “alternating method” provided in [28]. Given two vectors f=(f1,..., fn)and t=(t1,...,tn)in Fn, a inclusion argument, denoted f∈t, is used for checking that the set Aformed with the values {fi}i∈[n]is contained in the set Bformed with the values {t}i∈[n]. Notice that |A|,|B|≤n. In the protocol, the prover has to construct an auxiliary vector s=(s1,...,s2n)containing every element of fand twhere the order of appearance is the same as in t. The main idea behind the protocol is that if f∈t,then fcontributes to swith repeated elements. To check this fact, a vector sis defined as follows: s=(s1+γs2,s2+γs3,···,s2n+γs1). Then, the protocol essentially checks that sis consistent with the elements of f,tand s. To do so, the vector sis split into two vectors h1,h2∈Fn. In the protocol described in [16], h1and h2contain the lower and upper halves of s, while in our protocol in [28], we use h1to store elements with odd indexes and h2for even indexes, that is: h1=(s1,s3,s5, ..., s2n−1)and h2=(s2,s4,s6, ..., s2n). (18) With this setting in mind, the grand product polynomial is defined as: Z(gi)=⎧ ⎪ ⎪ ⎨ ⎪ ⎪ ⎩ 1,if i=1 (1+γ) i−1 i−1  j=1 (δ +fj)(δ(1+γ)+tj+γtj+1) (δ(1+γ)+s2j−1+γs2j)(δ(1+γ)+s2j+γs2j+1),if i=2,...,n where γ,δ ∈Kare the values sent from the verifier. The definition of the previous polynomial is based on the following lemma, which is a slight modification of Claim 3.1. of [16]. Lemma 3 (Soundness of Inclusion) Fix three vectors f =(f1,..., fn), t=(t1,...,tn)and s=(s1,...,s2n)with elements in F. If the following holds with probability larger than εInc(n):= (4n−2)/|K|over randoms γ,δ ∈K: (1+γ) n n  i=1 (δ +fi) n−1  i=1 (δ(1+γ)+ti+γti+1)= 2n−1  i=1 (δ(1+γ)+si+γsi+1), then f ∈t and s is the sorted by t concatenation of f and t. As a consequence of Lemma 3, the identities that must be checked by the verifier for x∈Gare the following: L1(x)(Z(x)−1)=0, Z(x·g)=Z(x)(1+γ )(δ +f(x))(δ(1+γ)+t(x)+γt(gx)) (δ(1+γ)+h1(x)+γh2(x))(δ(1+γ)+h2(x)+γh1(x·g)) .(19) where f,t∈F<n[X]are the polynomials resulting from the interpolation of {fi}i∈[n]and {ti}i∈[n]over G, respectively; and h1,h2∈F<n[X]are the polynomials resulting from the interpolation of the values defined in Eq. (18) over G. Formoredetailssee[16]and[28]. 123 3696 H. Masip-Ardevol et al. 3 STARK techniques We now explain the main differences between the polynomial computations carried on during the rounds of the vanilla STARK description (Sect. 2.4) and state-of-the-art implementations. We also explain the tradeoffs arising from controlling the constraint degree either at the representation of the AIR or inside the protocol itself. 3.1 Commiting to multiple polynomials at once During the batched FRI protocol, the prover sends Merkle tree commitments to multiple polynomials in each round. The naive way of proceeding is by sending one Merkle tree root per polynomial. In [30], it is described a natural sound alternative that arises from computing a single Merkle tree of all polynomials in each round and organizing the tree’s leaves in a particular way that reduces the amount of communication complexity. In particular, it not only reduces the amount of Merkle roots that Phas to send to Vin each round but also the Merkle paths that Pneeds to send to Vwhen Pgets asked for evaluations of multiple polynomials at the same point. As explained in Sect. 2.4, commitments are generated by computing Merkle trees over polynomial evaluations over a nontrivial coset H={h1,h2,h3,...,hm}of a cyclic subgroup of F∗with order m. Say that f1,..., fN∈K<n[X]is the set of polynomials that we want to construct the Merkle tree on. More precisely, we want to compute the Merkle tree over the following m×Nmatrix of polynomial evaluations: ⎛ ⎜ ⎜ ⎜ ⎝ f1(h1), f2(h1), ..., fN(h1) f1(h2), f2(h2), ..., fN(h2) . . .. . .··· . . . f1(hm), f2(hm), ..., fN(hm) ⎞ ⎟ ⎟ ⎟ ⎠ We start the construction of the Merkle tree by grouping the evaluations of f1,..., fNat a single point of H.Thatis,thei-th leaf of the Merkle tree is formed by (the hash of) the i-th row of the previous matrix. This gives a total of mleaves, which is by assumption a power of two. To be more precise, the leaf elements of the Merkle tree, indexed by the corresponding H-value, will consist on: leaf h1⇒ H(f1(h1), f2(h1),..., fN(h1)) leaf h2⇒ H(f1(h2), f2(h2),..., fN(h2)) . . .. . . leaf hm⇒ H(f1(hm), f2(hm),..., fN(hm)) where His any collision-resistant hash function. Once all the leaves are computed, the rest of the Merkle tree is computed as usual, by recursively hashing the concatenation of its two child nodes until the Merkle root is achieved. The commitment to the polynomials f1,..., fNis therefore defined as this single Merkle root. Now, notice how if Vrequests a Merkle proof for the evaluation of all f1,..., fNat a single point hi,Pcan prove the consistency of all the evaluations f1(hi),..., fN(hi)with the Merkle root by simply sending the Merkle path corresponding to the leaf containing such evaluations. Compared to the naive version, this version improves the proof size from O(Nlog m)elements down to O(log m)elements. 123 eSTARK: extending STARKs with arguments 3697 3.2 On the quotient polynomial In the vanilla STARK protocol, the quotient polynomial Q(Eq. 9) is computed by adjusting the degree of the rational functions: qi(X):= Ci(tr1(X),...,trN(X), tr1(gX),...,trN(gX)) ZG(X), to a sufficiently large power of two Dwith the help of two random values ai,bi.Thesumof the resulting polynomials ˆqi:= (aiXD−deg(qi)−1+bi)·qi(X)is precisely Q. There are two major issues with the previous definition of the quotient polynomial: (1) it leads to an amount of uniformly sampled values ai,biproportional to the number of constraints; and (2) the original STARK paper [30] does not provide a proof of why the degree adjustment is necessary at all. [6] instead proposes to obtain a single random value a∈Kand define the quotient polynomial as a random linear combination of the rational functions qias follows: Q(X):=   i=1 ai−1qi(X). Note that we not only remove the degree adjustment of the qi’s but also use powers of a single uniformly sampled value ainstead of sampling two values per constraint. A proof that this alternative way of computing the quotient polynomial is sound was carefully analyzed in Theorem 7 of [23] (and based on Theorem 7.2 of [6]). Importantly, the soundness bound of this alternative version is linearly increased by the number of constraints , so we might assume from now on that is sublinear in |K|to ensure the security of protocols. 3.3 FRI polynomial computation Recall from Sect. 2.4 the Fpolynomial was computed as follows: F(X):=  i∈I1 ε(1) i·tri(X)−tri(z) X−z+ i∈I2 ε(2) i·tri(gX)−tri(gz) X−gz + S  i=1 ε(3) i·Qi(X)−Qi(zS) X−zS, where I1={i∈[N]: tri(z)∈Evals(z)},I2={i∈[N]: tri(gz)∈Evals(gz)}and ε(1) i,ε (2) j,ε (3) k∈Kfor all i∈I1,j∈I2,k∈[S]. This way of computing the Fpolynomial has again (see Sect. 3.2) the issue that the number of random values sent from the verifier is proportional to the number of polynomials involved in the previous sum. Similar to the previous section, the Fpolynomial can be more optimally computed by requesting two random values ε1,ε 2∈K,usingε1to compute the part regarding evaluations at zand gz separately and finally mixing it all with ε1. More precisly, we define polynomials F1,F2∈K<n[X]: F1(X):=  i∈I1 εi−1 2·tri(X)−tri(z) X−z+ S  i=1 ε|I1|+i−1 2·Qi(X)−Qi(z) X−z F2(X):=  i∈I2 εi−1 2·tri(gX)−tri(gz) X−gz , 123 3698 H. Masip-Ardevol et al. and then we set F(X):= F1(X)+ε1·F2(X).Notethatsinceε1,ε 2are uniformly sampled elements, then so is ε1·εi 2for all i≥0. A commonly used alternative version of the Fpolynomial computation in practice (see, e.g.: [34]) involves requesting a single random value ε∈Kand directly computing  F(X):=  i∈I1 εi−1·tri(X)−tri(z) X−z+ i∈I2 ε|I1|+i−1·tri(gX)−tri(gz) X−gz + S  i=1 ε|I1|+|I2|+i−1·Qi(X)−Qi(zS) X−zS. This version has the disadvantage of not being computable in parallel like the previous version. Specifically, when the powers of ε2are being computed, it is possible to compute the polynomials F1and F2both sequentially and in parallel, while  Fcan only be computed sequentially after the computation of the powers of ε. 3.4 Adding selected vector arguments In what follows we describe how the constraint system can be augmented with the arguments presented in Sect. 2.5. All of these arguments follow a similar reduction from a declared relation between trace columns to the satisfiability of polynomial identities. [19] describes how this is done for the cases of multiset equality and range checks in a particular setting. In this section, we generalize their description to make these techniques to be applicable into a broader setting. Recall the arguments from Sect. 2.5: •Inclusion (∈). The set constructed from the evaluations of a polynomial fover a multiplicative subgroup Gis contained in an equally defined set of another polynomial t. •Multiset Equality (. =). The multiset considered from the evaluations of a polynomial f over a multiplicative subgroup Gis equal to the multiset considered from the evaluations of another polynomial t. •Connection (∝). The vectors constructed from the evaluations of a set of polynomials f1,..., fNover a multiplicative subgroup Gdoes not vary after applying a particular permutation σto them. To prove the correctness of these non-identity constraints altogether, we will perform their reduction to identity constraints jointly. Let Mdenote the number of inclusion instantiations, Mthe number of multiset equality instantiations and M the number of connection instantiations. The idea is as follows. In the first round, the prover commits to all the polynomials involved in every non-identity constraint as described in Sect. 3.1. Then, in the second round, for each inclusion constraint j∈[M]the prover computes and commits to the polynomials h1,jand h2,jthat encode the randomized difference of the polynomials subject to inclusion j. This accounts for 2Mpolynomials. In the third round, for each non-identity constraint i∈[M+M+M]the prover computes and commits to the associate grand product polynomial Zi, whose definition varies depending on which argument Pis trying to prove. This sums up to Mpolynomials for inclusions, Mpolynomials for multiset equalities and M polynomials for connections. In total, adding these non-identity constraints adds up to 3M+M+M committed polynomials and 2(M+M+M)polynomial constraints to the original constraint system. Notice that the generated constraints differ from the original 123 eSTARK: extending STARKs with arguments 3699 ones in that they depend on uniformly sampled field elements by the verifier. The standard term to refer to such constraint systems is randomized AIR [17]. Following, we explain how to generalize both inclusions and multiset equalities to not only involve multiple polynomials but also how to prove a selective portion of the values that trace polynomials represent. From vector arguments to simple arguments We start with the reduction of vector inclusions or multiset equalities to simple (i.e., involving only one polynomial on each side) inclusions or multiset equalities. Definition 5 (Vector Arguments) Given polynomials fi,ti∈K<n[X]for i∈[N],avector inclusion, denoted (f1,..., fN)∈(t1,...,tN), is the argument in which for all x∈Gthere exists some y∈Gsuch that: (f1(x),..., fN(x)) =(t1(y),...,tN(y)). (20) Avector multiset equality, denoted (f1,..., fN). =(t1,...,tN), is the argument in which for all y∈Gthere exists exactly one x∈Gfor which Eq. (20) holds. That is, (vector) multiset equalities define a bijective mapping. To reduce the previous vector arguments to simple ones, we make use of a uniformly sampled element α∈K. Namely, instead of trying to generate an argument for the vector relation, we define the following polynomials: F(X):= N  i=1 αi−1fi(X), T(X):= N  i=1 αi−1ti(X), (21) and proceed to prove the relation F∈Tor F. =T. Notice that both Fand Tare in general polynomials with coefficients over the field extension Keven if every coefficient of fi,tiis contained in the base field F. The previous reduction is sound, as shown in the following lemma. Lemma 4 Given polynomials fi,ti∈K<n[X]for i ∈[N]and F,T∈K<n[X]as defined by Eq. (21), if F∈T(resp. F. =T), then (f1,..., fN)∈(t1,...,tN)(resp. (f1,..., fN). =(t1,...,tN)) except with probability n ·(N−1)/|K|over the random choice of α. Proof Assume (f1,..., fN)/∈(t1,...,tN), then there exists some x∈Gsuch that for every y∈Gwe have (f1(x),..., fN(x)) /∈(t1(y),...,tN(y)). This means that F(x)= T(y) for each y∈Gexcept with probability (N−1)/|K|over the random choice of α.Since |G|=n, the lemma follows.  It is therefore straightforward to generalize to the vector setting the protocols for (simple) inclusion arguments and multiset equality arguments explained in Sect. 2.5 by using the previous reduction strategy. The soundness bounds for the new protocols cannot be greater than the sum of the original protocol plus the new reduction. Lemma 5 Given polynomials fi,ti∈K<n[X]for i ∈[N], we obtain: 123 3700 H. Masip-Ardevol et al. 1. Inclusion Protocol.LetF,T∈K<n[X]as defined by Eq. (21). The prover sends oracle functions [fi],[ti]for i ∈[N]to the verifier in the first round, who responds with a uniformly sampled α∈K. If a prover that interacts with a verifier in the inclusion protocol of Sect. 2.5 on input F and T causes it to accept with probability greater than: nN−1 |K|+εInc(n), then (f1,..., fN)∈(t1,...,tN). 2. Multiset Equality Protocol.LetF,T∈K<n[X]as defined by Eq. (21). The prover sends oracle functions [fi],[ti]for i ∈[N]to the verifier in the first round, who responds with a uniformly sampled α∈K. If a prover that interacts with a verifier in the multiset equality protocol of Sect. 2.5 on input F and T causes it to accept with probability greater than: nN−1 |K|+εMulEq(n), then (f1,..., fN). =(t1,...,tN). From selected vector arguments to simple arguments Now, let’s go one step further by the introduction of selectors. Informally speaking, a selected inclusion (multiset equality) is an inclusion (multiset equality) not between the specified two polynomials f,t, but between the polynomials generated by the multiplication of fand t with (generally speaking) independently generated selectors. Definition 6 (Selected Vector Arguments) We are given polynomials fi,ti∈K<n[X]for i∈[N]. Furthermore, we are also given two polynomials fsel,tsel ∈F<n[X]whose range over the domain Gis {0,1}.Thatis, fsel and tsel are selectors.Aselected vector inclusion, denoted fsel ·(f1,..., fN)∈tsel ·(t1,...,tN), is the argument in which for all x∈Gthere exists some y∈Gsuch that: fsel(x)·(f1(x),..., fN(x)) =tsel(y)·(t1(y),...,tN(y)), (22) where fsel(x)·(f1(x),..., fN(x)) denotes the component-wise scalar multiplication between the field element fsel(x)and the vector (f1(x),..., fN(x)). Aselected vector multiset equality, denoted fsel ·(f1,..., fN). =tsel ·(t1,...,tN),is the argument in which for all y∈Gthere exists exactly one x∈Gfor which Eq. (22) holds. Remark 1 Note that if fsel =tsel =1, then Eq. (22) is reduced to (20); if fsel =tsel =0 then the argument is trivial; and if either fsel or tsel is equal to the constant 1, then we remove the need for fsel or tsel, respectively. To reduce selected vector inclusion to simple ones, we proceed in two steps. First, we use the reduction shown in Eq. (21) to reduce the inner vector of polynomials to a single one. This process outputs polynomials F,T∈K<n[X]. Second, we make use of another uniformly sampled β∈Kas follows. Namely, we define the polynomials: T(X):= tsel(X)[T(X)−β]+β, F(X):= fsel(X)[F(X)−T(X)]+T(X), (23) and proceed to prove the relation F∈T. 123 eSTARK: extending STARKs with arguments 3701 Importantly, the presentation “re-ordering” in Eq. (23) is relevant: if βhad been introduced in the definition of Finstead, then there would be situations in which we would end up having βas an inclusion value and therefore the inclusion argument not being satisfied even if the selectors are correct. See Example 1to see why this is relevant. Example 1 Choose N=1, n=23. We compute the following values: x g g2 g3 g4 g5 g6 g7 g8 f1(x)F(x)fsel(x)F(x) 3 3 0 1 7 7 1 7 4 4 0 7 1 1 1 1 5 5 1 5 1 1 0 5 2 2 1 2 5 5 1 5 t1(x)T(x)tsel(x)T(x) 1 1 1 1 1 1 0 β 7 7 1 7 6 6 0 β 5 5 1 5 5 5 1 5 5 5 0 β 7 2 1 2 Notice how F∈T. However, if we would have instead defined F,Tas F(X)= fsel(X)[F(X)−β]+βand T(X)=tsel(X)[T(X)−F(X)]+F(X)then we would enduphavingβas a inclusion value, which implies that F/∈Teven though f1,t1and fsel,tsel are correct. To reduce selected vector multiset equalities to simple ones, we follow a similar process as with selected vector inclusions. We also first use the reduction in Eq. (21) to reduce the inner vector argument to a simple one, but then we define the following polynomials: F(X):= fsel(X)[F(X)−β]+β, T(X):= tsel(X)[T(X)−β]+β, (24) and proceed to prove the relation F. =T. Here, we have been able to first define Fsince we are dealing with multiset equalities instead of inclusions. Similarly to Lemma 4, we obtain the following result. by observing that βdo not grow the total degree of polynomials F,T(either from Eq. (23)orEq.(24)) over variables α, β. Lemma 6 Given polynomials fi,ti∈K<n[X]for i ∈[N], selectors f sel,tsel ∈K<n[X] and F,T∈K<n[X]as defined by Eq. (23)(resp.Eq.(24)), if F ∈T(resp.F . =T), then fsel ·(f1,..., fN)∈tsel ·(t1,...,tN)(resp. f sel ·(f1,..., fN). =tsel ·(t1,...,tN)) except with probability n ·(N−1)/|K|over the random and independent choice of αand β. Again, it is easy to generalize to the selector vector setting the protocols for (simple) inclusion arguments and multiset equality arguments explained in Sect. 2.5 by using the reduction strategies explained in this section. Lemma 7 Given polynomials fi,tj∈K<n[X]for i ∈[N]and selectors f sel,tsel ∈K<n[X], we obtain: 1. Inclusion Protocol.LetT ∈K<2n−1[X]and F ∈K<3n−1[X]as defined by Eq. (23). The prover sends oracle functions [fi],[ti],[fsel],[tsel]for i ∈[N]to the verifier in the first round, who responds with uniformly sampled α, β ∈K. Moreover, enlarge the set of identities that must be checked by the verifier in the inclusion protocol of Sect. 2.5 with: fsel(x)( fsel(x)−1)=0, 123 3708 H. Masip-Ardevol et al. Definition 9 (Extended AIR Satisfiability) We say that polynomials p1,...,pM∈F[X] satisfy a given eAIR eA ={C1,...,CK}if and only if for each i∈[K]one and only one of the following is true for all x∈G: (Ci◦P)(x)=0, fsel i(x)·((Ci,1◦P)(x),...,(Ci,Ri◦P)(x)) ∈tsel i(x)·((Ci,Ri+1◦P)(x),...,(Ci,2Ri◦P)(x)), fsel i(x)·((Ci,1◦P)(x),...,(Ci,Ri◦P)(x)) . =tsel i(x)·((Ci,Ri+1◦P)(x),...,(Ci,2Ri◦P)(x)), (p(1)(x),...,p(Si)(x)) ∝(Sσi,1(x),...,Sσi,Si(x)). 4.2 Preprocessed polynomials and public values Similar to [19], we divide the set of polynomials that are part of the polynomial constraint system representing the problem’s statement into two types: committed polynomials and preprocessed polynomials. Committed polynomials are those polynomials for which the verifier only has oracle access and are therefore committed (via Merkle trees) by the prover before the verifier starts querying them. In other words, these polynomials can only be known, in principle, in their entire form by the prover. Consequently, the verifier is limited to the knowledge of a “small fraction” of these polynomials’ evaluations. In practice, this fraction is randomly chosen by the verifier and is proportional to the number of oracle queries that the verifier makes to the particular polynomial. For the shake of the protocols to be scalable, the number of queries made to committed polynomials should be at most logarithmic in their degree. An example of committed polynomials is the trace columns polynomials tri. On the other hand, preprocessed polynomials are known by the verifier in their entirety even before the execution of the protocol. More precisely, once a polynomial constraint system Cis fixed, the verifier has complete access (either in coefficient form or in evaluation form) to the set of preprocessed polynomials. As with committed polynomials, the verifier ends up needing only a small subset of evaluations of such polynomials during the protocol. An example of preprocessed polynomials is Lagrange polynomials Li. Example 4 The polynomial constraints such that for all x∈Gsatisfies: L1(x)(tr1(x)−7)=0, Ln(x)(tr1(x)−3)=0, is composed of the committed polynomial tr1, and the preprocessed polynomials L1,Ln. We also define public values as the set of committed polynomial evaluations that are attested by some constraint and are therefore known to both the prover and the verifier before the execution of the protocol. Surely, the same polynomial can have multiple public values associated with it. Referring back to Example 4, the constraint system is satisfied only if tr1(g)=7andtr 1(gn)=3, where the field elements 7 and 3 are considered as public values. 4.3 The setup phase During the protocol of Sect. 4.4, both the prover and the verifier will need to have access to a set of preprocessed polynomials prei∈F[X]. In particular, the prover will need to have full access to them, either in coefficient or in the evaluation form, to be able to correctly generate the proof. On the other hand, the verifier will only need to have access to a subset of the evaluations of these polynomials over the domain H. 123 eSTARK: extending STARKs with arguments 3709 To this end, in our protocol we assume the existence of a phase, known as the setup phase, that is before the protocol message exchange but after the particular statement to be proven (or equivalently, the set of constraints that describe the statement) is fixed. In the setup phase, the preprocessed polynomials are computed and the prover and the verifier receive different information regarding them. Particularly, the setup phase, with input from a set of polynomial constraints, consists of the following steps: 1. The trace LDE of each preprocessed polynomial is computed. 2. The Merkle tree of the set of preprocessed polynomials is computed. 3. Finally, the complete tree is sent to the prover and its corresponding root is sent to the verifier. This way, when the verifier needs to compute the evaluation of any preprocessed polynomial over h∈H, he can request it from the prover, who will respond with the evaluation along with its corresponding Merkle tree path. The verifier then verifies the accuracy of the information received by using the root of the tree. Remark 4 Since the computational effort of the setup phase is greater than O(log(n)),we cannot include this phase as part of the verifier description if we want our protocol to satisfy verifier scalability. Note that the setup phase does not include a measure for the verifier to be sure that the computation of the Merkle tree of preprocessed polynomials is correct. However, as the setup phase input is the set of polynomial constraints representing the problem’s statement (something that the verifier also knows), the verifier can run at any time during the setup phase to check the validity of the computations. Moreover, both the prover and the verifier will need to have access to the evaluations over Hof the vanishing polynomial ZG(X):= Xn−1 and the first Lagrange polynomial L1(X):= g(Xn−1) n(X−g).However,ZGand L1will appear later on in the protocol, and although in principle we do not consider them preprocessed polynomials, they are publicly known and therefore included in the Merkle tree computation of the setup phase. 4.4 IOP for eAIR Before the start of the protocol, we assume the prover and verifier have fixed a specific eAIR instance eA = C1,..., CTand that the constraints of eA are ordered as follows: first, the identity constraints, then the inclusion arguments, followed by the permutation arguments, and finally, the connection arguments. Additionally, we assume that the setup phase has been successfully executed. Throughout the description of the protocol, we use the following useful notation: •Let N,Rbe two non-negative integers. We set Nto be the number of trace column polynomials and Rto be the number of preprocessed polynomials. •Among the set of polynomial constraints eA,wedenotebyM,M,M ∈Z≥0the number of inclusion arguments, permutation arguments and connection arguments, respectively. •The prover parameters pp is composed of the finite field F, the domains Gand H,the field extension K, the eAIR instance eA, all the public values, the set of committed polynomials and the Merkle tree of preprocessed polynomials. •The verifier parameters vp is composed of the finite field F, the domains Gand H,the field extension K, the eAIR instance eA, all the public values and the Merkle tree’s root of preprocessed polynomials. Our IOP for eAIR, which can be seen as an extension of the DEEP-ALI protocol [8], is as follows. 123 3710 H. Masip-Ardevol et al. Protocol 3 (IOP for eAIR) The protocol starts with a set of trace column polynomials tr1,...,trN∈F<n[X]and preprocessed polynomials pre1,...,preR∈F<n[X]. The following protocol is used by a prover to prove to a verifier that polynomials tr1,...,trN,pre1,...,preRsatisfy eA: 1. Trace Column Oracles: The prover sets oracle functions [tr1],...,[trN]to tr1,...,trN∈ F<n[X]for the verifier, who responds with uniformly sampled values α, β ∈K.During this step, the prover also computes the intermediate polynomials resulting from the subset of identity constraints. Let K ∈Z≥0be the number of these polynomials, denoted as imi∈F<n[X],wherei ∈[K]. It is important to recall that new identity constraints must also be considered when introducing intermediate polynomials, as demonstrated in Eq. (28). As additional intermediate polynomials may be introduced in Round 3, the prover will set oracles for im1,...,imKin that round. 2. Inclusion Oracles: As explained by Sect. 3.4, the prover, if needed: •Uses αto reduce both vector inclusions and vector permutations into simple (possibly selected) inclusions and permutations. •Uses βto reduce both selected inclusions and selected permutations into simple (non-selected) inclusions and permutations. After the previous two reductions, the prover computes the inclusion polynomials hi,1,hi,2∈K<n[X]for each inclusion argument, with i ∈[M]. Then, he sets oracle functions [h1,1],[h1,2],...,[hM,1],[hM,2]for the verifier, who answers with uniformly sampled values γ,δ ∈K. 3. Grand Product and Intermediate Oracles: The prover uses γ,δ to compute the grand product polynomials Zi∈K<n[X]for each argument, with i ∈[M+M+M]. Importantly, some identity constraints induced by the constraints asserting the validity of the connection argument’s grand product polynomials might be of a degree greater or equal to 4. Therefore, following Sect. 3.5, the prover split these constraints into multiple constraints of degree at most 3by the introduction of intermediate polynomials. Let K∈Z≥0be the number of introduced intermediate polynomials, denoted as imK+i∈ K[X],wherei ∈[K]. The prover sets oracle functions [Z1],...,[ZM+M+M]and [im1],...,[imK+K]for the verifier. The verifier answers with a uniformly sampled value a∈K. At this point, the original eAIR eA ={ C1,..., CT}has been reduced to an AIR A={C1,...,CT}, with T ≥T, so we continue by executing the DEEP-ALI protocol over Awith the modifications mentioned in Sects. 3.2 and 3.5. Remark 5 Rounds 2 and 3 are skipped by both the prover and the verifier if the eAIR instance eA is an AIR. In such case, Round 4.4 follows from Round 1. 4. Trace Quotient Oracles: The prover computes the polynomial Q(X)∈K[X]: Q(X):= T  i=1 ai−1(Ci◦P)(X) ZG(X),(29) wherewehavenowusedP to denote the sequence of polynomials containing tr1,...,trN,pre 1,...,preR,h1,1,h1,2,...,hM,1,hM,2,Z1,...,ZM+M+M and finally im1,...,imK+K. Therefore, (Ci◦P)(X)is the (univariate) polynomial resulting from the composition of the (multivariate) polynomial Ciand the non-shifted and shifted version of the (univariate) polynomials in P. Then, the prover splits Qinto two trace quotient polynomials Q1and Q2of degree lower than n, and sets their oracles [Q1]and [Q2]for 123 eSTARK: extending STARKs with arguments 3711 the verifier. Polynomials Q1and Q2satisfy the following: Q1(X)+Xn·Q2(X)= T  i=1 ai−1(Ci◦P)(X) ZG(X).(30) 5. DEEP Query Answers: The verifier samples a uniformly sampled DEEP query z∈ K\(G∪H). Note that the verifier prohibits z∈Gto enable evaluation of the right-hand side of Eq. (30) and prohibits z∈Hto enable evaluation of the polynomial F,defined in Round 4.4, during the FRI protocol. Then, the verifier queries either the oracles set by the prover in previous rounds or the oracles to the preprocessed polynomials to obtain the evaluation sets Evals(z)and Evals(gz). Two observations should be made: first, it is possible for a polynomial to have evaluations in both Evals(z)and Evals(gz); and second, evaluations of preprocessed polynomials are also included within Evals(z)and Evals(gz). The verifier then sends to the prover uniformly sampled values ε1,ε 2∈K. 6. FRI Protocol: Among the set of polynomals in P, respectively denote by fiand hithose whose evaluation respectively belong to Evals(z)and Evals(gz). The prover computes the polynomials F1,F2∈K[X]: F1(X):= |Evals(z)|  i=1 εi−1 2 fi(X)−fi(z) X−z F2(X):= |Evals(gz)|  i=1 εi−1 2 hi(X)−hi(gz) X−gz , after which he computes the polynomial F(X):= F1(X)+ε1·F2(X). Finally, the prover and the verifier run the FRI protocol to prove the low degree of F, which starts by setting oracle access to Ffor the verifier. 7. Verification: Similar to the vanilla STARK verifier, the verifier proceeds as follows: (a) ALI Consistency. Checks that the trace quotient polynomials Q1and Q2are consistent with the trace column polynomials tr1,...,trN, the preprocessed polynomials pre1,...,preR, the inclusion-related polynomials h1,1,h1,2,...,hM,1,hM,2,the grand product polynomials Z1,...,ZM+M+M and the intermediate polynomials im1,...,imK+K. The verifier achieves so by means of Eq. (30) and the evaluations in Evals(z)and Evals(gz). (b) Batched FRI Verification. It runs the batched FRI verification procedure on the polynomial F. If either (a)or (b)fails at any point, the verifier aborts and rejects. Otherwise, the verifier accepts. It is very straightforward to give an upper bound for the soundness of Protocol 3. Theorem 3 (STIK for eAIR) Protocol 3constitutes a STIK for extended AIR satisfiability, i.e., this protocol can be used to prove possession of a set of polynomials p1,...,pN+R∈ F<|G|[X]satisfying a given extended AIR instance eA = C1,..., CT. In particular, denote by εeSTARK to the soundness error of the protocol. Then: εeSTARK =εArgs +T−1 |K|+(D+|G|+2)· |K|−|H|−|G|+εFRI, 123 3712 H. Masip-Ardevol et al. where =m/ρ,m ≥3is an integer, D is the maximal degree of the polynomials involved that are summed in the computation of the trace quotient polynomial Q (29), εArgs corresponds to the soundness error for Protocol 2and εFRI corresponds to the soundness error of the batched FRI protocol over the FRI polynomial F. Before starting with the proof, let us discuss the main differences between the common part of this soundness bound and the bound of Theorem 2: 1. In the computation of the quotient polynomial Qwe are using powers of a random value ai−1instead of a pair (ai,bi)for each constraint Ci. This leads to a polynomial of degree T−1inthevariableaand therefore the Schwartz-Zippel lemma increases the bound from 1/|K|to (T−1)/|K|. 2. Since we are splitting the quotient polynomial Qinto polynomials Q1,Q2that follow a linear relation with Q(i.e., that Q1(X)+XnQ2(X)=Q(X)) instead of exponential (i.e., that Q1(X2)+XQ2(X2)=Q(X)) we only need to restrict the sampling space for zat K\(G∪H)instead of K\(G∪¯ H). Proof We start the proof by restricting it to the case of eA being an AIR, that is, we assume that no arguments are among the set of constraints. This means that neither Round 2 nor Round 3 of the previous protocol are needed and are therefore skipped. The resulting protocol turns out to be the (modified) vanilla STARK resulting from the combination of the DEEP-ALI protocol and the batched version of the FRI protocol. A proof that this combination results in a sound protocol is typically divided into two parts: (1) first, the soundness analysis of the DEEP-ALI part can be found in Theorem 6.2 of [8]; (2) second, the proof that the batched FRIastoappliedinSect.4.5 is sound can be found in Theorem 8.3 of [6]. The proof that the combination of these two sound protocols leads to a secure protocol can be found in Corollary 2 of [30]. Since in this case εArgs =0, we conclude that εSTARK =εeSTARK. What remains to prove is the expression for the soundness of the protocol when there are arguments present in eA. However, this is achieved by noticing that the first term of εSTARK is the soundness error for the incorporated arguments and the rest of the terms describe the soundness error of the DEEP-ALI part plus the batched FRI protocol. In other words, we are accounting for a prover being “lucky” either in the former or in the latter part of the protocol.  4.5 From a STIK to a non-interactive STARK As described in Definition 4, transforming the STIK of Sect. 4.4 to a STARK is very straightforward. First, oracles sent from the prover to the verifier in each round are substituted by a single Merkle tree root as explained in Sect. 3.1. So, for instance, oracle access to [tr1],...,[trN]set by the prover in the first round is substituted by the Merkle tree root of the Merkle tree containing the evaluations of tr1,...,trNover the domain H. Second, instead of letting the verifier ask a query to a set of polynomial oracles [f1],...,[fN]at the same point v, the verifier asks for these evaluations to the prover and the prover answers with f1(v), . . . , fN(v) together with the Merkle path associated with them. We do not specify the specific hash function used in the computation of each Merkle tree, but we only state that this hash function does not have any relation to the hash function used to render the protocol non-interactive, as long as its output space is in the appropriate field. To render the following protocol in a non-interactive manner, we use the Fiat-Shamir heuristic [14]. To this end, let H:{0,1}∗→Kdenote the hash function, modeled as a 123 eSTARK: extending STARKs with arguments 3713 random oracle in the soundness analysis, that instantiates the heuristic. We emphasize that Htakes any number of inputs and returns elements of K. We denote by seed to the concatenation of the initial eAIR instance eA = C1,..., CT, all the public values and the Merkle tree’s root of preprocessed polynomials. This value will act as the seed to the hash function Hto simulate the first verifier’s message. Moreover, to simulate subsequent verifier’s messages we use a technique called hash chaining: Definition 10 (Hash Chain) Let H:{0,1}∗→Kbe a hash function and let a1,...,arbe the messages sent from the prover to the verifier in an interactive protocol, where each ai represent a set of Kelements. Ahash chain is the set of field elements β1,β 2,...,β robtained as follows: β1=H(seed,a1), β2=H(β1,a2), β3=H(β2,a3), . . . βr=H(βr−1,ar). A proof that the resulting non-interactive protocol is sound after applying the Fiat-Shamir using hash chaining can be found, for example, in Theorem 4 of [2]. Remark 6 In Definition 10 we have avoided writing the generalization of having multiple verifier’s messages sent at the same round. In such case, we compute them as βi,j= H(βi−1,ai,j)for i∈[r]and j=1,2,.... As a consequence, in round i+1 we must include every generated βi,jto compute the verifier’ messages, i.e., βi+1,j=H({βi,j}j,ai+1,j) with k=1,2,... 4.6 Full protocol description We split the protocol’s description between the prover algorithm and verifier algorithm and compose each round in the prover algorithm of the computation of the verifier’s challenges (via Fiat-Shamir) and the actual messages computed by the prover. We reuse the notation and assumptions from Sect. 4.4. PROVER ALGORITHM Round 1: trace column polynomials Given the trace column polynomials tr1,tr2,...,trN∈F<n[X], the prover commits to them, as explained in Sect. 3.1, computing their associated Merkle root. During this step, the prover also computes the intermediate polynomials im1,...,imK resulting from the subset of identity constraints. The first prover output is MTR(tr1,...,trN). 123 3714 H. Masip-Ardevol et al. Round 2: inclusion polynomials The prover computes the reducing challenges α, β ∈K: α=H(seed,MTR {tri}i,1), β =H(seed,MTR {tri}i,2). Using αand β, the prover computes the inclusion polynomials hi,1,hi,2∈K<n[X]for each inclusion argument, with i∈[M], and commits to them. The second prover output is MTR(h1,1,h1,2,...,hM,1,hM,2). Round 3: grand product and intermediate polynomials The prover computes the permutation challenges γ,δ ∈K: γ=H(α, β, MTR {hi,j}i,j,1), δ =H(α, β, MTR {hi,j}i,j,2). The prover uses γ,δ to compute the grand product polynomials Zi∈K<n[X]for each argument, with i∈[M+M+M]. The prover also computes the remaining intermediate polynomials imK+1,...,imK+K. In this round, the prover commits to both the grand product polynomials and all the intermediate polynomials. To save one element in the proof, the prover uses the same Merkle tree for both the grand product and the intermediate polynomials. The third prover output is MTR(Z1,...,ZM+M+M,im1,...,imK+K). Round 4: trace quotient polynomials The prover computes the combination challenge a∈K: a=H(γ, δ, MTR ({Zi}i)), MTR ({imi}i)). The prover uses ato compute the quotient polynomial Q∈K<2n[X]: Q(X):= T  i=1 ai−1(Ci◦P)(X) ZG(X), and splits it into two polynomials Q1and Q2of degree lower than nas in Eq. (27). Then, the prover commits to these two polynomials. Recall that Q1,Q2satisfy the following relation with Q: Q1(X)+Xn·Q2(X)= T  i=1 ai−1(Ci◦P)(X) ZG(X).(31) The fourth prover output is MTR(Q1,Q2). Round 5: deep query answers The prover computes the evaluation challenge z∈K: z=H(a,MTR(Q1,Q2)). (32) If zfalls either in Gor H, then we introduce a counter as an extra input to the hash function Hin Eq. (32) and keep incrementing it until z∈K\(G∪H). The probability that zis not 123 eSTARK: extending STARKs with arguments 3715 Fig. 6 Skeleton description of the eSTARK protocol of the expected form is proportional to (|G|+|H|)/|K|, which is sufficiently small for all practical purposes. The prover computes the evaluation sets Evals(z)and Evals(gz). The fifth prover output is (Evals(z), Evals(gz)). Round 6: FRI protocol The prover computes the combination challenges ε1,ε 2∈K: ε1=H(z,Evals(z), Evals(gz), 1), ε2=H(z,Evals(z), Evals(gz), 2). Among the set of polynomials in P, respectively denote by fiand hithose whose evaluation respectively belong to Evals(z)and Evals(gz). The prover computes the polynomials F1,F2∈ K[X]: F1(X):= |Evals(z)|  i=1 εi−1 2 fi(X)−fi(z) X−z F2(X):= |Evals(gz)|  i=1 εi−1 2 hi(X)−hi(gz) X−gz , after which he computes the polynomial F(X):= F1(X)+ε1·F2(X). Finally, the prover executes the (non-interactive version of the) FRI protocol to prove the low degree of the F polynomials, after which he obtains a FRI proof πFRI. The sixth prover output is πFRI. 123 3716 H. Masip-Ardevol et al. The prover returns: πeSTARK =⎛ ⎝ MTR(tr1,...,trN), MTR(h1,1,h1,2,...,hM,1,hM,2), MTR(Z1,...,ZM+M+M,im1,...,imK+K), MTR(Q1,Q2), Evals(z), Evals(gz), πFRI ⎞ ⎠ VERIFIER ALGORITHM To verify the STARK, the verifier performs the following steps: 1. Checks that MTR(tr1,...,trN),MTR(h1,1,h1,2,...,hM,1,hM,2),MTR(Z1,..., ZM+M+M,im1,...,imK+K),MTR(Q1,Q2)are all in K. 2. Checks that every element in both Evals(z)and Evals(gz)is from K. 3. Computes the challenges α, β, γ, δ, a,z,ε 1,ε 2∈Kfrom the elements in seed and πeSTARK (except for πFRI, which is used to compute the challenges within FRI). 4. ALI Consistency. Checks that the trace quotient polynomials Q1and Q2are consistent with the trace column polynomials tr1,...,trN, the preprocessed polynomials pre1,...,preR, the inclusion-related polynomials h1,1,h1,2,...,hM,1,hM,2,the grand product polynomials Z1,...,ZM+M+M and the intermediate polynomials im1,...,imK+K. The verifier achieves so by means of Eq. (31) and the evaluations contained in Evals(z)and Evals(gz). 5. Batched FRI Verification. Using πFRI, it runs the batched FRI verification procedure on the polynomial F. If either of the previous steps fails at any point, the verifier aborts and rejects. Otherwise, the verifier accepts. 5 Conclusions In this paper, we have presented a probabilistic proof that generalizes the STARK family by introducing a more generic intermediate representation that we have called eAIR. We first explained multiple techniques that enhance the vanilla STARK complexity in both proof size and verification time. In particular, we demonstrated many optimizations applied to some polynomial computations in vanilla STARK. Additionally, we showed the tradeoffs arising from controlling the constraint degree either at the representation of the AIR or inside the eSTARK itself, offering a rule to decide whether to choose the first option or the second one. We anticipate these techniques to be useful for other types of SNARKs. Secondly, we described our protocol in the polynomial IOP model as a combination of the optimized version of the vanilla STARK and the addition of rounds concerning the incorporation of three arguments into the protocol. Following the description, we proved that the protocol is sound in the polynomial IOP model. Lastly, we provided a full description of the protocol by replacing the oracle access to polynomials via Merkle trees and turning it non-interactive through the Fiat-Shamir heuristic. We expect this protocol to be further expanded with the addition of more types of arguments that could fit a wider range of applications. 123 eSTARK: extending STARKs with arguments 3717 Appendix A: Vanilla STARK description In this section, we will outline the STARK protocol step by step (Fig. 7). The following definitions will be employed in the protocol: •We call prover parameters, and denote them by pp, to the finite field F, the domains G and H, the field extension K, the set of constraints, and the set of polynomial evaluations that the prover has access to. •We call verifier parameters, and denote them by vp, to the finite field F, the domains G and H, the field extension K, the set of constraints, and the set of polynomial evaluations that the verifier has access to (See Fig. 7). Protocol 4 The protocol starts with a set of constraints C={C1,...,CT}and a set of polynomials tr1,...,trN∈F[X](presumably) satisfying them. The prover and verifier proceed as follows: 1. The prover sends oracle functions [tr1],...,[trN]for tr1,...,trNto the verifier: P(pp)V(vp) [tr1],...,[trN] {a1,b1,...,aT,bT} [Q1],...,[QS] z {Evals(z),Evals(gz),Q 1(zS),...,Q S(zS)} {{ε(1) i}i∈I1,{ε(2) j}j∈I2,{ε(3) k}k∈[S]} ...................FRI: Commit Phase . . . . ............... MTR(F=p0) v0 MTR(p1) v1 . . . vk−1 pk ....................FRI: Query Phase.................... h1 {p0(h1),...,p k−1(h2k−1 1)} {MTP(p0(h1)),...,MTP(pk−1(h2k−1 1))} {p0(−h1),...,p k−1(−h2k−1 1)} {MTP(p0(−h1)),...,MTP(pk−1(−h2k−1 1))} {Evals(h1),Q 1(hS 1),...,Q S(hS 1)} {MTP(Evals(h1)) ...,MTP(QS(hS 1))} {Evals(−h1),Q 1((−h1)S),...,Q S((−h1)S)} {MTP(Evals(−h1)) ...,MTP(QS((−h1)S))} hs {p0(hs),...,p k−1(h2k−1 s)} {MTP(p0(hs)),...,MTP(pk−1(h2k−1 s))} {p0(−hs),...,p k−1(−h2k−1 s)} {MTP(p0(−hs)),...,MTP(pk−1(−h2k−1 s))} {Evals(hs),Q 1(hS s),...,Q S(hS s)} {MTP(Evals(hs)) ...,MTP(QS(hS s))} {Evals(−hs),Q 1((−hs)S),...,Q S((−hs)S)} {MTP(Evals(−hs)) ...,MTP(QS((−hs)S))} Fig. 7 Full STARK transcript of Sect. 2.4 123