Systems and methods for state minimization and unlinkable transactions
By employing a Dyck word and contiguous leaf vector representation for ordered trees, the inefficiencies in existing systems are mitigated, resulting in improved performance and reduced computational resources for cryptographic proof systems, facilitating faster and more secure transactions in blockchain networks.
Patent Information
- Application Number
- PCT/US2024/015858
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-14
- Filing Date
- 2024-02-14
- Publication Date
- 2024-11-07
AI Technical Summary
Existing systems using ordered trees for memory management in cryptographic proof systems face inefficiencies due to high time complexity in pointer dereferences and space inefficiencies in array-based implementations, leading to performance bottlenecks and increased computational resources required for validation and verification processes.
The implementation of a data structure that represents ordered trees using a Dyck word and a contiguous leaf vector, allowing for efficient subtree retrieval and modification with O(1) pointer dereferences and amortized O(1) subtree editing, thereby reducing computational overhead and improving memory usage.
This approach enhances the performance of cryptographic proof systems by reducing computational resources needed for validation and verification, enabling more efficient encoding and decoding of binary ordered tree structures, which in turn supports faster and more secure transactions in blockchain networks.
Smart Images

Figure US2024015858_07112024_PF_FP_ABST
Abstract
Description
6184.1000002 SYSTEMS AND METHODS FOR STATE MINIMIZATION AND UNLINKABLE TRANSACTIONS RELATED APPLICATION
[0001] This application claims the benefit of U.S. Provisional Application No.63 / 484,866, filed on February 14, 2023. The entire teachings of the above application are incorporated herein by reference. BACKGROUND
[0002] A blockchain may be implemented as a peer-to-peer (P2P), electronic ledger that is implemented as a computer-based decentralized, distributed system made up of blocks, which, in turn, are made up of transactions. Each transaction may be a data structure that encodes a transfer of control of a digital asset between participants in the blockchain system, and that includes at least one input and at least one output. Each block may contain a hash of a previous block so that blocks become chained together to create a permanent, unalterable record of all transactions that have been written to the blockchain since its inception. Transactions may contain small programs, known as scripts, embedded into their inputs and outputs; the scripts may specify how and by whom the outputs of the transactions can be accessed.
[0003] Blockchain may be used for implementation of “smart contracts” that can be associated with digital asset. These are computer programs designed to automate execution of terms of a machine-readable contract or agreement. Unlike a traditional contract, which would be written in natural language, a smart contract is a machine-executable program that may include rules for processing inputs to generate results; these results may then cause actions to be performed depending upon those results. With respect to commercial transactions, for example, these may involve a transfer of property rights and / or assets.
[0004] An area of blockchain-related interest is the use of “tokens” to represent and transfer assets via the blockchain. A token serves as an identifier that allows an asset to be referenced from the blockchain. Fungible tokens are uniform. In other words, fungible tokens of the same type are identical in specification, and each fungible token is identical to another fungible token of the same type. Fungible tokens may be divisible into smaller amounts. Similar to currency, where bills can be divided into coins of an equivalent value, fungible tokens may be divisible. Non-fungible tokens (NFTs), however, cannot be replaced with other tokens of the same type. - 1 - 3906796.v16184.1000002 NFTs represent non-fungible assets. Non-fungible assets have unique information or attributes. Each NFT is unique and differs from other tokens of the same class, and, unlike a fungible token, NFTs typically cannot be divided. Blockchain gaming systems may use tokens or NFTs to create different parts of the game, such as rules, characters, weapons, and skins.
[0005] Cryptocurrency wallets may be implemented to securely store and manage blockchain assets, tokens, NFTs, and cryptocurrencies. These wallets may allow users to spend, receive, and trade digital assets. SUMMARY
[0006] An ordered tree is a useful data structure with many applications. Some representations of incomplete ordered trees may have slow performance for operations such as subtree retrieval and modification, such as where the tree is incomplete. Certain embodiments may configure ordered trees in a manner that is more amenable to speedups and optimizations in various domains, including tree-based memory representation (which can potentially be utilized by ordered tree-centric virtual machines (VMs)), and zero-knowledge proof (ZKP) systems, e.g., ZKP systems based on polynomials defined over finite fields. Some embodiments may divide an ordered tree into two items, a structure-encoding codeword and a leaf vector. The codeword may be defined as a Dyck word that traces out a depth-first traversal of the tree, and the leaf vector may be a vector or contiguous array of all values found at the tree’s leaf nodes. Certain embodiments may perform operations of subtree retrieval and / or modification more efficiently across numerous domains.
[0007] In a computer system that uses, e.g., potentially incomplete ordered trees and implements them via linked memory pointers, a time complexity of O(log( ^^)) pointer dereferences for each memory retrieval or modification can become a performance bottleneck, as accessing a series of non-contiguous values in a computer’s RAM (random-access memory) may cause cache thrashing. Cache thrashing is a problem that may occur in modern CPUs (central processing units) when memory is accessed in a pattern that results in excessive processor cache misses. Performing many pointer dereferences can make a system inefficient and thus unable to meet certain performance criteria, preventing it from becoming a viable system. In a computer system that makes use of potentially incomplete ordered trees using standard array implementations, there may be space complexity issues if the trees in question largely skew to - 2 - 3906796.v16184.1000002 one side, as known array-based ordered tree implementations may use the same amount of memory as if the tree were complete, leading to large amounts of wasted memory space. Similarly, array-based implementations of ordered trees may be inefficient when subtrees are appended or removed, or when they otherwise have their shape modified substantially. Such inefficiencies regarding modification of shape may lead to a system being infeasible to use in practice due to performance concerns.
[0008] On the cryptographic side, existing proof systems that represent valid computation using finite fields and polynomial constraints may make emulating CPU architecture an arduous process. Either toy models of computation—which may not be realistic—may be chosen to serve as proofs of concept but may not be productionizable, or staggering efficiency costs may be incurred in practical models unless complex conceptual constructions are employed. This circumstance is not surprising: computers are marvelous feats of practical engineering, but the low-level details of how memory is handled within these machines may not be a Platonically beautiful mathematical construction. However, cryptographic constructions may be much closer to the elegant, crystalline, and logical necessity of the mathematical realm. Such impedance mismatches may be sources of friction and inefficiency when trying to express logical invariants of a computational model in terms of stepwise mathematical constraints. To place a square peg in a round hole, you must first learn to whittle—it may be better to start with round pegs. Thus, having a system of memory management enveloped in a data structure with strong mathematical content may hold potential for great gains in efficiency for these cryptographic proof systems.
[0009] There is a fork in the history of computation, an alternative to Turing’s machine and its direct descendant in the von Neumann architecture: combinatory logic and the lambda calculus, and their descendants in the functional programming paradigm. These more mathematical views of computation, rooted in mathematical logic (and later, category theory) may abstract away details of implementation, and as models of computation may therefore be much closer to a round peg for the round hole of cryptographic proof systems. With its S- expressions, the functional programming language LISP may show the expressive power of representing data and programs in terms of a single data structure.
[0010] Example embodiments disclosed herein provide computational systems, e.g., an encoding or arithmetization computational system, that can reduce friction of building VMs, such as VMs that use ordered trees for non-limiting example, and address performance issues - 3 - 3906796.v16184.1000002 noted above and improve efficiency. In an example embodiment, an improved cryptographic proof system may be provided that is configured to structure data that allows for representing potentially incomplete ordered trees in a manner that has superior asymptotics: linear space complexity to a size of a tree, O(1) pointer dereferences involved in traversal and retrieval, O(1) pointer dereferences involved in subtree editing when a subtree to be modified has the same number of elements as a previous one, and amortized O(1) subtree editing when a number of elements in an old subtree varies from that of a new subtree, for non-limiting examples. An example representation according to principles of the present disclosure may include two components: a tree structure-encoding codeword and a contiguous array, e.g., vector, of leaves, e.g., fixed-size leaves. The structure-encoding codeword may be a Dyck word that captures a shape of data inside an ordered tree. The set of possible Dyck words may have a bijection to a set of shapes of ordered binary trees. Specifically, a Dyck word may encode a shape of a binary ordered tree as a series of bits representing opening and closing symbols in an order that they would be accessed in an exemplary depth-first search (DFS) or traversal of the tree. The leaf vector may be a contiguous array, e.g., list, of data held at leaf nodes of the ordered tree, in the order that they are accessed in the exemplary DFS.
[0011] In an example embodiment, a computational system (e.g., an encoding computational system) may be provided that is configured to generate ZKPs, e.g., succinct ZKPs, of binary ordered tree traversal and / or subtree retrieval. The system may be configured with a tree traversal and subtree retrieval system that particularly improves performance and is optimized for dealing with incomplete trees. An example benefit of this ZKP generation is that there may be Turing complete, combinator-like (i.e., functional) machine specifications based on (typically, incomplete) binary tree traversal and subtree access, and which treat memory and / or programs homoiconically; that is, both may be represented uniformly within a binary tree data structure. This may offer a superior path to zero-knowledge proving—especially within current systems, which may use finite fields and / or polynomial constraints—that may avoid pitfalls associated with proving general computations by attempting to emulate a von Neumann CPU architecture.
[0012] In an example embodiment, a computational system, e.g., an encoding computational system, may be configured to record a DFS through a tree to find a desired subtree by traversing bits of a Dyck word up to a beginning of the targeted subtree, while recording a local count that keeps track of shapes of subtrees occurring prior to and / or along a path leading to the desired - 4 - 3906796.v16184.1000002 subtree. A traversal may be performed, e.g., simultaneously, of a bitwise representation of a target location of the subtree, iterating 1 (one) bit forward when, e.g., the local count is equal to 0 (zero). Once the bitwise representation of the target location of the subtree has been iterated through, a start index of the target subtree location may be discovered. After the location of the start of the target subtree has been discovered, a first time that the local count reaches a value of - 1 (negative one) may signify an index of an end of a Dyck word of the target subtree. At this point, both the start and end indices of the target subtree may have been retrieved from the original tree in question and the subtree may have been retrieved. The generation of this encoding of a DFS may be performed with a time complexity that scales, e.g., linearly, with a size of a binary tree being traversed. It may be further optimized to achieve a time complexity that scales, e.g., logarithmically, with the size of the binary tree by avoiding traversal of subtrees that are not along a direct path to a target subtree by identifying them through a use of lookup tables that record a shape and size of subtrees.
[0013] In an example embodiment, data-structural advantages and optimization may be provided. In an existing implementation of a binary ordered tree via use of memory pointers, for example, a subtree retrieval may typically require dereferencing an average of log( ^^) pointers where n is defined as a number of elements in the tree. With novel data encoding techniques disclosed herein, a subtree may be retrieved by first using a codeword, which may represent a tree shape as a Dyck word, to calculate pointer offsets of start and end indices of the subtree in question, and then performing a singular pointer dereference using a pointer offset and a pointer to a start of a leaf vector or array, e.g., a contiguous vector or array. Calculating the location of a subtree path using a codeword, e.g., a Dyck word, may improve performance because it may employ bit operations, which may be highly efficient on all (or nearly all) modern processors. As such, techniques according to principles of the present disclosure may provide a practical means of accelerating retrieval of subtrees. Moreover, certain embodiments may be used to modify leaf values of a tree in place with the same performance characteristics. If it is desired to replace a subtree with a subtree of a different shape, some embodiments may recompute a new Dyck word and replace a shape codeword. Then, if a size of the new subtree is the same as the old subtree, certain embodiments may replace memory locations in place. Otherwise, some embodiments may set a pointer to a new contiguous array that contains leaves of the new subtree. Together with including a bit flag inside each leaf in the array that signifies whether the value is a memory - 5 - 3906796.v16184.1000002 pointer to the data in question or a data literal, this may allow some embodiments to provide amortized O(1) modifications to the shape of the tree. A “compaction” operation may be used in certain embodiments to replace pointers to subtrees with a subtree expressed as a literal, hence use of the term “amortized.”
[0014] The technique of storing a pair of (i) a codeword (e.g., Dyck word) and (ii) an array of leaves described hereinabove may also be amenable to efficient encoding. Certain zero- knowledge proving schemes, such as STARKs (Scalable Transparent Arguments of Knowledge) and SNARKs (Succinct Non-Interactive Arguments of Knowledge), may use encoding. One of the criteria of proof systems such as STARKs and SNARKs may be succinctness, which is an idea that a verifier system should be able to establish validity of a computational integrity statement with significantly less computational time or power compared to that of the original computation performed by a prover system. As part of a verification process, a verifier may evaluate certain polynomial constraints to see if they are valid. If a computational integrity statement is not conducive to efficient encoding or is otherwise expensive to verify, a verifier may in practice have to do a lot of computational work, degrading the system’s ability to meet a succinctness criterion. Thus, efficient encoding may translate to less computational overhead and thus a proof system with improved performance, lowering a minimum computational resource requirement and thus allowing more participants to become verifiers. Similarly, if a computational integrity statement is not conducive to encoding or otherwise expensive to prove, a prover component of a system may have to do more computational work than is practical, resulting in drastically reduced performance and fewer potential use cases for such a system.
[0015] One or more factors may give rise to efficient encoding (and thus lower prover and verifier compute burden), which can include, for non-limiting examples: a) low number of total constraints for a given proof system; b) low degree of constraint polynomials; and / or c) low numbers of columns and / or rows required in tables that a prover may use to construct polynomials given to a verifier.
[0016] When a process and its invariants can easily be encoded with a low number of polynomial operations, the process may be more likely to have the properties of efficiency described hereinabove. - 6 - 3906796.v16184.1000002
[0017] Example embodiments can provide more efficient encoding and can allow for efficient validation and demonstration that some arbitrary data indeed represents a Dyck word. This validation may include one or more of the following exemplary criteria: a) the data is a valid bitstring (contain only 1s (ones) and 0s (zeroes)); b) the data has an equal amount of 1s (ones) and 0s (zeroes); and / or c) the number of 1s (ones) is less than or equal to the number of 0s (zeroes) for all subsequences or substrings of the Dyck word that begin at a first character.
[0018] Some or all of the above exemplary criteria may be efficiently representable as polynomial constraints, because they may not require more than encoding operations offered by polynomials. Once a segment of data in a proof system has been shown to be a valid Dyck word, the rest of a proof could use that fact to further verify that data in various parts of a given ordered tree were accessed consistently and correctly (i.e., in depth-first order), paving the way for the system to generate proofs of retrieval and even modification operations on ordered trees if desired. Such proofs’ performance may benefit from the efficiency of the method described.
[0019] Embodiments thus include a computer-based system for state minimization and unlinkable transactions. In an example embodiment, the system includes a zero-knowledge VM (ZKVM). The system may further include a state-minimized decentralized ledger having multiple blocks. The state-minimized decentralized ledger may be configured as a dynamic cryptographic accumulator implementing a decentralized ledger protocol. The system may further include a blockchain computer network having multiple nodes. A node of the multiple nodes of the blockchain computer network may be configured to execute a zero-knowledge verifier system. The zero-knowledge verifier system may be configured to, via the ZKVM, verify a block of the multiple blocks based on a block header of the block and at least one ZKP of the multiple blocks. The block may be associated with an electronic transaction. The zero- knowledge verifier system may be further configured to, via the ZKVM, recursively verify a corresponding ZKP of at least one predecessor block of the block. The zero-knowledge verifier system may be further configured to generate an unlinkable transaction by obfuscating a correlation between a source node of the multiple nodes and a destination node of the multiple nodes. The source node and the destination node may be associated with the electronic transaction. The zero-knowledge verifier system may be further configured to validate the electronic transaction by verifying a ZKP corresponding to the generated unlinkable transaction. - 7 - 3906796.v16184.1000002 The ZKP may be configured to attest to correctness of the generated unlinkable transaction and satisfaction of smart contract logic associated with a digital wallet.
[0020] According to an example embodiment, the dynamic cryptographic accumulator may include a sparse Merkle tree. In another example embodiment, the state-minimized decentralized ledger may be configured to computationally index at least one leaf of the sparse Merkle tree based on at least one content predicate.
[0021] In an example embodiment, the dynamic cryptographic accumulator may be configured to perform a non-inclusion proof.
[0022] According to an example embodiment, the digital wallet may be a first digital wallet. The zero-knowledge verifier system may be further configured to implement a binding between a second digital wallet and a smart contract. The smart contract may include at least one covenant module configured to apply a conditional constraint to at least one future transaction associated with the second digital wallet.
[0023] In an example embodiment, the digital wallet may be a first digital wallet. The zero- knowledge verifier system may be further configured to determine a state penalty value for a second digital wallet corresponding to the destination node. The state penalty value may be associated with a state entry for the second digital wallet in the state-minimized decentralized ledger. The zero-knowledge verifier system may be further configured to, responsive to receiving a state trim request from the destination node, computationally purge the state entry in the state- minimized decentralized ledger.
[0024] According to an example embodiment, the node of the multiple nodes of the blockchain computer network may include a secure cryptoprocessor implemented as a dedicated microprocessor configured to execute the zero-knowledge verifier system. The zero-knowledge verifier system may be embedded on the secure cryptoprocessor.
[0025] Embodiments further include a computer-based system for tree encoding and decoding. In an example embodiment, the system includes at least one processor and a memory with computer code instructions stored thereon. The at least one processor and the memory, with the computer code instructions, may be configured to cause the system to execute an encoder. The encoder may be configured to transform a first incomplete binary ordered tree data structure into a first tree encoding based on an encoding scheme. The first tree encoding may include a first Dyck word and a first leaf vector. The encoding scheme may be capable of representing an - 8 - 3906796.v16184.1000002 arbitrary potentially incomplete binary ordered tree data structure in terms of a Dyck word and a leaf vector. The at least one processor and the memory, with the computer code instructions, may be further configured to cause the system to execute a decoder. The decoder may be configured to transform a second tree encoding into a second incomplete binary ordered tree data structure, where the second tree encoding includes a second Dyck word and a second leaf vector, by traversing the second tree encoding and incrementally parsing the second leaf vector.
[0026] In an example embodiment, the decoder may be further configured to generate a subtree data structure based on a subtree index variable.
[0027] According to an example embodiment, the system may further include a VM configured with a potentially incomplete ordered tree based memory model. The VM may be further configured with the encoding scheme. The VM may be further configured with at least one of the encoder and the decoder.
[0028] In an example embodiment, the system may further include a cryptographic proof system configured to, based on the encoding scheme, represent a first statement of computational integrity in terms of polynomials defined over finite fields. The first statement of computational integrity may relate to at least one of traversal and modification of at least one potentially incomplete binary ordered tree data structure. According to another example embodiment, the cryptographic proof system may be further configured to, based on the encoding scheme, verify a second statement of computational integrity. The second statement of computational integrity may be in terms of polynomials defined over finite fields and relate to at least one of traversal and modification of at least one potentially incomplete binary ordered tree data structure.
[0029] In an example embodiment, the encoder is further configured to process a polynomial-based representation of a computational integrity statement. The polynomial-based representation may be associated with a ZKP system. According to another example embodiment, the ZKP system may be at least one of a STARK based system and a SNARK based system.
[0030] Alternative computer-implemented method and computer program product embodiments parallel those described above in connection with the example computer-based system embodiments. - 9 - 3906796.v16184.1000002
[0031] It should be understood that example embodiments disclosed herein can be implemented in the form of a computer-implemented method, apparatus, computer-based system, or computer program product. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The foregoing will be apparent from the following more particular description of example embodiments, as illustrated in the accompanying drawings in which like reference characters refer to the same parts throughout the different views. The drawings are not necessarily to scale, emphasis instead being placed upon illustrating embodiments.
[0033] FIG.1 is a diagram of an exemplary depth-first search (DFS) on a tree according to an example embodiment.
[0034] FIG.2 illustrates an exemplary conversion from a tree to a Dyck word according to an example embodiment.
[0035] FIG.3 illustrates exemplary trees and their corresponding Dyck words according to an example embodiment.
[0036] FIG.4 illustrates an exemplary recursive form of a Dyck word of a generalized tree, according to an example embodiment.
[0037] FIG.5 illustrates an exemplary transformation or conversion from a tree to a Dyck word and leaf vector encoding, according to an example embodiment.
[0038] FIG.6 illustrates an exemplary encoding process according to an example embodiment.
[0039] FIG.7 illustrates an exemplary decoding process according to an example embodiment.
[0040] FIG.8A illustrates an exemplary tree according to an example embodiment.
[0041] FIG.8B illustrates the exemplary tree of FIG.8A, including subtrees, according to an example embodiment.
[0042] FIG.9 illustrates an exemplary tree according to another example embodiment.
[0043] FIG.10A is a generalized diagram of an exemplary tree having subtrees, according to an example embodiment.
[0044] FIG.10B illustrates the exemplary tree of FIG.10A annotated with a path word sequence according to an example embodiment. - 10 - 3906796.v16184.1000002
[0045] FIG.10C illustrates the exemplary tree of FIG.10A where each subtree is annotated with its respective axis identifier, according to an example embodiment.
[0046] FIG.10D illustrates the exemplary tree of FIG.10A where each subtree is labeled, according to an example embodiment.
[0047] FIG.11 illustrates an exemplary conflict node according to an example embodiment.
[0048] FIG.12 illustrates an exemplary method for accessing a subtree according to an example embodiment.
[0049] FIG.13 illustrates an exemplary table of a Dyck encoding according to an example embodiment.
[0050] FIG.14 illustrates an exemplary table of a Dyck encoding according to another example embodiment.
[0051] FIG.15 illustrates an exemplary table of a Dyck encoding with column descriptions according to an example embodiment.
[0052] FIG.16 is a flow diagram of an exemplary computer-based system / method for state minimization and unlinkable transactions according to an embodiment.
[0053] FIG.17 is a block diagram of an example embodiment of a distributed blockchain ledger computer-implemented system.
[0054] FIG.18 is a block diagram of an example implementation of a network in communication with an embodiment.
[0055] FIG.19 is a block diagram of any internal structure of a computer / computing node in a processing environment of an example embodiment.
[0056] FIG.20 is a block diagram showing exemplary blockchain layers according to an embodiment.
[0057] FIG.21 is a block diagram of an example user identification system according to an embodiment.
[0058] FIG.22 is a block diagram of an example embodiment of a system for state minimization and unlinkable transactions.
[0059] FIG.23 is a block diagram of an example embodiment of a system for tree encoding and decoding. - 11 - 3906796.v16184.1000002 DETAILED DESCRIPTION
[0060] A description of example embodiments follows.
[0061] Introduction
[0062] In general, blockchain is a write-once, append-many type electronic ledger. Blockchain is an architecture that allows disparate users to make transactions and creates an unchangeable record of those transactions. To move anything of value over any kind of blockchain, a network of nodes must first agree that a corresponding transaction is valid. As a peer-to-peer (P2P) network, combined with a distributed time-stamping server, blockchain ledgers can be managed autonomously to exchange information between disparate parties; there is no need for an administrator. In effect, the blockchain users are the administrator.
[0063] Blockchain’s rapid development has given rise to many different kinds of chains, leading to cross-chain technology. Cross-chain, as its name suggests, allows the transmission of value and information between different blockchains. According to an example embodiment, a digital asset may be exchanged, cross-chain, securely, and despite differences between constraints or rules of operation that may be established for the different blockchains. Such a digital asset may be in the form of a token, which may be fungible, or may be a non-fungible token (NFT). Such constraints or rules may be in the form of smart contracts, or other forms. Differences between such constraints or rules may include disparate levels of rigor or leniency of such constraints or rules between or among different blockchain networks.
[0064] In some embodiments, blockchain may be a P2P, electronic ledger that is implemented as a computer-based decentralized, distributed system made up of blocks, which, in turn, are made up of transactions. Each transaction may be a data structure that encodes a transfer of control of a digital asset between participants in the blockchain system, and that includes at least one input and at least one output. Each block may contain a hash of a previous block so that blocks become chained together to create a permanent, unalterable record of all transactions that have been written to the blockchain since its inception. Transactions may contain small programs, known as scripts, embedded into their inputs and outputs; the scripts may specify how and by whom the outputs of the transactions can be accessed.
[0065] For a transaction to be written to the blockchain, it must be “validated.” Network nodes (miners) may perform work to ensure that each transaction is valid, with invalid transactions being rejected from the network. Software clients installed on the nodes may - 12 - 3906796.v16184.1000002 perform this validation work on an unspent transaction (UTXO) by executing its locking and unlocking scripts. If execution of the locking and unlocking scripts evaluates to TRUE, the transaction is valid and is written to the blockchain. Thus, for a transaction to be written to the blockchain, it should be: (i) validated by a first node that receives the transaction—e.g., if the transaction is validated, the node relays it to other nodes in the network; (ii) added to a new block built by a miner; and (iii) mined, e.g., added to the public ledger of past transactions.
[0066] Blockchain may be used for implementation of “smart contracts” that can be associated with digital assets. These are computer programs designed to automate execution of terms of a machine-readable contract or agreement. Unlike a traditional contract, which would be written in natural language, a smart contract is a machine-executable program that may include rules for processing inputs to generate results; these results may then cause actions to be performed depending upon those results. With respect to commercial transactions, for example, these may involve a transfer of property rights and / or assets. Such assets may include real property, personal property (including both tangible and intangible property), digital assets such as software, or any other type of asset. In the digital economy, there is often an expectation that exchanges and transfers will be performed in a timely manner and across vast distances. This expectation, along with practical, technical limitations, means that traditional forms of asset transfer, such as physical delivery of hardcopy of documents representing a contract, negotiable instrument, etc., or a tangible asset itself, are not desirable. Thus, smart contracts can provide enhanced control, efficiency, and speed of transfer.
[0067] An area of blockchain-related interest is a use of “tokens” to represent and transfer assets via the blockchain. A token thus serves as an identifier that allows a real-world item to be referenced from the blockchain. Through an initial coin offering (ICO) model, startups may raise capital by issuing tokens on a blockchain, such as Ethereum, and distributing them to token buyers in exchange for making a financial contribution to a project. These tokens, which may be transferred across a network and traded on cryptocurrency exchanges, may serve a multitude of different functions, from granting holders access to a service to entitling them to company dividends. Depending on their function, tokens may be classified as security tokens or utility tokens.
[0068] Tokens may be used, for instance, in an initial public offering (IPO) to issue, e.g., company shares, dividends, and / or voting rights over blockchain networks. The tokens may - 13 - 3906796.v16184.1000002 include, e.g., security tokens and / or utility tokens. The security tokens may be associated with a value that is derived from a tradable asset and, thus, may be deemed a security token that may be subject to federal laws regulating traditional securities. In contrast, the utility tokens may represent future access to a company’s product(s) and / or service(s). A defining characteristic of the utility token is that it is not designed as an investment. Because a utility token is not issued in the form of an investment asset, it may be exempt from having to comply with federal legislation regulating securities.
[0069] Further, similar to physical assets, the tokens that represent them may have many properties, one of which is fungibility or non-fungibility. In economics, fungibility refers to equivalence or interchangeability of each unit of a commodity with other units of the same commodity. Fungible tokens (FTs) are tokens that can be exchanged for any other token with the same value.
[0070] Fungible tokens are uniform, that is, FTs of the same type are identical in specification. In other words, each FT is identical to another FT of the same type, and FTs are divisible into smaller amounts. Similar to currency, where bills can be divided into coins of an equivalent value, FTs are divisible. As such, a fraction of an FT can be transferred between users. NFTs, however, cannot be replaced with other tokens of the same type. NFTs represent nonfungible assets, e.g., assets that have unique information or attributes. Each NFT is unique and differs from other tokens of the same class. For example, while plane tickets from and to a same destination may look the same, each one has a different passenger name, seat number, etc., and, therefore, is unique. In contrast to FTs, NFTs cannot be divided, an elementary unit of the NFT is the token itself.
[0071] Due to an immutable nature of transaction histories supported by blockchain networks, it is possible to extend the aforementioned validation steps of such transactions so that the transactions become subject to certain rules that reference prior transactions, or even aspects of an initial creation of a subject digital asset, e.g., a NFT. An example of such rules is an arrangement wherein royalties are paid to a creator of a digital asset each time the digital asset is sold to a subsequent owner. Such royalty payment arrangements may be implemented as a function with which the blockchain network is programmed, or using a reference table loaded into a computer memory element of the blockchain network, as a smart contract as described hereinabove, or by other means. - 14 - 3906796.v16184.1000002
[0072] An ordered tree may be a type of binary tree that has a unique ordering for all vertices of the tree. In other words, there may be a well-defined sequential numbering assigned to each vertex of the tree. An ordered tree can contain values at its leaves and ordered trees at non-leaf vertices. Any vertex that is a non-leaf node may also be referred to as a subtree of a root tree. An ordered tree may be described as complete if every layer of the tree is filled with nodes, and incomplete otherwise. Systems that use ordered trees may traverse such a tree as part of performing operations such as retrieving or modifying arbitrary subtrees, among other examples. A representation of an ordered tree inside a computer program may be based on memory pointers, where each inner vertex of the ordered tree may contain two pointers, for instance, one to the vertex’s left subtree and one to the vertex’s right subtree. In such a scheme, the computational time complexity of running retrieval and modification operations may scale logarithmically with regard to input size. In practical terms, this means that to retrieve or modify a particular subtree in a given tree, it may be necessary to dereference O(log( ^^)) memory pointers, where ^^ may be a variable defined as a number of leaves in the tree. Other representations of ordered trees may use arrays instead of pointer links between nodes; array- based implementations may deal only with complete trees, or may otherwise deal with incomplete trees by allocating enough memory to include a complete tree and placing null elements in place of missing elements.
[0073] A modern CPU (central processing unit) architecture in a von Neumann model may be designed with a goal of practical, Turing-complete computation. In the context of modern cryptography, there may be argument-of-knowledge systems of general Turing-complete calculation where, additionally, trust may not be assumed between a party interested in an outcome of a computation and a party who has resources to perform the computation. These two parties may agree on a model of computation and a cryptographic system that mathematically forces trust.
[0074] Certain proof systems may use tables, where a table may be a recorded trace of a state of a program at each individual step. A prover may engage within an agreed upon protocol to convince a verifier that the prover’s program trace table obeys certain agreed upon state evolution invariants that, if met, the verifier can trust that the whole program was run correctly. These invariants about the program’s evolution may be represented as polynomials defined over finite fields that operate on a row-by-row basis of tables used in a proof. In general, encoding - 15 - 3906796.v16184.1000002 may be a process of converting a set of rules, assertions, and / or computational invariants into one or more constraint polynomials that are produced using a combination of finite field polynomial encoding operations (i.e., addition, subtraction, multiplication, and division).
[0075] If a general computation models itself after a CPU architecture—which may involve access to traditional unstructured random-access memory (RAM)—it may be necessary to prove not only correct execution of the computation, but also soundness of interactions with memory. For example, if modeling a common read-write model of RAM, then a value read from a particular memory location may match a last value written to that location. Taking another example where arithmetic may be done on numbers that are stored in boxes (analogous to memory locations), if another party is not constrained from changing the numbers in the boxes in the middle of the calculation, there may be no reason to trust a final result, even if the right sequence of operations was correctly performed.
[0076] In such a case, technical obstacles may arise as part of ensuring consistency of reads and writes, which can be nonlocal and nonperiodic. This may be a very unnatural scenario for the strictures of current proof systems compatible with the general computation model, which may use a fixed set of polynomial constraints on data from a finite field and only validate correct execution of consecutive steps within a computation. This may necessitate committing to two different views of the computation with different constraints: one ordered by sequential steps of the computation, and another primarily ordered by memory address and then sub-ordered by sequential step. However, a problem may arise that two tables may separately satisfy these two different kinds of constraints, but be completely unrelated. Therefore, it may be necessary to make an additional argument that rows of the two tables are related by a permutation.
[0077] Alternatively, a different RAM memory model may be used, for example, by using a form of read-only memory (ROM). With further simplifying assumptions (e.g., “nondeterministic,” “continuous” read-only memory), such a model can become amenable to state evolution governed by polynomial constraints over a finite field.
[0078] In an example embodiment, a zero-knowledge verifier system according to principles of the present disclosure may be accomplished by use of, e.g., a zero-knowledge proof (ZKP). A zero-knowledge proof implementation in the zero-knowledge verifier system may ensure enforcement of encoded rules configured in digital assets (e.g., NFTs (non-fungible tokens)) utilizing a technique whereby a first entity (or “prover”), such as first transacting entity, a first - 16 - 3906796.v16184.1000002 wallet etc., may cryptographically prove to a second transacting entity (or “verifier”) that the first entity possesses knowledge regarding certain information regarding encoded rule(s) configured in a digital asset, without also disclosing the actual contents of the information.
[0079] ZKPs may be interactive or non-interactive. An interactive ZKP requires interaction between a prover entity and a verifier entity involved in a digital asset encoded rule enforcement transaction processed by the multinetwork digital asset control system. A non-interactive ZKP may be constructed from any interactive scheme by relying on, e.g., a Fiat-Shamir heuristic, or any other suitable technique known to those of skill in the art.
[0080] According to an example embodiment, a protocol implementing ZKPs may be presented as a transcript where a prover (first entity) responds to interactive inputs from a verifier (second entity). In another example embodiment, the interactive input may be in the form of one or more challenges such that responses from the prover will convince the verifier if and only if a statement is true, e.g., if the prover does possess certain asserted knowledge.
[0081] In the context of blockchain networks, according to some embodiments, by employing a ZKP, the only information divulged on-chain is that some piece of undisclosed information is (i) valid and (ii) known by the prover with a high degree of certainty. As such, in an example embodiment, ZKPs may be used by various blockchains to furnish privacy- maintaining digital asset transactions, whereby, for example, a transaction’s amount, sender electronic wallet identifier, and receiver electronic wallet identifier are kept secret. Furthermore, some embodiments relate to oracle networks that provide smart contracts with access to off- chain data and / or computing infrastructure. Such oracle networks may also employ ZKPs to prove a certain fact about off-chain data, without divulging the data itself on-chain. A method used for performing non-interactive ZKPs may be as described in D. Unruh, “Non-Interactive Zero Knowledge Proofs in the Random Oracle Model,” in EUROCRYPT 2015, 2015, pp.755– 84, which is herein incorporated by reference in its entirety.
[0082] Further, a method for creating and executing ZKP applications in embedded systems may be as described in Salleras, et al., “ZPiE: Zero-Knowledge Proofs in Embedded Systems,” Mathematics, vol.9, no.20, p.2569, 2021, which is herein incorporated by reference in its entirety.
[0083] A zero-knowledge proof may be used for verifiable computation, such as in distributed systems, for non-limiting example. Using a ZKP may be more efficient and / or less - 17 - 3906796.v16184.1000002 costly than proving or even running a computation itself. Further, in a blockchain context, for non-limiting example, leveraging ZKPs may allow for proving a computation a single time and verifying the computation multiple times.
[0084] Subsequent to the filing of U.S. Provisional Application No.63 / 484,866, aspects of the invention have been published in Allen et al., “EDEN - a practical, SNARK-friendly combinator VM and ISA,” Cryptology ePrint Archive, 2023, pp.1–34 and Allen et al., “Airwalk: Accessible Decentralized Ledgers with State-Minimization and Unlinkable Smart Transactions,” pp.1–41, both of which are herein incorporated by reference in their entirety and further attached hereto as Appendices A and B, respectively.
[0085] Dyck Words
[0086] According to an example embodiment, Dyck words describe a depth-first search (DFS) into a binary tree, i.e., a tree data structure in which each node has at most two children, referred to as a left child and a right child.
[0087] FIG.1 is a diagram of an exemplary DFS on a tree 100, e.g., a binary tree, according to an example embodiment. An exemplary process for DFS is as follows: a) Start at a root node of a tree. b) Given a current node, if a left child has not yet been explored, continue searching from the left child. If any left child has been explored already, continue searching from a right child. Otherwise, if any right child has also been explored, then return to a parent node, if any. c) Continue searching until all nodes in the tree have been visited or traversed.
[0088] In an example embodiment, as shown in FIG.1, an exemplary DFS of the tree 100 may start at root node 102a, search left to visit child node 102b, and then search left again to arrive at node 102c. Next, the DFS may return to node 102b and search right to visit child node 102d, followed by searching left to arrive at node 102e. The DFS may then return to node 102d and search right to visit child node 102f. After visiting node 102f, because no unvisited nodes may remain on the left branch of root node 102a, the DFS may then return to root node 102a and search right to arrive at child node 102g. Once at node 102g, the DFS may search left and then right to visit nodes 102h and 102i, respectively. Because no other nodes may remain to be visited in the tree 100 after arriving at node 102i, the DFS may finally terminate or conclude. - 18 - 3906796.v16184.1000002
[0089] According to an example embodiment, a DFS may have only two types of moves, i.e., following a left or right branch, and these moves may occur in a definite order. As shown in FIG.1, moves of the exemplary DFS of the tree 100 may be in a sequence of 104a-104i, where moves left 104a, 104b, 104d, and 104g may be indicated by solid directional lines, while moves right 104c, 104e, 104f, and 104h may be indicated by dashed directional lines.
[0090] In an example embodiment, a move left may be denoted by a 0 (zero) and a move left may be denoted by a 1 (one). A sequence of moves in terms of 0s and 1s may be a Dyck word of a binary tree, e.g., the tree 100.
[0091] FIG.2 illustrates an exemplary conversion from a tree 200 to a Dyck word 210 according to an example embodiment. As shown in FIG.2, an exemplary DFS of the tree 200 may have a move sequence of left move 204a, left move 204b, right move 204c, left move 204d, right move 204e, right move 204f, left move 204g, and right move 204h. Converting the tree 200 into the Dyck word 210 may thus result in a 0s and 1s sequence of 00101101 (zero, zero, one, zero, one, one, zero, one), which may correspond to the move sequence of the exemplary DFS of the tree 200. In an example embodiment, a tree, e.g., the tree 200, may also be referred to as ^^ and a Dyck word of the tree ^^, e.g., the Dyck word 210 of the tree 200, may also be referred to as ^^ ^^( ^^).
[0092] FIG.3 illustrates exemplary trees 300a-300i and their corresponding Dyck words 310a-310i according to an example embodiment. In an example embodiment, is noted that when a tree, e.g., 300a, is empty, a corresponding Dyck word, e.g., 310a, may also be empty.
[0093] Dyck Words and Tree Structure
[0094] In an example embodiment, it is noted that an exemplary DFS may first go left from a root of a tree, e.g., the root node 102a of the tree 100 (FIG.1); search an entire left subtree, e.g., the nodes 102b-102f (FIG.1); then go right from the root; and finally search an entire right subtree, e.g., the nodes 102g-102i (FIG.1).
[0095] Thus, according to an example embodiment, if^^ ^^( ^^)and^^ ^^( ^^)are known, where^^and^^are left and right subtrees, respectively, of a tree^^, then a Dyck word of the tree^^may be derived using the following exemplary equation: ^^ ^^( ^^) = 0 ^^ ^^( ^^) 1 ^^ ^^( ^^) - 19 - 3906796.v16184.1000002
[0096] In another example embodiment, it is noted an exemplary DFS may first go left from a root of a tree, e.g., the root node 102a of the tree 100; search an entire left subtree, e.g., the nodes 102b-102f; then go right from the root; and finally search an entire right subtree, e.g., the nodes 102g-102i. Blurring the distinction between a tree^^and its Dyck word, in an example embodiment, the tree ^^ may be derived more succinctly using the following exemplary equation: ^^ = 0 ^^1 ^^
[0097] Further, in yet another example embodiment, it is noted that in the above exemplary equation, ^^ and ^^ are each subwords (i.e., substrings or subsequences) of the tree ^^.
[0098] FIG.4 illustrates an exemplary recursive form of a Dyck word (not shown) of a generalized tree 400, according to an example embodiment. As shown in FIG.4, the tree 400 includes left subtree 406a and right subtree 406b. In an example embodiment, to derive the Dyck word of the tree 400, an exemplary DFS may first go left (indicated by a ‘0’ and solid directional line 404a) from root 402 of the tree 400, search the entire left subtree 406a, then go right (indicated by a ‘1’ and dashed directional line 404b) from the root 402, and finally search the entire right subtree 406b. According to another example embodiment, the subtrees 406a and 406b may be subwords of the tree 400.
[0099] Subtrees
[0100] In an example embodiment, the principles described in the preceding section may also apply with respect to subtrees. According to another example embodiment, any given subtree may be a left or right child tree of a parent node. Thus, in an example embodiment, a Dyck word of a subtree having a parent node, relative to a Dyck word of a tree whose root is the parent node, may be a subword according to the below exemplary notation: ^^ ^^ ^^’
[0101] According to an example embodiment, the above exemplary notation may indicate that subtree ^^ (which may be considered equivalent to a Dyck word) is a subword of parent tree ^^’. In another example embodiment, the above exemplary notation may be expanded and continue to ^^’’, a parent of ^^’, and so on until an ultimate root node is reached, which root node may encompass an entire tree ^^, as shown in the below exemplary notation: - 20 - 3906796.v16184.1000002 ^^ ^^ ^^’ ^^ ^^’’ ^^ … ^^ ^^
[0102] According to an example embodiment, in the above exemplary notation, each tree may be a subword of a next tree, which may also imply that ^^ ^^ ^^. Put differently, in another example embodiment, a subword of a subword a tree may also be a subword of the tree itself. Thus, according to yet another example embodiment, a Dyck word of a subtree may be a subword (i.e., a substring or subsequence) of a Dyck word of a full tree that includes the subtree.
[0103] Dyck Word Validation
[0104] In an example embodiment, an exemplary method for recognizing whether a binary string is a valid Dyck word may depend on relative quantities of symbols, e.g., 1s (ones) and 0s (zeroes), in the binary string.
[0105] First Exemplary Dyck Word Validation Method
[0106] In an example embodiment, a first exemplary method for validating a Dyck word may leverage properties of DFS to determine whether a given string or sequence fulfills the below two exemplary requirements: a) Reading the sequence left to right, a point is not reached where a running tally of 1s exceeds a running tally of 0s; and b) A total quantity of 0s is equal to a total quantity of 1s in the sequence.
[0107] It is helpful to provide non-limiting examples of binary strings that are not Dyck words. For instance, a bit string 010110 may not be a Dyck word because its fifth symbol may be a point at which a running tally of 1s exceeds a running tally of 0s. It should be noted, however, that the second above exemplary requirement (total quantity of 0s equal to total quantity of 1s) may still be met. As another example, a bit string 0011010 may not be a Dyck word because it may contain more 0s than 1s, despite satisfying the first above exemplary requirement.
[0108] Second Exemplary Dyck Word Validation Method
[0109] It should be noted that, in an example embodiment, the above two exemplary requirements can be formulated in terms of differences between quantities of 0s and 1s, as given by the exemplary equations below: a) (quantity of 0s at given index^^)―(quantity of 1s at the index^^) ≥ 0 b) (total quantity of 0s)―(total quantity of 1s) = 0 - 21 - 3906796.v16184.1000002
[0110] According to another example embodiment, the above exemplary equations may also be referred to as “deltas” or, alternately, “weighted” deltas, as shown by the exemplary notations below: ^^ ^^ ^^ ^^ ^^ ^^= (quantity of 0s at given index^^)―(quantity of 1s at the index^^) ^^ ^^ ^^ ^^ ^^^^= (total quantity of 0s) ― (total quantity of 1s)
[0111] Thus, in an example embodiment, a second exemplary method for validating a Dyck word may be succinctly formulated in terms of the below two exemplary requirements: a) ^^ ^^ ^^ ^^ ^^^^≥ 0 b) ^^ ^^ ^^ ^^ ^^^^= 0
[0112] According to another example embodiment, in the above two exemplary requirements,^^may be an index of a Dyck word’s final symbol.
[0113] In an example embodiment, a delta may be updated iteratively according to the below exemplary equation: ^^ ^^ ^^ ^^ ^^^^+1= ^^ ^^ ^^ ^^ ^^^^+
[0114] According toexemplary equation, the Dyck word being validated may be in a form of a string or sequence^^0 ^^1… ^^ ^^.
[0115] In an example embodiment, because an equation of^^↦1 ― 2 ^^may map 0 → 1 and 1 → -1, the below exemplary equation may serve as a rule fora delta while reading a Dyck word: ^^ ^^ ^^ ^^ ^^^^+1= ^^ ^^ ^^ ^^ ^^^^+ (1 ― 2 ^^^^+1)
[0116] Binary Trees with Leaf Data
[0117] In an example embodiment, a Dyck word and / or a leaf vector encoding may be generated or created from a binary tree with, e.g., nonnegative integer data (i.e., atoms) on its leaves (i.e., a decorated binary tree).
[0118] FIG.5 illustrates an exemplary transformation or conversion from a tree, e.g., a nontrivial binary tree 500 with leaf data 508a-508f, to a Dyck word 510 and leaf vector encoding 512, according to an example embodiment. In an example embodiment, the tree 500 may include nodes 502a-502k, while leaf vector 512 may include components 514a-514f. - 22 - 3906796.v16184.1000002
[0119] In an example embodiment, for a tree such as the tree 500, it may be desirable to encode the tree 500’s shape, i.e., its Dyck word encoding 510, and its data 508a-508f. According to another example embodiment, the tree 500’s data 508a-508f may be encoded in a manner that is geometrically and visually efficient and meshes well with the Dyck word encoding 510 of the tree 500’s shape: the data 508a-508f may be arranged or structured in DFS order.
[0120] According to an example embodiment, decoding may proceed by using a sequence of the Dyck word 510 as instructions on how to rebuild or reconstruct the tree 500 via DFS. In another example embodiment, each time a leaf of the tree 500 is newly generated, a next unused component of the leaf vector 512 may be placed at the newly generated leaf. For instance, when first leaf 502c of the tree 500 is generated, first component 514a (i.e., corresponding to the data 508a) of the leaf vector 512 may be placed at the generated first leaf 502c. Similarly, when second leaf 502d of the tree 500 is generated, second component 514b (i.e., corresponding to the data 508b) of the leaf vector 512 may be placed at the generated second leaf 502d.
[0121] In an example embodiment, when performing an exemplary DFS, the only move for going deeper into a tree from a given point may be a move denoted symbolically by 0, i.e., a move left, such as 104a (FIG.1), 204a (FIG.2), or 404a (FIG.4). Thus, according to another example embodiment, if a next move for the exemplary DFS is not to go deeper into the tree, i.e., the next move is not a 0 (i.e., a left move), then the exemplary DFS may presently be at a leaf.
[0122] According to an example embodiment, while parsing or interpreting a Dyck word, if a next symbol is not 0—i.e., it is 1—or no symbols remain in the Dyck word, then a current position in a tree corresponding to the Dyck word may be at a leaf of the tree.
[0123] FIG.6 illustrates exemplary steps 1-6 of an encoding process for a tree 600 with data 608a-608d according to an example embodiment. As shown in FIG.6, at step 1, left move 604a may result in a 0 symbol being appended to the Dyck word 610, but because a leaf node may not be encountered, no component may be added to leaf vector 612.
[0124] Next, at step 2, further left move 604b may result in another 0 symbol being added to the Dyck word 610, and, because the left move 604b may encounter a leaf node, this may result in component 614a (i.e., corresponding to the data 608a) being added to the leaf vector 612.
[0125] At step 3, right move 604c may result in a 1 symbol being added to the Dyck word 610, but because a leaf node may not be encountered, no component may be added to the leaf vector 612. - 23 - 3906796.v16184.1000002
[0126] In turn, at step 4, left move 604d may result in a 0 symbol being added to the Dyck word 610, and, because the left move 604d may encounter a leaf node, this may result in component 614b (i.e., corresponding to the data 608b) being added to the leaf vector 612.
[0127] At step 5, right move 604e may result in a 1 symbol being added to the Dyck word 610, and, because the right move 604e may encounter a leaf node, this may result in component 614c (i.e., corresponding to the data 608c) being added to the leaf vector 612.
[0128] Finally, at step 6, further right move 604f may result in another 1 symbol being added to the Dyck word 610, and, because the right move 604f may encounter a leaf node, this may result in component 614d (i.e., corresponding to the data 608d) being added to the leaf vector 612.
[0129] FIG.7 illustrates exemplary steps 1-6 of a decoding process for a Dyck word 710 and leaf vector 712 with components 714a-714d according to an example embodiment. As shown in FIG.7, at step 1, a current symbol 716a of the Dyck word 710 may be a 0, thus resulting in a left branch 718a being added to in-progress tree 700. A next symbol 716b of the Dyck word 710 may also be a 0, meaning that the left branch 718a may not include a leaf node (i.e., because a next symbol is present in the Dyck word and the next symbol does not result in a right branch).
[0130] Next, at step 2, a current symbol 716b of the Dyck word 710 may also be a 0, thus resulting in another left branch 718b being added to the tree 700. A next symbol 716c of the Dyck word 710 may be a 1, meaning that the left branch 718b may include a leaf node (not shown); thus, data 708a—corresponding to the first component 714a of the leaf vector 712—may be included at the leaf node of the left branch 718b.
[0131] To continue, at step 3, a current symbol 716c of the Dyck word 710 may be a 1, thus resulting in a right branch 718c being added to the tree 700. A next symbol 716d of the Dyck word 710 may be a 0, meaning that the right branch 718c may not include a leaf node.
[0132] In turn, at step 4, a current symbol 716d of the Dyck word 710 may be a 0, thus resulting in a left branch 718d being added to the tree 700. A next symbol 716e of the Dyck word 710 may be a 1, meaning that the left branch 718d may include a leaf node (not shown); thus, data 708b—corresponding to the second component 714b of the leaf vector 712—may be included at the leaf node of the left branch 718d.
[0133] Then, at step 5, a current symbol 716e of the Dyck word 710 may be a 1, thus resulting in a right branch 718e being added to the tree 700. A next symbol 716f of the Dyck - 24 - 3906796.v16184.1000002 word 710 may also be a 1, meaning that the right branch 718e may include a leaf node (not shown); thus, data 708c—corresponding to the third component 714c of the leaf vector 712— may be included at the leaf node of the right branch 718e.
[0134] Finally, at step 6, a current symbol 716f of the Dyck word 710 may be a 1, thus resulting in a right branch 718f being added to the tree 700. The Dyck word 710 may have no next symbol remaining, meaning that the right branch 718f may include a leaf node (not shown); thus, data 708d—corresponding to the fourth (and final) component 714d of the leaf vector 712—may be included at the leaf node of the right branch 718f.
[0135] Subtree Numbering
[0136] In an example embodiment, a tree may be assigned a numeric identifier, for instance, 1 (one). According to another example embodiment, a left subtree and a right subtree of the tree may similarly be assigned numeric identifiers, for instance, 2 (two) and 3 (three), respectively. It should be noted that the left subtree’s identifier can be defined by the formula 2 = 2 * 1; likewise, the right subtree’s identifier can be defined by the formula 3 = 2 * 1 + 1.
[0137] According to an example embodiment, the preceding formulas may be concrete examples of a more general principle. That is, in another example embodiment, if a tree T has a numeric identifier A (also referred to as its “axis” identifier) assigned to it, then the identifier A may be used in the below two exemplary general formulas: 2 ^^, 2 ^^ + 1
[0138] The above two exemplary general formulas may define numeric identifiers for the tree T’s left and / or right subtrees, respectively, if any.
[0139] FIG.8A illustrates an exemplary tree 800 according to an example embodiment. As shown in FIG.8A, the tree 800 may be assigned a numeric identifier of 1 (one).
[0140] FIG.8B illustrates the exemplary tree 800 of FIG.8A, including left subtree 806a and right subtree 806b, according to an example embodiment. As shown in FIG.8B, the left subtree 806a may be assigned a numeric identifier of 2 (two), while the right subtree 806b may be assigned a numeric identifier of 3 (three).
[0141] FIG.9 illustrates an exemplary tree 900 with subtrees 906a-906m according to another example embodiment. As shown in FIG.9, for instance, subtree 906c may have an axis - 25 - 3906796.v16184.1000002 (A) identifier of 4 (four), while its left subtree 906e and right subtree 906f may have identifiers of 8 (eight) and 9 (nine) respectively. According to an example embodiment, the identifier of the left subtree 906e may follow the exemplary general formulas above, in that 8 = 2 * 4. Likewise, in another example embodiment, the identifier of the right subtree 906f may follow the exemplary general formulas above, in that 9 = 2 * 4 + 1.
[0142] Path to a Subtree
[0143] FIG.10A is a generalized diagram of an exemplary tree 1000, e.g., a binary tree, having subtrees 1006a-1006i, according to an example embodiment. As shown in FIG.10A, details of the subtrees 1006a-1006h may be abstracted and replaced with a △ symbol. In an example embodiment, a path to a given subtree S, e.g., the subtree 1006i, may be depicted in FIG.10A as dashed line 1018.
[0144] It should be noted that, in an example embodiment, the path 1018 can be described or represented by a sequence or string of 0 and / or 1 symbols, in a manner similar to Dyck words. According to another example embodiment, the path 1018 may be represented by the following exemplary sequence, also referred to as a “path word”: ^^ ^^ ^^ℎ = 01110100
[0145] In an example embodiment, the above exemplary path word (i.e., for the path 1018) may be used to yield a binary representation of the subtree S’s, e.g., the subtree 1006i’s, axis (A) identifier, according to the below exemplary formula: ^^ ^^ ^^ℎ = 01110100 ↓ ^^ = 0 ^^ 101110100=28+ 26+ 25+ 24+ 22 =372
[0146] According to an example embodiment, a left move, which may correspond to a 0 symbol, may multiply the axis identifier by 2. But, in another example embodiment, multiplying by 2 may be the same as appending a 0 to the right in binary. In yet another example - 26 - 3906796.v16184.1000002 embodiment, a right move may be similar, because its symbol may be 1, but “multiply-by-2- then-add 1” in binary may be the same as appending a 1 to the right.
[0147] In an example embodiment, when reading a Dyck word of a full tree T, e.g., the tree 1000, the symbols of the path word (i.e., for the path 1018) may all occur, in order, in the Dyck word, as seen in the below exemplary notation: ^^ = 0 ^^1 ^^1 ^^10 ^^100 ^^1 ^^1 ^^1 ^^1 ^^ ^^ ^^ ^^ℎ = 01110100
[0148] According to another example embodiment, the above exemplary result may occur due to one or more properties of an exemplary DFS.
[0149] FIG.10B illustrates the exemplary tree 1000 of FIG.10A annotated with a path word sequence for the path 1018 according to an example embodiment.
[0150] FIG.10C illustrates the exemplary tree 1000 of FIG.10A where each subtree 1006a- 1006h is annotated with its respective axis (A) identifier (e.g., in base ten), according to an example embodiment.
[0151] FIG.10D illustrates the exemplary tree 1000 of FIG.10A where each subtree 1006a- 1006h is labeled, according to an example embodiment.
[0152] In an example embodiment, a tree T and / or its subtree(s) may have one or more of the following exemplary properties: a) Each subtree may have an axis identifier A. b) A given axis identifier’s binary symbols, excluding any leading 1, may describe a path of left / right moves to a given subtree. c) A given path may be contained, in order, within a Dyck word of the full tree T.
[0153] Exemplary Method for Subtree Access
[0154] In an example embodiment, parameters for an exemplary method, e.g., a linear method, for accessing or reaching a target subtree S may be specified as follows: a) Inputs: i. Decorated binary tree T: (Dyck word, leaf vector) ii. Axis identifier A b) Output: - 27 - 3906796.v16184.1000002 i. Decorated binary subtree S: (Dyck word, leaf vector) such that S is a subtree of T at axis identifier A
[0155] According to another example embodiment, the exemplary subtree access method may include the following steps. Initially, a “path” to the target subtree S may be determined or calculated from binary symbols of the input axis identifier A. The exemplary subtree access method may include following the determined path. However, to follow the path it may first be necessary to construct or generate a tree structure—i.e., based on the input Dyck word—up to that point according to, e.g., a DFS.
[0156] In an example embodiment, if a given move in the path is a left move, then the left move may be made in conjunction with a DFS creating a left branch of the tree, because the DFS may create each left branch prior to creating each right branch. However, if the given move is a right move, then, before making the right move, it may be necessary to wait until the DFS has parsed or processed a portion of the input Dyck word corresponding to any remaining left portion of the tree.
[0157] According to an example embodiment, the exemplary subtree access method may determine how long to wait based on properties of Dyck words and by using a “local count” mechanism as follows. For a given node in the tree structure, if a next move of the path is a right move, but the next DFS operation is to create a left branch or segment, then a “mismatch” may occur, and the node may be considered or designated as a “conflict” node. When a conflict node is encountered, the exemplary subtree access method may create or initialize a local count variable. Creating a left branch from the conflict node may then cause a value of the local count variable to be incremented by 1 (one). While the DFS is constructing a left subtree from the conflict node, the value of the local count variable may remain greater than or equal to 1 (one). After the DFS fully generates the left subtree—i.e., once the DFS exits the left subtree—the value of the local count variable may be equal to 1 (one). In turn, when a next symbol of the path aligns or matches with a next symbol of the input Dyck word—i.e., after the DFS exits the left subtree and both the next symbol of the path and the next symbol of the input Dyck word are 1 (one)—a subtraction operation may cause the value of the local count variable to reach 0 (zero). This may allow the exemplary subtree access method to resume proceeding along the path to the target subtree S. - 28 - 3906796.v16184.1000002
[0158] In an example embodiment, once all symbols in the path are exhausted or processed, this may result in the exemplary subtree access method reaching or arriving at the target subtree S. Further, according to another example embodiment, a subtree local count variable may be used to detect when the target subtree S is exited or fully traversed. When a value of the local count variable reaches a negative value, e.g., -1 (negative one), this may indicate that traversal of the target subtree S is complete. During traversal of the target subtree S, each symbol of the input Dyck word and each component of an input leaf vector that are processed may be included in a corresponding output Dyck word and output leaf vector, respectively.
[0159] FIG.11 illustrates an exemplary conflict node 1122 with a corresponding local count variable (not shown) according to an example embodiment. As shown in FIG.11, a left move 1104a from the conflict node 1122 may cause a value of the local count variable to be incremented by 1 (one). In an example embodiment, while a left subtree 1106 from the conflict node 1122 is being visited, the value of the local count variable may be greater than or equal to 1 (one). Upon completing traversal of the left subtree 1106, the value of the local count variable may be equal to 1 (one). According to another example embodiment, a subsequent right move 1104b from the conflict node 1122 may result in a subtraction operation being performed, which in turn may cause the value of the local count variable to be 0 (zero).
[0160] FIG.12 illustrates exemplary steps 1-6 of a method 1200 for accessing a target subtree 1206 according to an example embodiment. As shown in FIG.12, the method 1200 may take as inputs a tree T, e.g., a decorated tree, having an associated Dyck word 1210 and leaf vector 1212, as well as an axis identifier 1224 associated with the target subtree 1206. In an example embodiment, based on the axis identifier 1224, the method 1200 may determine or calculate a path 1218.
[0161] According to an example embodiment, at step 1, the method 1200 may determine that a mismatch exists between a first symbol of the Dyck word 1210—which may correspond to a left move 1204a—and a first move of the path 1218. Upon identifying the mismatch, the method 1200 may then create a conflict local count variable 1226a with an initial value of 1 (one). Moreover, the method 1200 may wait to proceed with the first move of the path 1218.
[0162] In another example embodiment, at step 2, the method 1200 may determine that a match or agreement exists between a second symbol of the Dyck word 1210—which may correspond to a right move 1204b—and a first move of the path 1218. Upon identifying the - 29 - 3906796.v16184.1000002 match, the method 1200 may then decrement the value of the conflict local count variable 1226a so that the value is equal to 0 (zero). A 0 value for the conflict local count variable 1226a may cause the method 1200 to determine that it should proceed with the first move of the path 1218.
[0163] According to an example embodiment, at step 3, the method 1200 may again determine that a match exists—this time between a third symbol of the Dyck word 1210 (which may correspond to a left move 1204c) and a second (and final) move of the path 1218. Upon identifying the match, the method 1200 may proceed with the second and final move of the path 1218. Because the move 1204c may lead to a subtree having the axis identifier 1224 associated with the target subtree 1206, the method 1200 may further determine that the target subtree 1206 has been reached.
[0164] In another example embodiment, at step 4, having arrived at the target subtree 1206, the method 1200 may create a subtree local count variable 1226b with an initial value of 1 (one). The method 1200 may then proceed with move 1204d, which may correspond to a fourth symbol of the Dyck word 1210. In turn, the method 1200 may include in its output (i) the fourth symbol of the Dyck word 1210 and (ii) a leaf vector component 1214a corresponding to the fourth symbol.
[0165] According to an example embodiment, at step 5, the method 1200 may decrement the value of the subtree local count variable 1226b so that the value is equal to 0 (zero). The method 1200 may then proceed with move 1204e, which may correspond to a fifth symbol of the Dyck word 1210. In turn, the method 1200 may further include in its output (i) the fifth symbol of the Dyck word 1210 and (ii) a leaf vector component 1214b corresponding to the fifth symbol.
[0166] In another example embodiment, at step 6, the method 1200 may again decrement the value of the subtree local count variable 1226b so that the value is equal to -1 (negative one). A - 1 value for the subtree local count variable 1226b may indicate that the method 1200 has exited the target subtree 1206. The method 1200 may then proceed with move 1204f, which may correspond to a sixth—and final—symbol of the Dyck word 1210. In turn, having finished processing the entire Dyck word 1210, the method 1200 may determine to conclude at step 6. - 30 - 3906796.v16184.1000002
[0167] Encoding of Subtree Access
[0168] In an example embodiment, one or more rules for execution of an exemplary subtree access method above may be described as a series of one or more constraints, e.g., polynomial constraints.
[0169] FIG.13 illustrates an exemplary table or trace 1320 of a Dyck encoding 1310 according to an example embodiment. As shown in FIG.13, a portion of the table / trace 1320 may correspond to a target subtree 1306. In an example embodiment, the table / trace 1320 may be used to prove correct tree traversal. According to another example embodiment, one or more additional columns may be added to the table / trace 1320.
[0170] FIG.14 illustrates an exemplary table or trace 1420, e.g., an extended table / trace, of a Dyck encoding 1410 according to another example embodiment. In an example embodiment, FIG.14 may depict a more detailed trace, compared to FIG.13, such as by including additional columns.
[0171] FIG.15 illustrates an exemplary table or trace 1520, e.g., an extended table / trace, of a Dyck encoding 1510 with descriptions for columns 1528a-1528t according to an example embodiment. In an example embodiment, FIG.15 may add descriptions to the columns of FIG. 14. Take specific note of pair (ilocf 1528j, yetf 1528n). Extra variables may be designed to make this pair equal (1,0) when in a target subtree. Blue 1s and yellow 0s combine to highlight green indices and green Dyck letters. A technical construction involving column “horn1” 1528o may extract this info from the table / trace 1520. Blue 1s, yellow 0s, and red Dyck letters may also combine to make purple vector indices and purple vector components. (Red Dyck letters may be a first letter in the target subtree and 1s in the subtree.) A similar construction with column “horn2” 1528p may remove this data from the table / trace 1520.
[0172] According to an example embodiment, one or more constraints may be used with the exemplary table / trace 1520 of FIG.15 to verify that the table / trace 1520 represents a proper execution of an exemplary subtree access algorithm. Below is an exemplary set of such constraints, for non-limiting example: - 31 - 3906796.v16184.1000002 ^^ ^^′
[0173] Exemplary System Architecture
[0174] Certain embodiments may provide higher-performance representations for potentially incomplete binary trees and / or an innovative cryptographic proof system architecture.
[0175] Nock is a Turing-complete virtual machine (VM) specification based on combinatorial calculus. At present, Nock includes twelve operations, referred to by their ordinals (e.g., Nock 1, Nock 2, etc.). Nock is used as a layer for a general-purpose operating system (OS) known as Urbit®, where Nock computations may be run as interpreted bytecode. Urbit provides functionality such as I / O (input / output) drivers, a persistence layer, and a peer-to-peer networking substrate, among other examples. A data structure that Nock uses to represent both data and code is potentially incomplete binary trees, e.g., potentially incomplete ordered binary trees. Nock’s computational model may be defined as a set of one or more reduction rules on potentially incomplete binary trees, where a given tree contains Nock operations at specific vertices of the tree combined with data to which the operations apply. Executing a Nock program may include applying reduction rule(s) to a given tree (which may represent code). Among the present Nock operations is a tree modification operation, and this operation may be used to create / modify state and / or perform function calls. Thus, an encoding used by a system implementing a Nock VM to model computation (as in the case of Urbit) may require efficient performance characteristics for an operation such as tree modification. Current Nock VM implementations inside Urbit may utilize a pointer-based system, but as mentioned hereinabove, both array-based and pointer-based systems may be naïve and / or inefficient at representing potentially incomplete binary trees. Embodiments may provide a high-performance encoding that can drastically increase performance at every level of a system (networking, persistence, and - 32 - 3906796.v16184.1000002 I / O, among other examples). Any interpreter, e.g., a Nock interpreter, whether in the context of Urbit or not, may benefit from techniques provided by embodiments.
[0176] The Nock VM specification may be selected as a model of computation to encode. A memory model may also be used to model data access and / or modification. For instance, as mentioned hereinabove, one existing approach is to model a concept of RAM reads and writes in a fashion similar to memory used by a Turing machine. However, such an approach may come with significant costs of constraint size and conceptual complexity, which can give rise to a proof system that is inefficient and harder to reason about. It is important to note that Nock’s notion of memory access diverges from the traditional Turing machine model, such as with regard to data layout and access. In particular, because there is no structured data in Nock that is not a potentially incomplete binary tree, there is no way for a program to perform arbitrary pointer- based memory reads and writes, only tree traversal and modification. Modeling traditional RAM in a Nock VM based on, e.g., a proof system, while never making use of such a memory model, in practice may lead to incurring unnecessary performance costs.
[0177] Certain embodiments may provide a more efficient proof system that takes advantage of extra strictness offered by a data / memory model, such as the Nock data / memory model. Because a particular Dyck word may not only encode a structure of a given tree “at rest,” but may also correspond to linear steps of a depth-first traversal (i.e., DFS) of the tree, some embodiments may provide an approach that includes writing constraints that encode tree traversal and / or modification invariants directly. Further, because a Dyck word can be decoded, e.g., linearly, for instance by accessing only a current and next leaf node to determine a next step in an exemplary decoding process, certain embodiments may include a system for generating proofs about computations, e.g., Nock computations, while offering immense performance benefits by, for instance, simultaneously modeling memory access, e.g., Nock specific memory access, without paying larger costs of generalized memory access. In some embodiments, leaf data may be an element within a finite field itself or may be represented using a higher-level encoding that may, for instance, take arbitrarily large leaf data and encode it as a tree of field elements.
[0178] In an example embodiment, a ZKP may be generated for a particular electronic transaction in a blockchain network. A procedure may also be performed on-chain to validate that the ZKP has been generated for the transaction. However, actual computation of logic for - 33 - 3906796.v16184.1000002 the transaction may be performed off-chain. Accordingly, the only process taking place on-chain may be the verification of proof of the transaction. In another example embodiment, a proof of a transaction processed off-chain may be a zero-knowledge VM (ZKVM) proof.
[0179] Some embodiments may track data from an on-chain state that is incorporated into a given transaction, e.g., on a blockchain network. The tracking may include explicit dependency tracking, which may be based on UTXO semantics, for non-limiting example. Such tracking of data from an on-chain state may allow for certain embodiments to process multiple transactions in parallel. For instance, in an example embodiment, multiple proofs may be merged together and aggregated to form a single block. According to another example embodiment, in a blockchain network, performing useful work to find or mine a next block may include forming ZKPs of an aggregation of transactions into a block. In this way, concepts of transaction generation and inclusion in a block may be merged with an actual blockchain mining process. Further, in yet another example embodiment, a verification process that aggregates individual transaction proofs may also introspect into input and / or output data. Such an introspection technique may ensure that child proofs that are aggregated are proofs of fixed computation that validate a particular set of constraints. The technique may also enable verifying that outputs conform to particular rules, such as the outputs are not conflicting, for non-limiting example.
[0180] FIG.16 is a flow diagram of an exemplary computer-based system / method 1600 for state minimization and unlinkable transactions according to an embodiment. The system / method 1600 begins by 1601 via a zero-knowledge VM, verifying a block of multiple blocks of a state- minimized decentralized ledger based on a block header of the block and at least one ZKP of the multiple blocks and recursively verifying a corresponding ZKP of at least one predecessor block of the block. The block is associated with an electronic transaction. The state-minimized decentralized ledger is configured as a dynamic cryptographic accumulator implementing a decentralized ledger protocol. The system / method 1600 continues by generating 1602 an unlinkable transaction by obfuscating a correlation between a source node of multiple nodes of a blockchain computer network and a destination node of the multiple nodes. The source node and the destination node are associated with the electronic transaction. The system / method 1600 then validates 1603 the electronic transaction by verifying a ZKP corresponding to the generated unlinkable transaction. The ZKP is configured to attest to correctness of the generated unlinkable transaction and satisfaction of smart contract logic associated with a digital wallet. - 34 - 3906796.v16184.1000002
[0181] Aspects of the system / method 1600 of FIG.16 may be as described in Allen et al., “EDEN - a practical, SNARK-friendly combinator VM and ISA,” Cryptology ePrint Archive, 2023, pp.1–34 and Allen et al., “Airwalk: Accessible Decentralized Ledgers with State- Minimization and Unlinkable Smart Transactions,” pp.1–41, both of which are herein incorporated by reference in their entirety and further attached hereto as Appendices A and B, respectively.
[0182] FIG.17 is a block diagram of an example embodiment of a blockchain network 1700, also referred to interchangeably herein as a distributed ledger network 1700, that may be accessed according to an example embodiment. The blockchain network 1700 is a distributed ledger P2P network and may be valuable because this network enables trustworthy processing and recording of transactions without the need to fully trust any user (e.g., person, entity, program, and the like) involved in the transactions, reducing the need for trusted intermediaries to facilitate the transaction. Existing applications use the distributed ledger network 1700 to transfer and record, in the form of blockchain based records, movement of tokens. Such blockchain based records form a cryptographically secured backlinked list of blocks.
[0183] The distributed ledger network 1700 includes multiple computing devices configured as nodes 1710, 1720, 17170, 1740, 1750, 1760 of the distributed ledger network 1700. Each node 1710, 1720, 17170, 1740, 1750, 1760 locally stores and maintains a respective identical copy 1715, 1725, 17175, 1745, 1755, 1765 of the blockchain ledger in memory communicatively coupled to the node. The nodes exchange messages within the distributed ledger network 1700 to update and synchronize the ledger stored and maintained by each node. The nodes may also execute decentralized applications (dApps), such as via smart contracts, for processing the messages. A message transmission 1770 from the node 1710 to the node 1740 may be used to exchange a token in the distributed ledger network 1700 as shown in FIG.17. The dotted lines between each set of nodes in the distributed ledger network 1700 indicate similar transmissions that may be exchanged between any other set of nodes in the distributed ledger network 1700. The messages may include a confirmed transfer for recording data associated with the token being transferred, such as a blockchain public key for each of the one or more parties participating in the transfer.
[0184] Continuing with FIG.17, according to an example embodiment, the blockchain network 1700 may be an Ethereum network; however, it should be understood that the - 35 - 3906796.v16184.1000002 blockchain network 1700 may also be any suitable blockchain network known to those of skill in the art. Ethereum is a decentralized network of computers with two basic functions: (i) a blockchain that can record transactions and (ii) a VM, that is, an Ethereum Virtual Machine (EVM), that can produce smart contracts. Because of these two functions, Ethereum is able to support dApps. These dApps are built on the existing Ethereum blockchain, piggybacking off of its underlying technology. In return, Ethereum charges developers for the computing power in their network, which can only be paid in Ether (ETH), the only inter-platform currency. Depending on its purpose, a dApp may create ERC-20 (Ethereum Request for Comments issue number 20) tokens to function as a currency. According to an example embodiment, FTs disclosed herein may be ERC-20 tokens or any other suitable FT known in the art.
[0185] The code of a smart contract may be uploaded on the EVM, which may be a universal runtime compiler or browser, to execute the smart contract’s code. Once the code is on the EVM, the code may be the same across each Ethereum node to be run to check whether one or more condition(s) are met, such as a condition for secure possession of respective shard(s) of a cryptographic key by corresponding node(s) of a blockchain computer network.
[0186] Ethereum has a long history of developed standards. For example, ERC-20 is a standard that defines a set of six functions that other smart contracts within the Ethereum computer-implemented ecosystem can understand and recognize. ERC-20 is a protocol standard and in order to be ERC-20 compliant, the functions need to be included in the token’s smart contract. ERC-20 outlines a specific list of rules that a given Ethereum-based token has to deploy, simplifying the process of programming the functions of tokens on Ethereum’s blockchain. These include, for instance, how to transfer a token (by the owner or on behalf of the owner), such as may be employed for transferring FTs of a buyer, and how to access data (e.g., name, symbol, supply, and / or balance) concerning the token.
[0187] An example embodiment may be implemented in a software, firmware, and / or hardware environment. FIG.18 illustrates one such example digital processing environment in which embodiments of the present disclosure may be implemented. Client computer(s) / device(s) 1850 and server computer(s) / device(s) 1860 provide processing, storage, and I / O devices executing application programs and the like.
[0188] The client computer(s) / device(s) 1850 may be linked 1890 directly or through communications network(s) 18701-nto other computing devices, including other client - 36 - 3906796.v16184.1000002 computer(s) / device(s) 1850 and server computer(s) / device(s) 1860. A communication network 1870 may be part of a wireless or wired network, a remote access network, a global network (e.g., the Internet), a worldwide collection of computers, local area networks (LANs) or wide area networks (WANs), and gateways, routers, and switches that may use a variety of known protocols (e.g., TCP / IP, Bluetooth®, etc.) to communicate with one another. Moreover, a communication network 1870 may also be a virtual private network (VPN) or an out-of-band (OOB) network or both. In addition, a communication network 1870 may take a variety of forms, including, but not limited to, a blockchain network, a distributed ledger network, a data network, voice network (e.g., landline, mobile, etc.), audio network, video network, satellite network, radio network, and pager network. Other known electronic device / computer network architectures are also suitable. For example, the client computer(s) / device(s) 1850 may include the nodes shown in FIG.17, which may run user applications that enable a user to communicate with an application to determine whether a user meets a work requirement. A blockchain network may be configured on each user device 1710, 1720 (FIG.17) to store tokens. The client computers 1750 (FIG.17) of the computer-based system / method 1600 (FIG.16) may be configured with a trusted execution environment (TEE) or Trusted Platform Module (TPM), where the application may be run and digital assets and / or tokens may be stored.
[0189] Referring again to FIG.18, the server computer(s) / device(s) 1860 of the computer- based system / method 1600 may be configured to include a server that that executes an application. The server computer(s) / device(s) 1860 may not be separate server computers, but instead may be part of a cloud service. For another example, the server computer(s) / device(s) 1860 or the client computer(s) / device(s) 1850 may include the peer computing devices (nodes) 1710, 1720, 17170, 1740, 1750, 1760 of the distributed blockchain ledger 1700 of FIG.17, which use smart contracts to execute and record transactions implemented via tokens.
[0190] FIG.19 is a block diagram of any internal structure of a computing / processing node (e.g., the client computer(s) / device(s) 1850 or server computer(s) / device(s) 1860) in the processing environment 1800 of FIG.18, which may be used to facilitate displaying audio, image, video, and / or data signal information. Each computer / device 1850, 1860 in FIG.18 may contain a system bus 1910, where a bus is a set of actual or virtual hardware lines used for data transfer among components of a computer or processing system. The system bus 1910 may essentially be a shared conduit that connects different elements of a computer system (e.g., - 37 - 3906796.v16184.1000002 processor, disk storage, memory, I / O ports, etc.), thereby enabling transfer of data between elements or components.
[0191] Continuing with FIG.19, attached to the system bus 1910 is an I / O device interface 1911 for connecting various input and output devices (e.g., keyboard, mouse, touch screen interface, displays, printers, speakers, audio inputs and outputs, video inputs and outputs, microphone jacks, etc.) to a computer / device 1850, 1860. A network interface 1913 may allow a computer / device to connect to various other devices attached to a network, e.g., the network 1870 of FIG.18. A memory 1914 may provide volatile storage for computer software instructions 1915 and data 1916 used in some embodiments to implement software modules / components of the system / method 1600 (FIG.16).
[0192] The software components 1915, 1916 of the system / method 1600 (e.g., device integrity attestation and authentication software components, multinetwork digital asset controller, software components of the blockchain network 1700 (FIG.17), a minimax recursive algorithm, TPM / TEE, blockchain Layer 1 VM, encoder / decoder, arbiter, oracle / ML oracle / VM oracle, wallet interface, applets, authentication site, cybersecurity controller, service applications, and the like) described herein may be configured using any suitable programming language known in the art, including any high-level, object-oriented programming (OOP) language, such as Python or Solidity. The computer-based system may include instances of processes that enable execution of transactions and recordation of such transactions. It should be understood that the terms “transaction” and “exchange” are herein used interchangeably, when used within a context of digitally transferring items of value, such as digital assets, collateral assets, and / or collateral tokens, among entities associated with a blockchain network, e.g., the blockchain network 1700 (FIG.17). The system / method 1600 may also include instances of a scoring engine and / or encoders / decoders, which can be implemented by, e.g., a server 1860 and / or a client 1850 that communicates with the server 1860, using, for example, SSL (secure sockets layer), HTTPS (Hypertext Transfer Protocol Secure), or any other suitable protocol known in the art.
[0193] In an example mobile implementation, a mobile agent implementation of embodiments may be provided. A client-server environment may be used to enable mobile services using a network server, e.g., a server 1860. It may use, for example, the Extensible Messaging and Presence Protocol (XMPP) protocol, or any other suitable protocol known to those of skill in the art, to tether a device authentication engine / agent 1915 on a user device 1850 - 38 - 3906796.v16184.1000002 to a server 1860. The server 1860 can then issue commands to the user device 1850 on request. The mobile user interface framework used to access certain components of the system / method 1600 (FIG.16) may be based on, e.g., XHP, Javalin, and / or WURFL (Wireless Universal Resource File), or other suitable known framework(s), interface(s), and / or combinations thereof. In another example mobile implementation for the iOS operating system and its corresponding API (application programming interface), the Cocoa Touch API may be used to implement the client-side components 1915 using Objective-C or any other suitable known high-level OOP language that adds Smalltalk-style messaging to the C programming language.
[0194] A disk storage 1917 may provide non-volatile storage for the computer software instructions 1915 (equivalently “OS program”) and the data 1916 may be used to implement embodiments of the system / method 1600. The system may include disk storage accessible to a server computer 1860. The server computer may maintain secure access to records associated with the system / method 1600. CPU 1912 may also be attached to the system bus 1910 and provide for execution of computer instructions. In one example embodiment, the CPU 1912 is a secure cryptoprocessor implemented as a dedicated microprocessor configured to execute a zero- knowledge verifier system according to principles of the present disclosure. The cryptoprocessor may be specialized to execute cryptographic algorithms within hardware to support the zero- knowledge verifier system. Functions include such things as accelerating encryption algorithms that verify compliance of encoded rules related to a NFT asset, enhanced tamper, and intrusion detection, enhanced data, key protection and security enhanced memory access and I / O to facilitate transactions across multiple blockchain systems.
[0195] In some embodiments, the processor routines 1915 and the data 1916 may be computer program products. For example, aspects of the system / method 1600 may include both server-side and client-side components.
[0196] In other embodiments, authenticators / attesters may be contacted via, e.g., instant messaging applications, video conferencing systems, VoIP (voice over IP) systems, email systems, etc., all of which may be implemented, at least in part, in the software 1915, 1916. Further, in yet other embodiments, an authentication engine / agent interfacing with the system / method 1600 may be implemented as an API, executable software component, and / or integrated component of the OS configured to authenticate users on a TPM executing on a client device 1850. - 39 - 3906796.v16184.1000002
[0197] In one embodiment, an example multinetwork digital asset control system is implemented as an embedded VM, preferably executing on one or more cryptoprocessors configured to support efficient and scalable processing of application-to-blockchain and blockchain-to-blockchain transactions. The cryptoprocessor may be a dedicated computer-on-a- chip or microprocessor for carrying out cryptographic transaction operations, embedded in a hardware security module (HSM) with security measures providing failsafe tamper resistance. The embedded cryptographic processor can be configured to output decrypted data onto a bus in a secure environment, in that embedded cryptoprocessor does not output decrypted data or decrypted program instructions in an environment where security cannot be maintained. The embedded cryptoprocessor does not reveal keys or executable instructions on a bus, except in encrypted form, and zeros keys by attempts at probing or scanning.
[0198] According to an example embodiment, the software implementations 1915, 1916 are computer program products, e.g., an application and smart contracts (generally referenced as 1915), including a computer-readable medium capable of being stored on the storage device 1917, which provides at least a portion of the software instructions for the computer-based system / method 1600. Executing instances of respective software components of the system / method 1600, such as instances of the application and / or smart contracts, may be implemented as computer program products 1915, and may be installed by any suitable software installation procedure, as is well known in the art. In another embodiment, at least a portion of the system software instructions 1915 may be downloaded over a wired and / or wireless connection via, for example, a browser SSL session or through an app (whether executed from a mobile or other computing device). In other embodiments, the system / method 1600 software components 1915 may be implemented as a computer program propagated signal product embodied on a propagated signal on a propagation medium (e.g., a radio wave, an infrared wave, a laser wave, a sound wave, or an electrical wave propagated over a global network such as the Internet, or other network(s) known in the art). Such carrier medium or signals may provide at least a portion of the software instructions for the computer-based system / method 1600.
[0199] An example embodiment includes device code executed in a TEE or TPM. A TEE or TPM is a hardware environment that runs instructions and stores data outside a main OS of a device. This protects sensitive code and data from malware or snooping with purpose-built hardware governed by an ecosystem of endorsements, beginning with a device manufacturer. - 40 - 3906796.v16184.1000002 The system may perform checks on the TEE or TPM, such as executing BIOS (Basic I / O System) checks, to verify that folders (e.g., wallets) stored in the TEE / TPM have not been altered by malicious actors.
[0200] FIG.20 is a block diagram showing exemplary blockchain layers 2000 according to an embodiment. The blockchain layers 2000 may include infrastructure (tier 1) layer 2010, data (tier 2) layer 2020, network (tier 3) layer 2030, consensus (tier 4) layer 2040, and application (tier 5) layer 2050. The infrastructure layer 2010 may be a hardware layer and may include one or more VM(s) 2011 and / or one or more oracles 2012. A VM 2011 may provide a runtime environment for transaction execution in the blockchain. In an embodiment, a VM 2011 may be, for example, stack-based and may enable untrusted code to be executed by a global P2P network of computers. An oracle 2012 may provide a third-party service that connects smart contracts executing on the blockchain with off-chain data sources. For instance, an oracle 2012 may query, verify, and / or authenticate one or more external data sources for the computer-based system / method 1600 (FIG.16). According to an example embodiment, external data sources may include, e.g., one or more legacy systems 2014 and / or databases 2013.
[0201] According to an example embodiment, an oracle node architecture, e.g., oracle 2012, may be provided to serve ML models for smart contracts on a blockchain. Example smart contract technology may be implemented by any suitable Web3 blockchain system known in the art, such as Ethereum, Cardano®, Solana, BNB (Build N’ Build) Smart Chain, Casper™, Kaleido, or Fantom.
[0202] The oracle architecture may be referred to as a “ML oracle.” The ML oracle is useful to smart contract developers who want to incorporate ML models into their smart contracts. For example, a smart contract may distribute funds based on an algorithm, and the algorithm may include a ML model that forecasts sales of a product for a given week. The smart contract may invoke an inference call to a model on the ML oracle to obtain the forecast. As a further example, there are generative arts where the generative ML model may be an integral part of an artwork. Interaction with the model to generate new images may be part of a viewing experience. One well-known ML model type used by generative art is a generative adversarial network (GAN). Using the ML oracle, the ML model may become part of an NFT, thereby enabling an interactive viewing experience. - 41 - 3906796.v16184.1000002
[0203] In an example embodiment, a smart contract may request an inference call to a ML model by identifying an ML model to call, such as by providing a hash value, and an input to the model. According to one such embodiment, a model file may be uploaded to, e.g., IPFS (InterPlanetary File System) or any other suitable known storage system, by a dApp developer and a model server may download the model file, e.g., using the hash value. For the ML model server to be generic enough to serve a wide range of models, it may also take as an input parameter a model type, e.g., PyTorch, TensorFlow, scikit-learn, or any other suitable known model type, as well as an input and output specification. The input may be data directly received from the calling smart contract, or it may be received indirectly via, e.g., an IPFS URI (Uniform Resource Identifier) or any other suitable identifier known to those of skill in the art. Similarly, the output may be sent back to the smart contract, or it may be uploaded to any suitable known storage system, including, but not limited to IPFS, and the, e.g., URI, may be sent to the smart contract. For instance, a forecasting model may use the direct I / O method. An indirect I / O method employing a known storage system such as IPFS may be commonly used by computer vision / imaging models, among other examples.
[0204] In an example embodiment, the system / method 1600 may include a VM, e.g., VM 2011, with a blockchain oracle, e.g., oracle 2012.
[0205] Continuing with FIG.20, the data layer 2020 may interface with the infrastructure layer 2010 and may include blockchain implementation 2021 and transaction details 2022. A blockchain is a decentralized, massively replicated database (distributed ledger), where transactions are arranged in blocks, and placed in a P2P network. The blockchain implementation 2021 may include a data structure represented, for example, as a linked list of blocks, where transactions are ordered. The blockchain implementation 2021’s data structure may include two primary components—pointers and a linked list. Pointers are variables that refer to a location of another variable, and a linked list is a list of chained blocks, where each block has data and pointers to the previous block. Each block may contain a list of transactions that happened since a prior block. The transaction details 2022 may contain information about transactions occurring on the blockchain.
[0206] The network layer 2030 may interface with the data layer 2020 and may also be referred to as a P2P layer or propagation layer. One purpose of the network layer 2030 may be to facilitate node communication 2031, such that nodes can discover each other and can - 42 - 3906796.v16184.1000002 communicate, propagate, and synchronize with each other to maintain a valid current state of the blockchain. A distributed P2P network, e.g., the network layer 2030, may be a computer network in which nodes are distributed and share the workload of the network to achieve a common purpose. Nodes in the network layer 2030 may carry out the blockchain’s transactions.
[0207] The consensus layer 2040 may interface with the network layer 2030 and may ensure that blocks are ordered, validated, and guaranteed to be in the correct sequence. A set of agreements between nodes in a distributed P2P network may be established by the consensus layer 2040. The agreements result in consensus protocols or algorithms, which correspond to rules that nodes follow in order to validate transactions and create blocks in accordance with those rules. To validate a transaction, a validator, e.g., validator 2041a or validator 2041b, may perform a consensus algorithm, such as proof of work 2042 or any other suitable algorithm known in the art. Performing the consensus algorithm may involve expending computational resources to solve a cryptographic puzzle 2042. After being validated according to a consensus algorithm, a transaction may be written to the blockchain through a process of writing rights 2043.
[0208] The application layer 2050 may interface with the consensus layer 2040 and may include customized applications and services, such as electronic wallets 2051. Further, the application layer 2050 may include (not shown): smart contracts, chaincode, and / or dApps. The application layer 2050 may also include applications utilized by end users to interact with the blockchain. Such applications may be, e.g., one or more user facing interfaces 2052. Further, such applications may include, for example (not shown): scripts, APIs, and / or frameworks.
[0209] FIG.21 shows an example of a user identification system 2100 according to an embodiment. A user 2115 interacts via user input 2120 with a website displayed via a web browser 2110 running on computing device 2105, such as clicking an advertisement on the displayed website. The interaction is communicated to server (e.g., token server) 2135. For example, a transparent pixel or script may be placed on the displayed website to communicate the interaction to the server 2135.
[0210] An application executing on the server 2135 determines whether the user 2115 is a software robot or a person user by issuing a request 2125 to web browser 2110 to produce a token. The request 2125 is sent over a network 2145. In response to request 2125, web browser 2110 produces a token 2130 on computing device 2105. The token 2130 is sent to the server - 43 - 3906796.v16184.1000002 2135 over network 2145. The application executing on server 2135 determines (e.g., using a computational challenge) a computational cost of producing the token 2130. In some embodiments, the computational cost of producing the token 2130 is based on the time taken to produce the token 2130. Based on the computational cost of producing the token 2130, the application on server 2135 determines (deciphers) whether the user 2115 is a software robot or a person user. In some embodiments, proving the computational cost of producing the token 2130 at the computing device 2105 is performed by an independent third party, rather than the application executing on server 2135.
[0211] An application that determines whether the user 2115 is software robot or a person user may also exist locally on the computing device 2105. In this embodiment, it would not be necessary to send request 2125 or token 2130 over a network 2145.
[0212] In some embodiments, the request 2125 is issued in response to particular user engagement in the web browser 2110 and based on user engagement metrics, including mouse movements by the user. The request 2125 can also be issued in response to an elapsed period of time or issued by a web service.
[0213] In some embodiments, the application on server 2135 of FIG.21 calculates a confidence score and metrics associated with whether the user 2115 operating computing device 2105 is at least in part by a software robot or a person user. Once the application on server 2135 determines whether user 2115 is a software robot or a person user, the application on server 2135 returns the identity of the user 2140 and a calculated confidence score, which is associated with a likelihood of whether computing device 2105 is being operated by a software robot or a person user. Thus, the calculated confidence score indicates a confidence value regarding the user identification. The confidence score helps the relying party determine a measure of confidence about the identity of the user 2140.
[0214] The confidence score can be based on many different factors. One factor is the computational cost of the produced token 2130. If the proven computation cost is low (below a threshold value), the confidence score may be increased. Further, if computing device 2105 is a server, the computational cost is higher than if the computing device 2105 is an individual machine, and thus the confidence score may be increased. The confidence score may be based on the time it took computing device 2105 to produce the token 2130. For example, longer times (e.g., above a time threshold) for producing token 2130 may be associated with a higher - 44 - 3906796.v16184.1000002 likelihood that the identity of the user 2140 is a software robot and a lower likelihood that the identity of the user 2140 is a person user. In another embodiment, the confidence score is increased if the computing device 2105 includes a TPM.
[0215] According to some embodiments, produced token 2130 is captured in a cookie. In an embodiment, the captured produced token and the computational cost of the captured produced token 2130 are time sensitive and expire after a period of time. Captured cookies can sign cookies generated in the future thus, building up proof of whether the web browser 2110 running on computing device 2105 is being operated by a person user or a bot. The building up of proof results in a longer block chain, making it increasingly difficult for a web browser running on a machine that is operated by a bot to continue to produce tokens.
[0216] In some embodiments, the confidence score may be calculated to further consider the confirmed purchase activities of the user. The score may increase when determined that a user is a verified purchaser who previously completed an online purchase. The proof of a user being an online purchaser, such as a retrieved proof of purchase cookie associating the user’s identity to an entry in a database of confirmed purchases may increase the confidence score. For example, a retrieved proof of purchase cookie associating the user’s identity particularly to a persistent entry in a block chain database of confirmed purchases may further increase the confidence score. That is, the trusted confirmation of the user as a verified purchaser may be associated with a higher likelihood (confidence) that the identity of the user is a person (rather than a software robot).
[0217] FIG.22 is a block diagram of an example embodiment of a system 2200 for state minimization and unlinkable transactions. The system 2200 includes a zero-knowledge virtual machine (ZKVM) 2210, a state-minimized decentralized ledger 2220, and a blockchain computer network 2204. The state-minimized decentralized ledger 2220 may include multiple blocks 2202a-n and may be configured as a dynamic cryptographic accumulator (not shown) implementing a decentralized ledger protocol. The blockchain computer network 2204 may have multiple nodes 2206a-n. A node, e.g., node 2206a, may be configured to execute a zero- knowledge verifier system 2230. The zero-knowledge verifier system 2230 may be configured to, via the ZKVM 2210, verify a block, e.g., block 2202a, of the multiple blocks 2202a-n based on a block header 2208 of the block 2202a and at least one ZKP (not shown) of the multiple blocks 2202a-n. The block 2202a may be associated with an electronic transaction 2240. The zero-knowledge verifier system 2230 may be further configured to, via the ZKVM 2210, - 45 - 3906796.v16184.1000002 recursively verify a corresponding ZKP 2212 of at least one predecessor block, e.g., 2202b, of the block 2202a. The zero-knowledge verifier system 2230 may be further configured to generate an unlinkable transaction 2250 by obfuscating a correlation 2214 between a source node, e.g., 2206b, of the multiple nodes 2206a-n and a destination node, e.g., 2206c, of the multiple nodes 2206a-n. The source node 2206b and the destination node 2206c may be associated with the electronic transaction 2240. The zero-knowledge verifier system 2230 may be further configured to validate the electronic transaction 2240 by verifying a ZKP 2260 corresponding to the generated unlinkable transaction 2250. The ZKP 2260 may be configured to attest to correctness of the generated unlinkable transaction 2250 and satisfaction of smart contract logic (not shown) associated with a digital wallet 2216.
[0218] Aspects of the system 2200 of FIG.22 may be as described in Allen et al., “EDEN - a practical, SNARK-friendly combinator VM and ISA,” Cryptology ePrint Archive, 2023, pp.1– 34 and Allen et al., “Airwalk: Accessible Decentralized Ledgers with State-Minimization and Unlinkable Smart Transactions,” pp.1–41, both of which are herein incorporated by reference in their entirety and further attached hereto as Appendices A and B, respectively.
[0219] FIG.23 is a block diagram of an example embodiment of a system 2300 for tree encoding and decoding. The system 2300 includes at least one processor (not shown) and a memory (not shown) with computer code instructions (not shown) stored thereon. The at least one processor and the memory, with the computer code instructions, may be configured to cause the system 2300 to execute an encoder 2310. The encoder 2310 may be configured to transform a first incomplete binary ordered tree data structure 2302a into a first tree encoding 2304a based on an encoding scheme 2312. The first tree encoding 2304a may include a first Dyck word 2306a and a first leaf vector 2308a. The encoding scheme 2312 may be capable of representing an arbitrary potentially incomplete binary ordered tree data structure (not shown) in terms of a Dyck word (not shown) and a leaf vector (not shown). The at least one processor and the memory, with the computer code instructions, may be further configured to cause the system 2300 to execute a decoder 2320. The decoder 2320 may be configured to transform a second tree encoding 2304b into a second incomplete binary ordered tree data structure 2302b, where the second tree encoding 2304b includes a second Dyck word 2306b and a second leaf vector 2308b, by traversing the second tree encoding 2304b and incrementally parsing the second leaf vector 2308b. - 46 - 3906796.v16184.1000002
[0220] Aspects of the system 2300 of FIG.23 may be as described in Allen et al., “EDEN - a practical, SNARK-friendly combinator VM and ISA,” Cryptology ePrint Archive, 2023, pp.1– 34 and Allen et al., “Airwalk: Accessible Decentralized Ledgers with State-Minimization and Unlinkable Smart Transactions,” pp.1–41, both of which are herein incorporated by reference in their entirety and further attached hereto as Appendices A and B, respectively.
[0221] Further example embodiments disclosed herein may be configured using a computer program product; for example, controls may be programmed in software for implementing example embodiments. Further example embodiments may include a non-transitory computer- readable medium containing instructions that may be executed by a processor which, when loaded and executed, cause the processor to complete methods described herein. It should be understood that elements of the block and flow diagrams may be implemented in software or hardware, such as via one or more arrangements of circuitry of FIG.19, disclosed above, or equivalents thereof, firmware, a combination thereof, or other similar implementation determined in the future. In addition, the elements of the block and flow diagrams described herein may be combined or divided in any manner in software, hardware, or firmware. If implemented in software, the software may be written in any language that can support the example embodiments disclosed herein. The software may be stored in any form of computer- readable medium, such as RAM, ROM, compact disk read-only memory (CD-ROM), and so forth. In operation, a general-purpose or application-specific processor or processing core loads and executes software in a manner well understood in the art. It should be understood further that the block and flow diagrams may include more or fewer elements, be arranged or oriented differently, or be represented differently. It should be understood that implementation may dictate the block, flow, and / or network diagrams and the number of block and flow diagrams illustrating the execution of embodiments disclosed herein.
[0222] It should be understood that the term “blockchain” as used herein includes all forms of electronic, computer-based distributed ledgers. These include consensus-based blockchain and transaction-chain technologies, permissioned and un-permissioned ledgers, shared ledgers and variations thereof. While Bitcoin and Ethereum may be referred to herein for the purpose of convenience and illustration, it should be noted that the disclosure is not limited to use with the Bitcoin or Ethereum blockchains and alternative blockchain implementations and protocols fall within the scope of the present disclosure. - 47 - 3906796.v16184.1000002
[0223] It should also be noted that not all currently known distributed ledger systems utilize linear blockchains as such. Some known blockchain implementations utilize lattice or mesh data structure(s), and some utilize directed acyclic graphs (DAGs).
[0224] The teachings of all patents, published applications, and references cited herein are incorporated by reference in their entirety.
[0225] While example embodiments have been particularly shown and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the embodiments encompassed by the appended claims. - 48 - 3906796.v16184.1000002 APPENDIX A EDEN - a practical, SNARK-friendly combinator VM and ISA June 30, 2023 Logan Allen Brian Klatt Philip Quirk Yaseen Shaikh logan@zorp.io brian@zorp.io phil@zorp.io yaseen@zorp.io Zorp Zorp Zorp Zorp Abstract Succinct Non-interactive Arguments of Knowledge (SNARKs) enable a party to cryptographically prove a statement regarding a computation to another party that has constrained resources. Practical use of SNARKs often involves a Zero-Knowledge Virtual Machine (zkVM) that receives an input pro- gram and input data, then generates a SNARK proof of the correct execution of the input program. Most zkVMs emulate the von Neumann architecture and must prove relations between a program’s execution and its use of Random Access Memory. However, there are conceptually simpler models of computation that are naturally modeled in a SNARK yet are still practical for use. Nock is a minimal, homoiconic combinator function, a Turing-complete instruction set that is practical for general com- putation, and is notable for its use in Urbit. We introduce Eden, an Efficient Dyck Encoding of Nock that serves as a practical, SNARK-friendly combinator function and instruction set architecture. We describe arithmetization techniques and polynomial equations used to represent the Eden ISA in an Interactive Oracle Proof. Eden provides the ability to prove statements regarding the execution of any program that compiles down to the Eden ISA. We present the Eden zkVM, a particular instantiation of Eden as a zk-STARK. 16184.1000002 Contents 1 Introduction ............................................................................................................................................................3 1.1 Background .......................................................................................................................................................3 1.2 Our Work ..........................................................................................................................................................3 2 Proof Systems .........................................................................................................................................................4 2.1 Interactive Oracle Proofs ...............................................................................................................................5 2.2 zk-STARKs ........................................................................................................................................................5 3 Eden ISA ..................................................................................................................................................................8 3.1 Nouns .................................................................................................................................................................8 3.2 Operators ...........................................................................................................................................................9 3.3 The Eden Function .......................................................................................................................................10 4 Overview of Eden zkVM Design .....................................................................................................................11 4.1 Eden’s fundamental invariants and operations .....................................................................................11 4.2 Tables ...............................................................................................................................................................12 5 Arithmetization Fundamentals .........................................................................................................................13 5.1 Field Choice ....................................................................................................................................................13 5.2 Schwartz-Zippel Lemma ..............................................................................................................................14 5.3 Noun Encoding ..............................................................................................................................................14 5.4 Optimized Noun Encoding ..........................................................................................................................17 6 Probabilistic Structures and Algorithms ........................................................................................................19 6.1 Multiset Arguments ......................................................................................................................................19 6.2 Stacks in the Eden zkVM ............................................................................................................................20 7 Eden zkVM Design .............................................................................................................................................22 7.1 Tables ...............................................................................................................................................................22 7.2 Input / Output Linking ...................................................................................................................................29 7.3 Extra Commitment Phase ...........................................................................................................................30 7.4 Large-Noun Elision .......................................................................................................................................30 8 Security Analysis .................................................................................................................................................31 8.1 Noun Collision ...............................................................................................................................................31 8.2 Cons & Inverse Cons Validation ................................................................................................................31 References .................................................................................................................................................................34 26184.1000002 1 Introduction 1.1 Background In recent years, work on and interest in zero-knowledge proof systems has been explosive. These are protocols in which a prover entity can convince a verifier entity of a computational claim while keeping certain information secret. Such systems work with computations encoded using an arith- metization process into the mathematical language offinitefields and polynomials. Given the delicate and specialized nature of this translation process, these proof systems are largely impractical for ordi- nary programmers who would ideally specify computation in a familiar language and not in terms of polynomials. Thus there is a natural demand tofind a way to generate proofs without deviating too far from normal programming practices. One way of accomplishing this is to target a specific instruction set architecture (ISA) which is the compilation target of a Turing-complete programming language, and to write polynomial constraints which represent the execution of an arbitrary program for this ISA. Since modern CPUs physically im- plement von Neumann architectures, it is natural that efforts to implement this solution have resulted in ISAs that substantially mirror modern CPU architecture. However, combinatory logic and the functional programming paradigm provide an alternative math- ematically-centered perspective on computation which stretches back to the duality between Turing’s machines and Church’s lambda calculus. Our attachment to functional computationflows from our enthusiasm for the elegant minimalism of Nock. Nock is an ISA given by approximately a dozen rules for transforming binary trees, which together define a practical Turing-complete combinator function. While Nock is expressive enough to be read and understood, code is typically written in higher level languages that compile down to Nock instead of in Nock directly. Hoon is at present the primary high- level language that compiles to Nock; Hoon exists as part of the Urbit project. Natural and minimal arithmetizations provide a conceptually simple substrate to reason about and have numerous advantages, including efficiency andflexibility. Our uniquely compact and purely mathematical specification has the potential to be utilized in various existing and future cryptographic schemes. 1.2 Our Work We have started from the basis of the Nock ISA, a Turing-complete combinator function built around binary tree transforms, and have optimized it for zkVM performance to create the Eden ISA. The Eden ISA is built entirely around reduction rules for a single universal data structure form-fitted for zero-knowledge proofs, binary trees withfinitefield-element leaves. We have created a particular in- stantiation of an Eden zkVM in the form of a STARK (Succinct Transparent Argument of Knowledge), however other instantiations of Eden zkVMs using other cryptographic commitment schemes are equally viable. We present an arithmetization of Eden’s fundamental data structures and supply a proof of concept for its utilization in cryptographic proof systems by describing the architecture of a zkVM for proving an Eden computation within the STARK framework. We will describe 3 key contributions. 36184.1000002 1.2.1 Binary Tree Arithmetization We describe a linearized arithmetic encoding of Eden’s noun data structure, which is based on binary trees. This involves two vectors, one which describes the tree shape and another which encompasses the leaf values stored in the tree. For the shape encoding, we utilize the bijection between binary trees and dyck words, which is motivated by the simplicity of performing tree concatenation in this repre- sentation. It transpires that dyck words are fundamentally related to depth-first traversal of a tree. The tree leaves are then placed in the leaf vector in depth-first order. See Section 5.3 for more details. 1.2.2 Interactive Oracle Noun Fingerprints The only fundamental binary tree operations used in Eden are tree concatenation, or cons, and its inverse, tree decomposition. These operations are expressed very simply in our arithmetic encoding which leads to a linear time algorithm, but practical limitations demand greater efficiency. In a typical scheme like hash-consing, the prover has to prove the correct computation of the hash of the trees. In our case, we leverage the interactive aspect of the interactive oracle proof model which gives the prover access to random values from the verifier, allowing us to utilize a technique we call Interactive Oracle Noun Fingerprinting. In this technique, we generate afingerprint by transform- ing the dyck word and leaf vector into polynomials which are then evaluated on the random challenges given by the verifier; this pair of evaluations is our nounfingerprint. This scheme allows for quick, collision-resistant, probabilistic checking of the cons and tree decomposition relations. 1.2.3 Eden zk-STARK VM Architecture The process of computing and verifying Eden has several central and distinguishable components which are described in Section 4.1, and also makes use of various primitives and fundamental techniques as described in Section 5. These components motivate our construction of a zk-STARK architecture for proving the correctness of an execution of Eden. In a zk-STARK context, indepen- dent components of the system can be separated into various tables. Each table has a distinct set of responsibilities where it either directly enforces a subset of Eden’s invariants, or provides secondary functionality required by another table to do so. Our system makes use of the following tables: • Stack Table - records a full Eden computation trace and decodes each instruction • Noun Table - validates encoded nouns and stores them for use in other tables • Subtree Access Table - validates subtree accesses for the Stack Table • Exponent Table - precomputes constants used to enforce cons and inverse cons relations in an ef- ficient manner • Pop Table - proves the correctness of pop operations performed on our stack data structure We will need to cover a number of prerequisites before delving into our system design. We’ll begin with a discussion of proof systems. 2 Proof Systems Proofs are demonstrations of mathematical or computational facts, e.g. “Assuming axiom system ^^, statement ^^ implies statement ^^ ,” or “The computation ^^ with input ^^ outputs ^^.” Traditional mathematical proofs are, ideally, pieces of text of reasonable length, composed by a prover after some non-deterministic process involving intuition and guesswork. The resulting text can then 46184.1000002 be checked by handing it to a verifier who engages in a straightforward check of logical implications under reasonably limited time constraints. This roughly corresponds to the ^^ ^^ computational com- plexity class of decision problems. In the last several decades, complexity theorists have been exploring less traditional conceptions of proof: interactive proofs (IPs), multiprover interactive proofs (MIPs), and probabilistically checkable proofs (PCPs), as well as variations on and refinements of these models. At the core of these innovations is a rather moreflexible understanding of what proofs are. Tradi- tionally, a proof purports to offer ironclad guarantees of truth or falsity if one merely examines some hypotheses and logical deductions. This newer, innovative conception, called a proof system, is any protocol by which a prover can convince a verifier of a claim, where the meaning of “convincing” depends on the proof system. In such proof systems, the prover is not necessarily a trustworthy entity, and there exists a possibility that a prover can convince the verifier of a false statement, or can fail to convince the verifier of a true statement. These possibilities are quantified by the soundness – the probability that the verifier will accept a false statement – and completeness – the probability that the verifier will accept the proof of a true statement. 2.1 Interactive Oracle Proofs One of the recently introduced families of proof systems is the interactive oracle proof (IOP) model of [BCS16]. The IOP model combines aspects of the earlier IP and PCP models. Like the PCP model, it is expressive enough to characterize the complexity class ^^ ^^ ^^ ^^, which contains the ^^ ^^ class of traditional proofs. However, the injection of interactivity from the IP model provides efficiency gains over the PCP model (in e.g. proof length). This fusion works by allowing the verifier in the interaction to probabilistically query the prover’s messages. In an IOP, the prover and verifier interact over a number of rounds. In each round, the verifier sends the prover a challenge. Then, the prover sends the verifier a set of data in response to the challenge, which the verifier can partially query in this or later rounds. At the end of an agreed upon number of rounds, the verifier either accepts or rejects the proof. The surprise challenges are meant to dissuade a malicious prover from giving into the temptation to deceive. There is a low probability that the prover will provide a falsified response that passes the verifier’s challenge. We remark that an IOP can be made into a non-interactive protocol via the Fiat-Shamir heuristic [FS87]. The Fiat-Shamir heuristic is a transformation which substitutes the verifier’s messages with the output of a random function – this is a purely theoretical construction called a random oracle; in practice, it’s a cryptographic hash function – where the input is the totality of previously exchanged messages. To allow the verifier access to parts of the prover’s messages, this procedure is augmented to utilize cryptographic commitments to the data. The proof in this non-interactive variant is a collec- tion of information related to the commitments, and the verifier’s role is to check this information for validity without additional communication with the prover. For details see [BCS16]. 2.2 zk-STARKs A zk-STARK - zero-knowledge Scalable Transparent Argument of Knowledge - is a way to realize an IOP model with some very desirable properties. Before discussing these features it’s useful to motivate the utility of this system. 56184.1000002 Imagine that a verifier wants some computation performed but does not have the resources to do the computation itself. It would like to outsource the computation to a prover who has more resources but may be untrusted by the verifier. The verifier would want some procedure to check the work of the prover that takes vastly less time than running the computation and can be accomplished by the prover in a practical amount of time. This is what a zk-STARK provides alongside the following guarantees: 1. Scalability: Verifying the computation takes exponentially less time than running it, and proving the computation incurs marginal overhead to running the computation. 2. Transparency: The verifier only has to trust hash functions and mathematics, not the prover or anyone else. 3. Perfect completeness: The verifier is always convinced by the protocol if the prover is honest. 4. High soundness: The verifier is only convinced by a malicious prover with astronomically low odds. 5. Zero-knowledge: The proof can hide information that the verifier wants to keep private, while still proving statements about this information. A zk-STARK uses a technique called arithmetization to encode a computation. Computation is mod- eled as a sequence of steps, where at each step we update afixedfinite amount of information according to a set of rules. The information recorded at each step is arranged in a horizontal row, and the se- quential ordering of the steps is reflected by stacking the rows vertically into a two-dimensional table. For example, imagine you’re at the bank to cash several checks, and arefilling out a deposit slip. You record the check amounts in the appropriate column, and have to compute the total amount. To avoid having to do the entire computation in your head, you can make a new column next to the given one in the margin which keeps a running total. See Table 1. Thefirst entry in this column is just thefirst check’s amount. To compute the second entry of the running total, add the second entry of the check amount column to thefirst entry of the running total column. In general, to compute the ^^th running total, add the ^^th check amount to the ( ^^ − 1)st running total. The equation implicit in this rule applies at every pair of rows and describes the correct execution of the computation; it is called a constraint, an important concept in zk-STARKs. If every step is computed correctly, then the last running total is the total amount.Table 1: Filling a deposit slip. Additionally, the prover can make use of as many distinct tables as is necessary to express a compu- tation: afixedfinite number of tables can be utilized, each with their own set of constraints, as long as the tables are appropriately linked. One can think of different tables as computing different subcom- ponents of the same computation. The collective totality of the tables is referred to as the trace of a computation. The table model of computation described above aids in addressing the scalability requirement: how can the verifier tell that the step-by-step computation was done correctly without doing every step themselves? It seems counterintuitive that this is even possible, since even one small misstep in a 66184.1000002 computation can wildly affect the intended output. The verifier would need some way to magnify an error in a single location so that it’s noticeable. Since the discovery of Reed-Solomon codes, it is well-known that polynomials are good at this kind of error detection, which one can see in the following way. Suppose wefit the simplest polynomial possible to some data points over a particular input domain. If we corrupt the data by changing even a single one of the data points, then either the polynomial will look radically different outside of the input domain, or its degree – the largest exponent of a variable needed to express the polynomial – will potentially differ from the original polynomial. The zk-STARK protocol takes advantage of this property by (a) requiring that constraints be repre- sented as polynomials and (b) requiring that table data be interpolated into polynomials. This is done so that verification, (i.e. applying constraints to the computation data) becomes equivalent to polyno- mial composition, which in turn yields afinal polynomial that can be subjected to the error detection process. It is in this way that deceit by the prover is magnified and made visible to the verifier. The techniques of arithmetization and polynomial error correction sit at the heart of the zk-STARK protocol. In a zk-STARK, a prover and verifier engage in one or more rounds of roughly four distinct phases: commitment, challenge, response, and Low Degree Testing (LDT). • In a commitment phase, the prover interpolates polynomials over various columns of the trace tables, evaluates these polynomials over a large input domain, and constructs a Merkle tree of the evaluations. The root of the Merkle tree is sent down the proof stream, serving as the commitment of the polynomial. • In a challenge phase, the prover receives random challenges from the verifier. • In a response phase, the prover provides a direct response to random challenges that are specifically used to reveal evaluations of parts of the commmitted polynomials. • In an LDT phase, the verifier checks that one or more polynomials are of low degree. Specifically, the phases are ordered in the following way: (1) Base Commitment - The prover populates the base columns of the tables and commits to them in the proof stream. Base columns are columns that do not require randomness to compute. (2) Extension Challenge - The verifier sends thefirst round of random challenges. (3) Extension Commitment - The prover uses the randomness to compute extension columns which are interpolated and then committed. (4) Quotient Commitment - The prover generates and commits to quotient polynomials, which en- code information about the evaluation of constraints on the data. (5) Combination Commitment - The prover creates and commits to the nonlinear combination code- word polynomial. This polynomial is used as a means to mask information from the verifier and enables the system to provide zero-knowledge properties. (6) Evaluation Challenge - prover receives random challenges which are interpreted as requested indices to be opened in the Merkle trees committed to hitherto. (7) Evaluation Response - The prover provides the requested leaves from the Merkle trees through a series of openings. Using the revealed values, the verifier performs a number of consistency checks on the polynomials that have been committed to ensure that they are properly linked to one an- other. (8) LDT - The verifier runs the FRI protocol on the decommitment of the nonlinear combination code- word to check that it is of sufficiently low degree; if it is, the verifier accepts the prover’s work. 76184.1000002 Note that the random challenges sent by the verifier serve distinct purposes depending on the stage of the proof: in (2), they are used primarily by the prover as a means of computing additional columns that make use of randomness, while in (6), they are used by the verifier to actually request data from the prover. To make our system sound, we augment the sketch provided above with an extra round of the Chal- lenge / Commitment phases described by (2) and (3). This extra round prevents a potentially malicious prover from taking advantage of an extra degree of freedom that could otherwise be exploited. While an in-depth explanation of the zk-STARK protocol is out of scope, we urge the reader to refer to [Ben+18] or [KR08] for further information. In order to use a zk-STARK to prove arbitrary computation, we need both a suitable Turing-complete model of computation, and a way to encode this model of computation in terms offinitefield elements. Therefore, we will proceed to describe Eden, our chosen model of computation, and its arithmetization. 3 Eden ISA The Eden ISA is a specification of a Turing-complete combinator function, comprised of a minimalist set of reduction rules that map a data-code pair to a product. All data and code are represented using the same data type, the noun, which makes Eden a homoiconic language. Eden is a minimally modified version of Nock that is optimized for zkVM performance; to describe the modifications tersely, Eden replaces natural number atoms withfinitefield atoms, and replaces regular increment withfinitefield increment. What follows is an informal introduction to the Eden specification. For a more complete and detailed introduction, see the Nock specification in [Noc23]. 3.1 Nouns A noun is defined as either an atom, which is afinitefield element, or a cell, which is an ordered pair of nouns. This definition corresponds in a straightforward way to a full rooted binary tree whose leaves arefinite field elements, like so: • / \ 0 • / \ • 1 / \ 6 20 Full means each tree node has either no children – the node is an atom – or two children – the node is a cell. Rooted means the tree has a distinguished node which is singled out as the top of the tree. From now on, we will drop these two adjectives and just use the term binary tree. We write[a b]to denote a cell that consists of two nouns,aandb. In a cell[a b], we say that the head of the cell is a and that the tail is b. We also say that a is the left subtree of [a b] and that b is the right subtree of[a b]. The expression [a [b c]] is a way to write a cell whose head is the noun a and tail is a cell of nounsbandc. As an example, the noun pictured above is denoted as[0 [
[0620] 1]]. 86184.1000002 Note well that Eden is implicitly right associative. For example, the preferred way to write the ex- pression [a [b c]] is [a b c]; the b and c to the right of a are assumed to associate into a cell. Similarly, we have [a b c d] = [a [b c d]] = [a [b [c d]]], etc. As a concrete example, the preferred way to write [0 [
[0620] 1]] is [0
[0620] 1]. Note that one cannot drop any more brackets to reduce this to [0 6 20 1]; the latter is equivalent, by convention, to [0 [6
[0201] ]], which looks like this picture: • / \ 0 • / \ 6 • / \ 20 1 A fundamental operation on nouns is concatenation, or cons. This is defined by cons(a,b) =[a b]. This is seen to be similar to list concatenation by drawing a to the left of b; then cons(a, b) is formed by creating a tree with a as the left-hand side and b as the right-hand side. The inverse of cons is then cons−1(a) = (head(a), tail(a)), the decomposition ofainto the pair of its left and right subtrees. 3.1.1 A Theorem on Binary Trees We pause here to state a theorem on binary trees that will be useful later; the proof is by induction on the number of leaf nodes and left to the interested reader. Theorem: If there are ^^ leaf nodes in a binary tree, there are 2 ^^ − 1 total nodes, and thus ^^ − 1 in- ternal, or non-leaf, nodes. The number of edges between nodes is 2 ^^ − 2. 3.2 Operators We define now a few operators that accept a noun and produce a new noun. Do note that Eden uses a non-standard convention in which 0 denotes ^^ ^^ ^^ ^^ while 1 denotes ^^ ^^ ^^ ^^ ^^. The operators are: • the noun type logical operator ? that can be applied to any noun a: ^?awill evaluate to0for a cell, and1for an atom. • the equivalence logical operator = that can be applied to any two nouns: ^=[a a]will evaluate to0, and=[a b]wherebis a different noun thanawill evaluate to1. • thefinitefield increment operator + that can be applied to any noun a: ^+awill evaluate to(1 + a) mod pwherepis a predefinedfinitefield for Eden to operate on ifais an atom, and will crash if a is a cell. • the / operator (sometimes referred to as the slot operator) that may be applied to nouns: ^ / (1 a) will output a, and may be applied to any noun. ^ / (2 [a b])will outputa, and may only be applied when the input noun is a cell. If the input noun is an atom, crash. ^ / (3 [a b]) will output b, and may only be applied when the input noun is a cell. If the input noun is an atom, crash. ^ If the head atom is greater than 3, recursively apply the / operator using the following reduction: 96184.1000002 ▪ / (2a b) will reduce to / (2 / (a b)) which will then be further evaluated until it reaches one of the base cases. ▪ / ((2a + 1) b) will reduce to / (3 / (a b)) which will then be further evaluated until it reaches one of the base cases. • the # operator functions recursively like the / operator, but rather than accessing a subtree, it mod- ifies a subtree at a particular axis. The slot operator is essentially a numerical addressing scheme for subtrees of a tree. The full tree gets address 1; if a subtree has address a, its left and right subtrees get addresses 2a and 2a+1, respectively. Thus, moving to the left child of a node with addressaadds0to the binary expansion ofa, and moving to the right adds 1. This gives a straightforward way of translating a subtree address into a sequence of left / right moves from the root: convert the address to binary; ignore the leading 1, which corresponds to the tree’s root; the rest of the digits, read left-to-right, correspond to left / right moves according to whether they are0 / 1. This can also be used in reverse to turn a sequence of left / right moves into an address. Note that the slot operator accepts a noun as input, and will traverse that noun in depth-first order, recursively evaluating until said atom is 1, then traversing to the next atom in the noun. 3.3 The Eden Function We define the Eden function as a function that takes an input noun, and returns an output noun or crashes. Input is formatted as a cell of [subject formula], where formula is the code that is to be executed and subject is the data that the formula can reference, which can contain code itself owing to Eden’s homoiconicity. The Eden function is defined below: #eden(x) may be written as *x. Denote “evaluates to” by ↦. A valid Eden formula is always a cell. If the head of the formula is a cell, Eden treats both head and tail as formulas, evaluates each against the subject, and produces the cell of their products. That is,• *[a [b c] d]↦[*[a b c] *[a d]]. In this case, we say that the formula is cons as shorthand (which is related to but not the same as the cons operation). If the head of the formula is an atom, then it must contain an atom acting as a numeric opcode from 0 to 11. If the head of the formula is higher than 11, it is not valid. Invalid Eden instructions result in a crash. 106184.1000002 In the following transformation rules, a is a subject and the following cell is the formula:The fundamental opcodes are 0-5, and 6-10 are essentially macros of 0-5. The fundamental opcodes can be divided into two categories: recursive and non-recursive. The non-recursive formulas are those with opcodes0or1, as their evaluations don’t involve another invocation of the Eden function, while the recursive formulas are 2, 3, 4, and 5. Eden 11 is a formalism for dealing with extension instructions, or jets, which replace a formally specified computation with a faster version thereof. When dealing with recursive formulas, the tail is either a noun b or a cell of nouns [b c], and these nouns b and c are used as formulas themselves in defining the evaluations. We refer to them as sub- formulas of the outer formula. Note that the evaluation of these subformulas against the subject must be computed in order to com- pute the original invocation of the Eden function; that is, *[a b] and / or *[a c] must be eagerly computed prior to the outer computation. We observe that opcode 2 stands out since it involves three invocations of the Eden function * in its evaluation. Thefirst subformula b is evaluated against the subject a and generates a new subject, while the second subformulacgenerates a new formula. Then, the new formula is evaluated against the new subject as follows: *[new-subject new-formula]. For example, in the Eden expression*[[0 4 0 1] 2
[0002] 0 3], the subject is[0 4 0 1]and the formula is [2
[0002] 0 3]. Thus to compute this expression, we compute a new subject via *[[0 4 01] 0 2] = 0and a new formula via*[[0 4 0 1] 0 3] =
[0401] . To complete the computation, we have to apply * one last time with this new subject and formula tofind*[[0 4 0 1] 2
[0002] 0 3] = *[0 4 0 1] = +*
[0001] = +0 = 1. 4 Overview of Eden zkVM Design The design of our Eden zkVM is a set of tables that communicate with each other and maintain Eden’s computational invariants, which we discuss next. 4.1 Eden’s fundamental invariants and operations At a high level, the core loop of an Eden computation is as follows: 1. We are presented with a pair of nouns: a subject and formula. 2. The head of the formula has to be inspected, and depending on the result of the inspection, the formula is decoded into different subtrees. 116184.1000002 3. If there are any subformulas, we execute them eagerly. Otherwise, we execute the decoded outer formula. The following is a complete list of operations which are performed in the process of executing Eden: • the identity operation • increment • equality checking • binary tree concatenation (cons) • binary tree decomposition (inverse cons) • subtree access (iterated tree decomposition) • new recursive invocations of Eden Of these, only the operations involving cons require something beyond standard logical or arithmetic primitives. From the description above, in order to capture the computational invariants of an Eden computation, it is sufficient to have the following: 1. a formalism for manipulating nouns; 2. a means to inspect and decompose formulas; 3. a way to manage subcomputation order and a way to store intermediate results for completing earlier computations 4. a way to perform cons, inverse cons, and subtree accesses within our noun encoding; It is based on these high level invariants that we motivate the design of our zkVM and its subsystems. Since the design is ultimately divided up into various tables, we now briefly describe each one and it’s purpose. 4.2 Tables For conceptual simplicity, our design involves multiple tables. Roughly, each table specializes in one of the core aspects of a generic Eden computation that we enumerated above. The role of each table is to use its constraints to disallow traces that violate Eden’s invariants. We now describe the core functionality of each table and how it relates to Eden’s invariants. Stack Table The stack table is the central table in our design. It models Eden computation as a stack machine which directs theflow of computation according to the invariants of the Eden specification. Accordingly, several other tables are its direct subsidiaries. The table makes use of various stacks as a means to keep track of subcomputation ordering. Noun Table All data expressed in proof tables must be encoded in terms offinitefield elements, and nouns are no exception. The noun table’s role is to store encoded nouns for later reference by other parts of the zkVM, and to prevent any improperly encoded nouns from being used in a computation. The table’s design contains critical optimizations that allow us to validate nouns using our efficient linearized tree representation. 126184.1000002 Subtree Access Table The subtree access table performs Eden computations whose formulas have opcode 0 for the stack table, according to the semantics of the Eden specification for the / operator. Because the subject rep- resents the totality of data accessible to the program, one can consider subtree access in Eden as an analogue of memory access found in traditional systems. Decoder Table The role of the decoder table is to serve the stack table with a means to inspect and decompose the for- mulas encountered throughout the computation, check that the formula nouns are correctly formed, and expose information such as the opcode and subformulas of the formula. Because of the tight cou- pling between the functionality that this table provides and what the stack table requires, it exists as a virtual table alongside the stack table. Exponent Table In order to perform cons and inverse cons correctly in our noun encoding, we require the computation of ^^^^for some quantities ^^ and ^^ that depend on the nouns being operated on. In practice, calculating ^^^^is non-trivial since ^^^^is not a polynomial quantity and ends up being quite costly. Thus, in order to amortize the costs, we batch computation of these exponentials into a single table. The exponent table’s role is to compute these quantities correctly and share the results with other tables. Pop Table The pop table is a technical necessity that is required to ensure the validity of the pop operation on the various stacks used in the system, and is thus a subsidiary of the stack table. More detail about the stack data structure can be found in Section 6.2. 5 Arithmetization Fundamentals 5.1 Field Choice We utilize thefield ^^^^with prime cardinality ^^ = 264− 232+ 1 as our basefield. This is thefield we use to populate the cells in the tables before any randomness is generated. Thisfield is widely referred to as the “Goldilocksfield”, despite the fact that the “Goldilocks” label was originally attached to the prime 2248− 2224− 1 in [Ham15]. Much has been written about the virtues of this particularfield, see e.g. [Por22], [Blo23], [Gou21]; they include fast arithmetic mod ^^, as well as support for efficient 32- bit arithmetic and fast Fourier transforms. The main drawback of thisfield is its small size in relation to achieving our desired proof soundness. Thus, we use the unique up to isomorphism degree 3 extension ^^ of ^^^^. As a set this is ^^ = ^^3^^; note that | ^^| ≈ 2192. Additive operations are performed component-wise according to the addition in ^^^^, and multiplicative operations derive from ^^^^[ ^^], modulo an irreducible cubic polynomial. Theoretically, any such polynomial gives rise to the samefield up to isomorphism, but we use the depressed cubic ^^3− ^^ + 1 because its coefficients are simple; irreducibility was verified in Sage. Whenever we use the symbol ^^ in the context of discussing our zkVM, ^^ will denote this degree 3 extension. 136184.1000002 5.2 Schwartz-Zippel Lemma The main technical tool for proving the soundness of certain arguments throughout is the following: Lemma (Schwarz-Zippel): Let ^^( ^^1, …, ^^^^) be a nonzero multivariable polynomial with coefficients in afield ^^, let ^^ be the degree of ^^ , and let ^^ be afinite subset of ^^. Then the number of zeroes of ^^ in ^^^^is at most ^^ · | ^^|^^−1, so the probability that ^^( ^^1, …, ^^^^) = 0 where ^^1, …, ^^^^are drawn randomly and uniformly from ^^ is at mostThis lemma generalizes the elementary fact that the number of roots of a univariate polynomial over afield cannot exceed its degree; the proof is an uncomplicated induction from this fact. A weaker version of the bound in this result was proved by Zippel in [Zip79]; in fact, he was bested by a year by DeMillo & Lipton in [DL78], whose names are sometimes attached to the result. The strong version given above was proved later by Schwartz in [Sch80]. 5.3 Noun Encoding Given that nouns are the fundamental data structure in Eden and we intend to prove Eden computa- tions in the zk-STARK framework, our aim turns to the arithmetization of nouns. Nouns have two distinct components: the shape of the tree, and the leaf data. The fundamental connection between tree shape, leaf data ordering, and our arithmetization is depth- first traversal, which we briefly review. 146184.1000002 5.3.1 Depth-First Traversal Depth-first traversal is a fundamental algorithm for ordering the nodes of a binary tree. It can be de- scribed recursively in the following way: Add the current node to the list of nodes. Move to the left child node and do a depth-first traversal. Then move to the right child node and do a depth-first tra- versal. As an example, here are the successive stages of the example noun we introduced above being ordered according to the depth-first algorithm: • • •5.3.2 The Arithmetization of Nouns Succinctly put, we use the binary sequence of left-child / right-child moves that are performed in a depth-first traversal of a tree as a description of the shape of the tree. Visually, the left / right moves correspond to an edge in the tree’s graph from parent node to child node, so we naturally obtain a formal word ^^ over the alphabet Σ = { ^^, ^^}, with ^^ representing a leftward move and ^^ represent- ing a rightward move. Critically, the resulting language ^^ ⊂ Σ∗coincides with the well-known dyck language, which we will discuss shortly in Section 5.3.3. Given that our goal is to express these words in terms offinitefield elements, we need to choose twofield elements to represent ^^ and ^^. Since all fields contain the two distinguished elements 0 and 1, and the addressing scheme for subtrees associ- ated with the logical operator / already associates 0 with left and 1 with right, we use 0 and 1 as the arithmetic representations of ^^ and ^^. To encode the natural numbers at the leaves of the noun, we place them into a separate vector, where depth-first traversal naturally determines the order, in alignment with the shape encoding. With these two components in place, a noun can be completely and unambiguously characterized and represented in our encoding. How to Arithmetically Encode a Noun: • Initialize vectors for the binary word describing the tree shape and for the leaf data. • Perform a depth-first traversal of the noun. Append a 0 or 1 to the word for every move from a parent node to a left or right child node, respectively. For each leaf encountered, append the data at the leaf to the vector. Thus, for the noun [0
[0620] 1] pictured in Section 3.1, the arithmetization of the noun is the (word, vector) pair (010011, ^0, 6, 20, 1^). 156184.1000002 If the noun is merely an atom, then the word describing the shape is empty and we denote this with the symbol ^^. We note by Section 3.1.1 that if the length of the vector component of the noun encoding is ^^ then the binary word component has length 2 ^^ − 2, since the letters of the word correspond to the edges in the tree. We call a word that describes the shape of a noun the dyck word of the noun and the vector contain- ing the leaf data the leaf vector of the noun. We now turn to a deeper explanation of the various properties of dyck words. 5.3.3 Dyck Words If ^^ denotes a noun, we use ^^^^to denote the dyck word of ^^ , and ^^^^to denote the leaf vector of ^^ . Now assume ^^ is a cell, and let ^^ and ^^ denote the left and right subtrees, i.e. the head and tail, of ^^ . Then the following fundamental relations hold: ^^^^= 0 ^^^^1 ^^^^ (1)^^^^= ^^^^^^^^ (2)These follow immediately from the recursive description of depth-first traversal. To see (1), note that to depth-first traverse a tree ( ^^^^), wefirst move to the left subtree (0), then depth-first traverse the left subtree ( ^^^^), then move to the right subtree (1), then depth-first traverse the right subtree ( ^^^^). To see (2), use the same recursive description of depth-first traversal: since we traverse ^^ byfirst traversing ^^ in depth-first traversal order, the left subtree’s leaves will befirst in the list of ^^ ’s leaves, and then we traverse ^^ andfind its leaves in depth-first order. Relation (1) was in fact our main motivation for anchoring our arithmetization to depth-first traversal, as opposed to other potential schemes, since it is intimately related to the fundamental tree operations cons and inverse cons, and it is imperative that these operations can be efficiently encoded. Relying on a dyck word-based encoding allows us to unlock performance characteristics that would otherwise not be possible under a scheme utilizing hash-consing. We’ve seen that a binary tree gives rise to a word that satisfies (1). If weflip (1) on its head and use it to define a language we obtain the dyck language of dyck words: A dyck word ^^ over the alphabet 0, 1 is either the empty word ^^ or has the form ^^ = 0 ^^1 ^^(3)where ^^ and ^^ are dyck words. We point out that, a priori, the set of dyck words could be larger than the set of dyck words of binary trees. However, it’s easy to convince oneself that this is not the case. First, the simplest dyck word is ^^ and this is the dyck word of the trivial tree with one node. We can then argue inductively from (3): if a set of dyck words { ^^^^} are the dyck words of some binary trees, i.e. ( ^^^^)^^= ^^^^, then each word in the set of all words 0 ^^^^1 ^^^^is the dyck word of a tree, namely [ ^^^^^^= 0 ^^^^1 ^^^^. But according to the definition, every dyck word is generated inductively from the single word ^^ via relation (3), so every dyck word represents the shape of a binary tree. 166184.1000002 Now, we present a nice theorem which characterizes how to recognize a dyck word nonrecursively within {0, 1}∗by merely reading it left-to-right, which will become relevant when we write constraints that recognize dyck words. Theorem: The set of dyck words over the alphabet {0, 1} is characterized by two properties:1.While reading left-to-right, the number of 0’s encountered so-far is at least as large as the number of 1’s. 2. The total numbers of 0’s and 1’s are equal. If ^^ = ^^0… ^^^^−1then these properties are equivalent to the constraints1.∑^^^^(1 − 2 ^^^^) ≥ 0 for ^^ = 0, … ^^ − 1. ^^=−02. ∑1^^=0(1 − 2 ^^^^) = 0 The fact that a dyck word has these properties is easy to verify by induction from the definition, and the fact that the empty word has these properties. The converse can also be proven by induction, but is a bit more involved. 5.4 Optimized Noun Encoding While the encoding of nouns as (dyck-word, leaf-vector) pairs is a noteworthy and necessary step on the road to arithmetization, it is insufficient by itself. This is due to the cost within our zkVM of any manipulations of the literals in the undoubtedly large (dyck-word, leaf-vector) pairs that would occur in any realistic Eden computation. What is called for is a compression mechanism that would make the representation of nouns more succinct, but without compromising the ability to perform the fundamental tree operation, cons. 5.4.1 Polynomial Encoding of Nouns To accomplish this compression, we begin by using an equivalent of the (dyck-word, leaf-vector) encoding, in the form (len, dyck-poly, leaf-poly). The dyck-poly and leaf-poly components are poly- nomial forms of the dyck word and leaf vector of the noun, created in the following way:where ( ^^0, …, ^^^^) is anyfinite ordered tuple offield elements. If the tuple is empty, the convention is that we map to the zero polynomial. If ^^ is a noun, we will write ^^^^( ^^) and ^^^^( ^^) for the dyck and leaf polynomials, respectively, and len( ^^ ) for the length. For example, if the noun is[0
[0620] 1], the encoding is (4, ^^4+ ^^ + 1, 6 ^^2+ 20 ^^ + 1). On the other hand, the encoding of an atom a is (1, 0, ^^). The len component is the length of the tree, which we define to be the number of leaf nodes; i.e. len = length(leaf-vector). Recall from the theorem of Section 3.1.1 that the number of leaf nodes of a tree determines the number of total nodes and the number of edges. Through this, len implicitly encodes information about the length of the dyck word since it directly corresponds to the number of edges, thus making it a comprehensive metric for the size of the tree. The len component is also convenient for restoring any leading 0’s which become invisible when the dyck word and leaf vector are converted into polynomials; we will point out other ways in which it is useful later. However, including the length in the encoding is not strictly necessary. Briefly, one can 176184.1000002 always restore the correct number of 0’s to recover the dyck word from the dyck polynomial since the number of 0’s has to be equal to the number of 1’s. Then, the length of the leaf vector can be recovered from the length of the dyck word, which can be used to restore any missing 0’s to the leaf vector from the leaf polynomial. 5.4.2 Cons and Inverse Cons in the Polynomial Encoding We can also write the cons relations of (1) and (2) in polynomial terms:The powers of ^^ are merely to shift the different components of the original cons formulas so there is no additive “mixing” of the word / vector literals. We also have the straightforward identity len( ^^ ) = len( ^^) + len( ^^)(7)Now we present an algorithm for performing inverse cons (that is, the computation of ^^ and ^^ from ^^ ): Simply write down (len( ^^), ^^^^( ^^), ^^^^( ^^)) and (len( ^^), ^^^^( ^^), ^^^^( ^^)) and check that (5), (6), and (7) hold for the given ^^ ! This is a nondeterministic algorithm: we don’t worry about how ^^ or ^^ were produced, we only care that we can efficiently check that they are correct. This is useful in an IOP context precisely because traces are computed after a program has been fully executed, allowing a prover to have access to such non-deterministic information. 5.4.3 Interactive Oracle Noun Fingerprint We now use the random and interactive elements of the IOP model in a critical technique known as Interactive Oracle Noun Fingerprinting (ION Fingerprinting). After committing to the dyck word and leaf vector literals, the verifier supplies the prover with randomness. Say ^^1and ^^2are two such val- ues. Let ^^^^and ^^^^denote the components of the dyck word and leaf vector of some noun with length ^^, so thatis the polynomial representation of the noun. Then wefingerprint the dyck and leaf polynomials by evaluating them at the ^^^^, producing thefield elements (felts) that comprise the IONfingerprint:Thisfingerprinting scheme is homomorphic because for any felt ^^, the evaluation map ^^( ^^) ↦ ^^( ^^) is a ring homomorphism ^^[ ^^] → ^^. We will make use of this property in the following section. An advantage of including the length in the noun representation emerges here for security: the only possibility for collisions in this representation can occur between nouns of the same length. Since distinct polynomials evaluated on a random input will almost certainly give different outputs over a large domain, the probability that two different nouns have the same length, dyck felt, and leaf felt is negligible; see Section 8.1 for a more involved analysis. 186184.1000002 5.4.4 Cons in the Felt Triple Representation Since the polynomial cons relations are polynomial identities, these can, with high probability, be validated by checking that each side has identical evaluations on randomfield elements. Thus, if len( ^^ ) = len( ^^) + len( ^^), thenand it is overwhelmingly likely that ^^ = cons( ^^, ^^). Note that, theoretically, the cons relations (9) and (10) have the same form as the relations (5) and (6) precisely because the evaluation map is a ring homomorphism. For performing inverse cons in this representation (outlined in Section 5.4.2), we can use the same nondeterministic algorithm we employed in the polynomial encoding with the ^^ variables replaced by the appropriate ^^^^. 6 Probabilistic Structures and Algorithms 6.1 Multiset Arguments A multiset is a set where elements can have multiplicity, i.e. can appear multiple times. A multiset argument – called a permutation range check in [GPR21] – is a way to argue whether two multisets are the same. In our context, the multisets could be the contents of two columns (in the same or even different tables), or even the rows of two different tables. The algorithm used is probabilistic, and works like this. Two multisets { ^^^^} and { ^^^^} are encoded as the roots of polynomials ^^( ^^) = ∏( ^^ − ^^^^) and ^^( ^^) =− ^^^^). These polynomials are equal if and only if the multisets are equal, since the polynomial ring ^^[ ^^] over afield ^^ is a unique factor- ization domain. If thefield is large, we can tell with high probability whether these polynomials are different by evaluating them on a randomfield element and checking whether the evaluations differ. The only possibility of error is a false positive, where two different polynomials happen to have the same evaluations. By the Schwartz-Zippel lemma, the probability of such a false positive is bounded by the maximum degree of the two polynomials, divided by | ^^|. The randomfield element, say ^^, is generated by the verifier after the elements of the multisets are committed to by the prover. It is then very easy to compute the evaluation of the polynomial in linear time by repeated accumulative multiplication of the linear factors ( ^^ − ^^^^) corresponding to the mul- tiset elements ^^^^. By an abuse of terminology, we sometimes refer to the evaluation ^^( ^^) = ∏( ^^ − ^^^^) as “a multiset.” 6.1.1 Compressing Tuples into Multisets If we want to argue that multisets of tuples are equal, we have to reduce the tuple to afield element in an acceptable way to utilize the argument above. The standard technique is to use more verifier randomness to compress the tuple into afield element. If the tuple offield elements in a particular row is, say, ( ^^, ^^, ^^), then we can use verifier randomness to form the singlefield element ^^ ^^ + ^^ ^^ + ^^ ^^. Doing the same in each row, we can then use the argument above on the resulting multisets offield elements. 196184.1000002 For the soundness of this procedure, which uses the Schwartz-Zippel lemma in the multivariate linear case, see [Sze]. 6.1.2 Multisets in the Eden zkVM We link various tables together using multiset arguments to ensure that the tables are maintaining invariants relating to the same computation. Some tables want to offload computational tasks to other tables and assume the answers to certain questions; they put the questions and answers in a multiset and check that it matches the computed question-and-answer from another table. For example, every table that uses IONfingerprints needs to know that thesefingerprints are validly constructed. Thus the noun table produces multisets of valid IONfingerprints, while other tables make multisets of felt triples which they claim are IONfingerprints. The zkVM then includes constraints that enforce the equality of the multisets, which implies the validity of the claimedfingerprints. As another example, the stack table assumes knowledge of formula decompositions (computing them non-deter- ministically), which are then checked by the formula decoder table. The multisets in our design are as follows: • The noun table creates a multiset for every table except the exponent table to give tables correct noun representations. • The decoder table creates a multiset for the stack table containing tuples of the form (formula, decomposition), where the decomposition component is itself a tuple, describing the decomposition of formula nouns. • The pop table creates a multiset for the stack table containing valid stack states. (See Section 7.1.5 for more details.) • The subtree access table creates a multiset for the stack table containing tuples of (subject, axis, output-of-subtree-access). • The exponent table creates multisets of tuples of the form (power, randomness-to-power) for each table which has to perform cons or inverse cons (this includes the stack, decoder, and subtree access tables). 6.2 Stacks in the Eden zkVM Since stacks have an ordering just like the terms in polynomials and polynomials are a primary object in proof systems, it seems natural to try to model the dynamics of a stack using polynomials. Imagine a sequence of items ( ^^^^) being pushed to and popped from a stack:206184.1000002 Here, 1 means we perform the operation in that column. In order for this to be correct, we must have ^^3= ^^2, ^^6= ^^5, and= ^^4. Assuming this to be the case, we can show the state of the stack as a polynomial in each row after the operation in that row has been performed:The push operation in polynomial terms is as follows, push( ^^, ^^( ^^)) = ^^ · ^^( ^^) + ^^(11)while pop is pop(provided that the constant term of ^^( ^^) is ^^, i.e. ^^(0) = ^^. Obviously, the pop operation is more difficult to verify, given the condition on its evaluation. Note that ^^(0) = ^^ if and only if there is a polynomial ^^( ̂ ^^) such that ^^( ^^) = ^^ · ^^( ̂ ^^) + ^^, and that ^^( ̂ ^^) is unique and precisely pop( ^^, ^^( ^^)). Thus, we can reconsider pop as a nondeterministic algorithm that returns the new state of the stack and the item popped: pop( ^^( ^^)) = ( ^^( ̂ ^^), ^^) The above equation is subject to ^^( ^^) = ^^ · ^^( ̂ ^^) + ^^ where ^^ ̂ is a polynomial and both ^^ ̂ and ^^ are “guessed.” Now return to our table but add an ^^ ̂ column:Let ^^′ be the variable which denotes the value of the variable ^^ in the next row. Whenever pop′ is 1, we imagine there to be a constraint that says poly = ^^ · ^^ ̂ + item′ which guarantees that item can be 216184.1000002 popped and that ^^ ̂ is the next stack state; thus we also imagine a constraint forcing poly′ = ^^ ̂ in this instance. In the actual zkVM we have to usefield elements in cells and not polynomials involving an indetermi- nate variable ^^, but we can do this by replacing the ^^ in the previousfigure with a verifier-provided random value ^^. The identities poly( ^^) = ^^ · ^^( ̂ ^^) + ^^ are now verified with high probability via poly( ^^) = ^^ · ^^( ̂ ^^) + ^^. provided that the ^^ ̂ polynomials are validly accumulated and made available. This is the purpose of the Pop Table, explained in the next chapter. 7 Eden zkVM Design 7.1 Tables In what follows, if ^^ denotes the value of a variable corresponding to a column at some row, then ^^′ denotes the value of the variable at the successive row. 7.1.1 Stack Table and Decoder Table 7.1.1.1 Background As mentioned previously, the core functionality of the stack table is to model valid Eden computation and reject any computation that does not follow the proper semantics. It accomplishes this by modeling a stack machine that executes Eden, always eagerly processing the subformulas of the current computation and then processing the outer formula with the results. When non-recursive formulas are encountered, their result is computed directly. In other words, it can be described as an improved version of a tree-walking interpreter that has been linearized in order to tofit more neatly within the tools that the AIR formalism has to offer. While the table is central to the overall zkVM, it outsources a number of responsibilities to other tables, namely • noun validation to the noun table, • Eden 0s calculation to the subtree access table • stack popping validation to the pop table 7.1.1.2 Description The stack machine has 3 stacks: • a compute stack (CS), which is used to hold the remaining subcomputations to execute, which come in subject / formula pairs • a product stack (PS), which is used to hold the results of both non-recursive (i.e. terminal) and intermediate subformula executions • an operation stack (OS), which stores machine-specific operations as well as deferred Eden op- erations to be done after subformulas have been computed. 226184.1000002 Deferred opcodes are either lone atoms or tuples containing additional context to be used after process- ing subformulas of the opcode in question. The machine-specific operations allow the stack machine to perform critical tasks in addition to executing Eden opcodes themselves. The primary machine-specific operation used is pop2, which takes a subject / formula pair off of the compute stack and sets it as the next computation to run. When combined with the OS, pop2 allows the machine to delineate subcomputation boundaries in the otherwiseflat compute stack and allows the machine to descend into a subcomputation while preserving the context of earlier computations. The other machine-specific operation is cons, which signals to the machine that the formula is cons and needs to be handled accordingly. The stack machine also has a few registers: •subj- the current subject • form - the current formula •op- the current operation to perform, taken from the OS Moreover, we can think of the machine as having 3 states: • start - this is the initial state of the machine. No computation has been executed, but the subject and formula are loaded on the computation stack • middle - this is the state during which Eden is recursively evaluated • end - this is thefinal state of the machine, when no further computation is left to complete on the computation stack, and the result of the Eden computation is available on the product stack. These states are helpful for thinking about the machine but do not need to be explicitly encoded in the trace, and can be implemented through constraints implicitly. 7.1.1.3 Stack Machine Execution The machine has a core loop that it executes until completion, which we now describe as follows: 1) Start off with •subjset to empty • form set to empty • CS set to the initial computation[s f]• PS set to empty • OS set to pop2 • op set to empty 2) Then, pop an operation off of the OS and move it intoop. 3) Switch on op: a) If the operation is pop2, i) Pop a value off of the CS and assign that to subj and pop another value off of the CS and assign that to formula. ii) Then, deconstruct the current formula using inverse cons into the subformulas, zip them up into subject / formula pairs, and push them onto the compute stack to queue them up for execution. If the formula is a cons cell, then the left and right subtrees of the formula will be zipped with the subject and pushed onto the compute stack instead. 236184.1000002 iii) Push the opcode of the formula to the OS such that when the subformulas have been processed, we can come back to the outer instruction andfinish processing it. If the formula was a cons cell, push the cons operation to the OS. iv) Push a pop2 on the OS for each subcomputation that will need to be evaluated. b) If the operation is an Eden opcode,finish executing the instruction by manipulating the CS and PS appropriately based on the opcode using the intermediate results stored on the PS. c)If the operation is cons,finish processing it by consing the top two items on the product stack to produce a cell. 4) If the OS is empty, then thefinal result of the computation is the single remaining value on the PS. Otherwise, the machine returns to Step 2, and advances by recording state in the next row of the trace. 7.1.1.4 Formula Deconstruction Formula deconstruction is the process of taking the full formula noun and extracting out opcodes and subformulas, in addition to detecting cons formulas when encountered. This process is constrained by the formula decoder table which exists as a virtual table attached to the stack table. It can be summarized by the following table, where f is the formula and the remaining columns to the right are its deconstruction.Table 5: Formula deconstruction 7.1.1.5 Translating from Eden Execution to Stack Manipulation Each operation that exists on the OS has a strictly defined set of transformations that it applies to the CS, PS, and OS. We will now describe these semantics. Below are the semantics of the pop2 operation.Table 6: pop2 semantics 246184.1000002 To keep the table terse, we employ a shorthand: for the stack related columns, an empty cell means the value remains unchanged, while afilled cell means that the included value(s) are to be pushed to the stack. Below are the semantics of the deferred Eden opcodes, including the cons instruction.Table 7: Deferred opcode semantics In other words, the above table describes the behavior of the stack table when it sees any of the de- ferred Eden operations. Table 6 and Table 7 define the totality of how the stack machine operates. The polynomial constraints for the stack table are constructed to ensure that all transformations are properly applied, and that any invalid transformation is rejected. 7.1.1.6 Inverse Cons is Memory Access One key optimization that can be made is by taking advantage of Eden’s homoiconicity. As mentioned earlier, we deconstruct formulas using inverse cons. For instance, a formula such asf=[4 b]gets de- constructed into op=4, form=b by proving that an inverse cons relation f = cons(4, b) holds. However, we observe that the inverse cons relation above can be phrased as proving the memory accesses*[f 0 2]↦4and*[f 0 3]↦a. This observation generalizes to deconstructing other formulas with 2 or 3 subformulas, and thus the whole formula deconstruction process can be implemented in terms of memory accesses operating on formulas as the subject. In light of this, we can completely obviate any additional constraints in the table that are used to prove the inverse cons relation when deconstructing formulas and instead reuse the logic already present in the subtree access table. 7.1.2 Noun Table To compute Eden, one needs a model of its fundamental data structure, the noun, and, as discussed, our model is the ION Fingerprint: a length component, and two evaluations on verifier randomness of polynomial forms of dyck words and leaf vectors. The noun table encodes nouns into the ION Fin- gerprint, and rejects any attempts at passing ill-formed nouns into the computation. For example, a malicious prover would not be able to pass 001 of as the dyck word of a noun. The main purpose is to share thesefingerprints with other tables so that they have a compact representation of nouns for computation. The sharing is accomplished via multiset arguments with other tables. Every noun that is utilized in the program has to be validated by the noun table. To understand the noun table, it’s helpful to mentally divide it into segments, each of which is a con- tiguous set of rows. Each segment is responsible for encoding one noun and adding it to the multiset with a certain multiplicity. Additionally, keep in mind that each segment has two phases, the accumu- lation phase and the multiplicity phase, which are elaborated below. In the accumulation phase, the 256184.1000002 dyck word is checked for validity and the dyck-felt and leaf-felt are accumulated in extension columns. In the multiplicity phase, the result of this accumulation is placed repeatedly in a multiset. One of the primary variables in the noun table is dyck, which denotes the column where the dyck words are input by the prover. At the beginning of a segment of the noun table, the variable rem, for “remaining,” is initialized by the prover. It indicates the number of letters remaining until we reach the intended end of the dyck word for this segment, i.e. until the accumulation phase is completed. The dyck column is constrained to only contain 0’s and 1’s in each cell. We can recall from the theorem of Section 3.1.1 that the constraintscharacterize dyck words, where ^^^^denotes a binary letter. In the noun table, the partial sumdenoted by the column variable ct for “count” (though it’s properly a weighted count). We enforce the constraint ct′ = ct + (1 − 2 dyck′) throughout the accumulation phase to maintain ct’s character as a running sum. It’s easy to encode the second constraint, which is that ct = 0 at the end of the accumulation phase. To encode thefirst constraint above we need to work harder since we’re encoding an inequality in terms of polynomial equalities. The basic idea is that since the weighted count can only increment or decrement, if ct ever went below 0 it would have to hit −1, and so we encode ct−1 instead. We do this by introducing the variable ict-i, for “increment-of-count’s inverse”, which is the true inverse of ct + 1 when ct + 10, and 0 otherwise. Then the constraint (ct + 1) · ict-i = 1 prevents ct = −1. The column leaf contains the components of the leaf vectors, which aren’t constrained during the ac- cumulation phase. The column len counts up from 1 for each 1 in the dyck word; since a tree of length ^^ has a dyck word with 2 ^^ − 2 letters, half of which are 1’s, this increments the variable len ^^ − 1 times from 1 to the correctfinal value of ^^. In the extension columns dyck-felt and leaf-felt, the values in the dyck and leaf columns are accumu- lated into the evaluations of the dyck and leaf polynomials at the random values ^^1, ^^2. While in the accumulation phase, dyck-felt′ = ^^1· dyck-felt + dyck leaf-felt′ = dyck′ · ( ^^2· leaf-felt + leaf) + (1 − dyck′) · leaf-felt The second constraint here is a conditional on the next character of the dyck word, and works because of some tree combinatorics: we’re currently at a leaf if we can’t go down into the tree any further from our current position, which means the next symbol of the dyck word is 1. So we accumulate leaf components when the next dyck character is 1. Once this accumulation phase is complete, we enter the multiplicity phase. The multiplicity mult is a variable whose value is set by the prover at the top of a segment and remains constant throughout the accumulation phase. In the multiplicity phase it decrements from row to row. With each decrement, the values in the len, dyck, and leaf columns after the accumulation phase are compressed and put into a multiset mset: mset′ = mset · ( ^^ − ( ^^ len′ + ^^ dyck-felt′ + ^^ leaf-felt′)) where ^^, ^^, ^^, and ^^ are verifier-supplied random values. 266184.1000002 Atomic nouns are an edge case due to their empty dyck words and have to be handled specially, but this is not terribly difficult and we omit the details here. We close out this section by mentioning that this basic design can be optimized. The basic problem with the design above is that there’s substantial redundancy. For example, imagine two nouns with large identical left subtrees but distinct right subtrees; these left subtrees would both be present in the table twice, taking up double the number of rows. In the optimized design, we pass over the literals of certain nouns in afirst phase and record them as above. Then in a second phase, we cons the nouns recorded in thefirst phase to create larger composite nouns and record them in a multiset. This cons operation occurs in one row, yielding a significantly more efficient algorithm. 7.1.3 Subtree Access Table Recall that thefirst Eden formula opcode is 0, and is formally specified as *[a 0 b] ↦ / (b a). In- formally, b is an axis number and / (b a) returns the subtree of a with that axis number. As a is the subject in the Eden expression *[a 0 b], and the subject / formula dichotomy in Eden is analogous to the familiar data / code distinction, we can conceptualize an Eden 0 computation as the access of stored data, i.e. a memory access. The subtree access table is our dedicated instrument for these memory accesses. It receives “requests” from the stack table when Eden 0 computations are encountered, and pipes answers back. Just as with the noun table, it is convenient to mentally divide the subtree access table into segments, each with two phases. Each segment is dedicated to a single Eden 0 computation with a particular subject and axis. For a given (subject, axis) pair, thefirst phase is the traversal phase, wherein the path into the subject determined by the axis is traversed and the correct subtree identified. The second phase is the multiplicity phase, wherein the output subtree is placed in a multiset repeatedly. The basic idea is simple: the target axis contains within its binary digits, after stripping the leading 1, left / right instructions encoded as 0 / 1 for reaching the target. So, starting with the given noun, we continually decompose nouns into left / right subtrees and select a new noun according to whether we see a 0 or 1 as the next digit. This new noun becomes the target of further decomposition until we exhaust the available digits. To understand this, it will be helpful to jump into a schematic of the mechanism, as seen in the fol- lowingfigure.Table 8: Idea of subtree access table Note that in thisfigure the tree, left, and right columns are each aggregates of three columns in the actual subtree access table, representing the three components of the ION Fingerprint. The tarax column contains the target axis. The path column contains the binary digits of this target stripped of the leading 1. These digits must be entered correctly because the axis column starts at 1 and uses the binary path digits to build back up to the target: axis′ = 2 · axis + path 276184.1000002 Since binary expansions are unique, any wrong path digit will lead to the axis never hitting the target value. If the axis value never hits the target, the result of the axis lookup is never recorded. In each row, we have a tree and its left and right subtrees. This decomposition is enforced by cons constraints verifying that the left and right subtrees are correct. The 1 in thefirst row of the path column determines, via constraint, that the right subtree of the ini- tial tree will become the new tree of the next row. Then the 0 in the second row of the path column determines that the left subtree of ^^ will become the new tree in the third row. Finally, the 1 in the third row determines that the right subtree will become the tree in thefinal row, which is the target subtree of ^^ since we’re out of digits. Once the target subtree is found, we enter the multiplicity phase, where the results of the traversal phase are recorded with multiplicity. There is an mset variable such that during the multiplicity phase mset′ = mset · ( ^^ − ( ^^ · subject′ + ^^ · tarax′ + ^^ · tree′)) until the multiplicity variable mult, which is constant throughout the traversal phase, decrements to 0. Here, ^^, ^^, ^^, ^^ are verifier-generated randomness. Note that the input subject and axis to the Eden 0 computation are included in the multiset, as well as the output. This is the same form as the query from the stack table: the stack table effectively asks, “Does running an Eden 0 computation with this subject and axis yield this output?” and the subtree access table responds, “Running an Eden 0 on this subject and axis yields this output.” The variable subject is similar to tarax in that it is part of the input to the computation, and it re- mains constant throughout each segment. Its value is constrained in thefirst row of a segment to be ^^ · tree-len + ^^ · tree-dyck + ^^ · tree-leaf where (tree-len, tree-dyck, tree-leaf) is the disaggregation of the tree variable in Table 8, and ^^, ^^, ^^ are verifier randomness. 7.1.4 Exponent Table Recall the cons formulas (see (9) and (10)):^^^^( ^^2) = ^^len( ^^) 2 ^^^^( ^^2) + ^^^^( ^^2) In order to make use of these, we need to compute the exponents. Since len( ^^) is a variable these are exponential functions which need to be computed in polynomial terms. This is the sole purpose of the exponent table. It then shares its results via multiset with other tables that perform cons. It’s easy to describe a naive design for computing exponents ^^^^of a value ^^ ( ^^ could be either of the ^^^^above). Starting at ^^, we multiply, one step at a time, new factors of ^^ into a variable exp, and increment the power variable pow. We then enter a secondary phase in which we accumulate ( ^^, ^^^^) pairs into the multiset mset according to the value of the multiplicity mult. This multiset evolves as mset′ = mset · ( ^^ − ( ^^ · pow + ^^ · exp)) while the multiplicity decrements. Once mult reaches 0, pow increments and the accumulation process begins again. 286184.1000002 A more involved optimization of this design that we implement is to initially compute ^^, ^^2, ^^4, … , ^^256by squaring so that one can increment the power by any integer in the range [1, 512), and skip ranges of exponents which aren’t needed and would take up unnecessary table space. 7.1.5 Pop Table As discussed in Section 6.2, we model a stack as a dynamic polynomial ^^( ^^), such that the current top of the stack is the constant term of the polynomial. We can push whatever we want to the stack with- out controversy, but repeated pops are problematic since we have to verify that what we’re popping is a particular element that we previously pushed, and the number of intervening push / pop opera- tions could be arbitrarily large. Due to the local nature of STARK constraints, the relevant information needed for stack operations occurring in disparate rows could potentially be unreachable. As discussed in the aforementioned section, the prover must produce a polynomial ^^( ̂ ^^) and afield element ^^ such that ^^( ^^) = ^^ · ^^( ̂ ^^) + ^^. The validity of this identity is equivalent to ^^ being at the top of the stack ^^, and ^^ ̂ being the state of the stack post-pop, and is checked via evaluation on a verifier-generated random value ^^. The role of the pop table is to produce polynomial candidates for the various post- pop stack states ^^ ̂ that arise. At a naive level, all we have to do in the pop table is put the coefficients of each desired ^^ ̂ polynomial in a column with a variable named item and accumulate via stack′ = ^^ · stack + item′. We can then place thefinal result in a multiset multiple times with a mult variable in a pattern that is now familiar from the noun and subtree access tables. When the multiplicity is exhausted, we switch to accumulat- ing a new ^^. ̂ However, this would be inefficient. To see why, imagine two different stack statesand ^^2which are equivalent except for their top elements. In the scheme described above, we’d have to repeat the shared portion which would increase the number of rows in the trace. Instead, we begin the accumu- lation from an ^^ ̂ that has already been computed previously by taking it off the multiset and using it as the starting point, eliminating duplicate work. We also make sure to adjust the multiplicity for this ^^ ̂ accordingly. In other words, the multiset now contains copies of stack states that will be used internally by the pop table for efficiency purposes, in addition to copies used by the stack table. 7.2 Input / Output Linking As it stands, the system as described only proves the much more limited statement there exists some program ^^ and input ^^ that produce some output. A critical functionality that a zkVM must provide is the ability to prove statements of the form “program ^^ and input ^^ produce output ^^”. Various techniques are employed in differing systems to achieve this functionality. In our case, we make a modification to the zk-STARK protocol described previously to allow for prover and verifier to generate constraints at proof-time according to a known protocol. This modification paves the way for generating input- or output-dependent constraints that can then be used to limit program inputs or program outputs to specific values. The modification is as follows:firstly, before the base columns are interpolated and committed to, the prover sends the full computation and its result (i.e, subject, formula, and product) in plaintext over the proof stream, and the verifier accepts and stores the computation. Then, the prover and verifier continue the protocol as normal, with the verifier sending over random challenges to the prover. Crit- ically, it is at this point that calculating ION Fingerprints is possible. Before proceeding, both prover and verifier augment the existing set of polynomial constraints with additional constraints. These con- 296184.1000002 straints force the appropriate cells to contain thefingerprints of the input computation and output respectively. From there, the zk-STARK protocol proceeds normally. This addition allows the proofs generated from the system to be tied to the input and output as desired. 7.3 Extra Commitment Phase As we’ve discussed, in order to use ION Fingerprints across the various tables of the Eden zkVM, these tables create multisets of the (len, dyck-felt, leaf-felt) triples that they use and check via a multiset argument that these coincide with ION Fingerprints constructed by the noun table. However, there’s a technicality to be aware of here. In a multiset argument for the equality of multisets { ^^^^}, { ^^^^}, the value ^^ which is used to check whether ∏( ^^ − ^^^^)− ^^^^) must be random. In practice, this means that all values{ ^^^^} must be cryptographically committed to before the verifier generates the random value ^^. If the prover knew the value of ^^ and was not com- mitted to { ^^^^}, { ^^^^}, i.e. could change them after knowing ^^, it would be trivially easy to satisfyunequal multisets { ^^^^} ≠ { ^^^^}. In the Eden zkVM, the prover needs randomness to construct the IONfingerprints, and this random- ness is obtained from the verifier after an initial commitment to base columns. However, if the random value ^^ used in multiset arguments as above is released at the same time as the random values used to construct the ION Fingerprints, there is a problem of the type indicated in the previous paragraph. This is because in every table except the noun table thefingerprint has not been committed to, and now the value ^^ is known. This would give the prover leverage to forge inappropriatefingerprints that would pass the multiset argument. Our solution is to add an extra commitment phase in the construction of our tables. First, base columns are committed to, and the verifier generates the randomness ^^1and ^^2used to construct ION Finger- prints. Then, columns that only depend on the values ^^1and ^^2arefilled and committed to; these are the primary extension columns. The verifier then generates the remaining randomness, which includes the randomness used to compress tuples and make multiset and stack arguments. Only then does the proverfill the secondary extension columns to complete the construction of the tables. 7.4 Large-Noun Elision Among various proof system performance metrics, proof size is often a primary concern. Because of the way that Eden organizes computation, all code that a given computation wishes to reference or make use of must be present in the subject, including the standard library. In combination with the input / output linking technique described above, this would necessitate the prover having to send large nouns in every proof, paying for the cost each time. To avoid this, we make another modification to the zk-STARK protocol by taking advantage of the fact that certain large nouns such as the standard library are “well-known”, i.e. are known a priori to both the prover and verifier. When sending the subject and formula over the proof stream, we elide well- known nouns by replacing each noun with a special tag that contains its hash instead. The verifier then scans the noun for these tags and replaces them with the appropriate noun that it has associated to the hash. The normal zk-STARK protocol proceeds from this point. 306184.1000002 8 Security Analysis 8.1 Noun Collision In this section we investigate the probability that two distinct nouns a and b encoded by the noun table have the same ION Fingerprint. Recall that the ION Fingerprint of a noun a is ^^( ^^) = (len( ^^), ^^^^( ^^1), ^^^^( ^^2)), where ^^1, ^^2are random values from thefield. Thusaandbhave the same ION Fingerprint if and only if len( ^^) = len( ^^), ^^1is a root of ^^^^− ^^^^, and ^^2is a root of ^^^^− ^^^^. For each length ^^, and each unordered pair { ^^, ^^} of distinct nouns with length ^^, there is a set of roots ^^^^({ ^^, ^^}) of ^^^^− ^^^^in ^^ and a set of roots ^^^^({ ^^, ^^}) of ^^^^− ^^^^in ^^, such that a and b have the same ION Fingerprint if and only if ^^1∈ ^^^^({ ^^, ^^}) and ^^2∈ ^^^^({ ^^, ^^}). Since the ^^^^are independently chosen, we can equivalently say that a and b have the same ION Fingerprint if and only if ( ^^1, ^^2) ∈ ^^^^({ ^^, ^^}) × ^^^^({ ^^, ^^}). Let ^^ denote the set of pairs { ^^, ^^} such that^^ and len( ^^) = len( ^^). Then, there is an ION Fingerprint collision between some pair { ^^, ^^} ∈ ^^ if and only if ( ^^1, ^^2) ∈ ∪^^^^^^({ ^^, ^^}) × ^^^^({ ^^, ^^}). Let ^^ be the number of total nouns in the program; note that ^^ ≤ 232since 232is the maximum allowable height of the noun table. For a length ^^, let ^^^^denote the number of nouns of length ^^, so thatNote that for { ^^, ^^} ∈ ^^, either ^^^^({ ^^, ^^}) = ^^ or ^^^^({ ^^, ^^}) = ^^ but not both. The equality ^^^^({ ^^, ^^}) = ^^ is equivalent to the case where a and b have the same tree shape but different leaf vec- tors, whereas ^^^^({ ^^, ^^}) = ^^ is equivalent to the case where a and b are distinct nouns with the same leaf vectors on different tree shapes. If neither are equal to ^^, then | ^^^^({ ^^, ^^}) × ^^^^({ ^^, ^^})| ≤ 2( ^^ − 1) ^^. In the worst case, | ^^^^({ ^^, ^^}) × ^^^^({ ^^, ^^})| ≤ 2( ^^ − 1)| ^^|. The worst case a priori upper estimate for |∪^^^^^^({ ^^, ^^}) × ^^^^({ ^^, ^^})| is thus^^ 2(232 In a naive implementation of the noun table we have ^^ ≤^^−1)since the dyck word of each noun is stacked vertically in the noun table. Using this naive esimate as a heuristic, we’dfind |∪^^^^^^({ ^^, ^^}) × ^^^^({ ^^, ^^})| < ^^ · 231· | ^^| ≤ 263| ^^| which puts the probability of sampling ( ^^1, ^^2) from ∪^^^^^^({ ^^, ^^}) × ^^^^({ ^^, ^^}) as at most 263−192= 2−129. If a performance-optimized version of the noun table were to cause the previous upper bound in the equality ^^^^≤2(232 64 in^^−1)to swell by a factor of 232, the resulting inequality would then be ^^^^≤2(2^^−1). This would still only put the probability of sampling appropriate ( ^^1, ^^2) at 2−97in the worst case. Thus we conclude that the ION Fingerprint scheme within our zkVM is sufficiently secure against collision. 8.2 Cons & Inverse Cons Validation Recall that the way we perform cons( ^^, ^^) of two nouns in our zkVM is by obtaining the ION Finger- prints ^^( ^^), ^^( ^^) with randomness ^^1, ^^2and then performing cons in this representation (which we denote by [ ^^( ^^) ^^( ^^)]). This latter quantity is a triple offield elements that we always validate (using a multiset argument) to be equal to ^^( ^^) for some nounc. Now, it is a priori possible that there is ac316184.1000002 such that ^^( ^^) = [ ^^( ^^) ^^( ^^)] despite c ≠ [a b]. But if [a b] exists in the noun table, then we have the collision ^^([ ^^ ^^]) = ^^( ^^), which we know is highly unlikely by Section 8.1. If [a b] is not already in the noun table, then the noun table augmented with this single noun would produce a collision. This can be demonstrated to be highly unlikely by making the same argument as in Section 8.1 with one extra noun and a noun table of height at most 233(since the extra noun can occupy at most 232rows). Inverse cons is somewhat different; to perform inverse cons on a noun a in the zkVM, which is repre- sented in the form ^^( ^^), two triples offield elements are produced, which are validated to be equal to ^^( ^^) and ^^( ^^) for nounsbandc, and it is checked that ^^( ^^) = [ ^^( ^^) ^^( ^^)]. The nondeterministic nature of the algorithm now gives the prover more latitude: they can survey all combinations of ^^( ^^) and ^^( ^^) such that len( ^^) = len( ^^) + len( ^^) and hope tofind one such that a ≠ [b c] but ^^( ^^) = [ ^^( ^^) ^^( ^^)]. However, the prover is still heavily constrained, as they must commit to the particular multiplicities for each noun before they ever see any randomness. To illustrate, suppose that after the ^^^^are gener- ated by the verifier, the prover identifies appropriate a, b, c such that a ≠ [b c] but ^^( ^^) = [ ^^( ^^) ^^( ^^)]. Either the multiplicities ofbandcwere committed to based on an honest run of the program, or they were incorrect and committed to maliciously. In the former case, a malicious prover would be forced to repurpose an existing instance ofbandcin the program execution in order to take advantage of ^^( ^^) = [ ^^( ^^) ^^( ^^)] to prove the false inverse cons relation a[b c]. This is because the prover cannot modify the multiplicities of b and c given their prior commitment. But now the original rows where b and c were used can no longer make reference to them, and have to befilled by some other nouns. This creates a cascade of difficulties for the prover who now has to reshuffle nouns into new roles and hope not to violate constraints. This adds robustness to our security analysis, as the variety of layers of constraints drastically reduces the prover’s degrees of freedom. In the remaining case, the prover simply commits to false multiplicities with the expectation thata[b c]and ^^( ^^) = [ ^^( ^^) ^^( ^^)] would hold. But this involves predicting ahead of time that the verifier’s random challenges ^^1and ^^2will be the roots of two given polynomials, which by Schwartz-Zippel is completely improbable. Leaving such intuition to the side, what is the probability thata[b c]but ^^= [ ^^( ^^) ^^( ^^)] holds? Firstly, based on Equations (5) and (6), there are two categories of ways in which a ≠ [b c] can oc- cur: (1) ^^^^≠ [ ^^^^^^^^] and ^^^^≠ [ ^^^^^^^^], and; (2) exactly one of ^^^^≠ [ ^^^^^^^^], ^^^^≠ [ ^^^^^^^^] hold. We can easily argue that for the dishonest prover, looking for instances of a ≠ [b c] in category (1) where = [ ^^( ^^) ^^( ^^)] is futile. For a givena, there are at most 264pairs (b,c), so even ifahad length 232, 332 the probability of a single such instance is at most ((2 2) |^^|) ≈ 2−192, by using Schwartz-Zippel once for each random value ^^^^. So, even if there were 232such inverse cons equations, the probability of a single false positive would be in the neighborhood of 2−160. This is negligible, so for all practical purposes such cases can be ignored. Thus, we turn to the odds of ^^( ^^) = [ ^^( ^^) ^^( ^^)] for instances of a[b c] in category (2). The odds of the prover seeing a[b c] because only one of ^^^^= [ ^^^^^^^^] or ^^^^= [ ^^^^^^^^] hold, and seeing ^^( ^^) = [ ^^( ^^) ^^( ^^)], depends on: 1. the number of inverse cons relations 2. for any given a to which the inverse cons will apply, the number of b and c nouns available in the program such that only one of ^^^^= [ ^^^^^^^^] or ^^^^= [ ^^^^^^^^] hold, and 3. the length of a, which determines the number of roots of ^^^^− [ ^^^^^^^^] that can be targeted by ^^2(in the case where ^^^^= [ ^^^^^^^^]) and the number of roots of ^^^^− [ ^^^^^^^^] that can be targeted by ^^1(in the case where ^^^^= [ ^^^^^^^^]). 326184.1000002 In light of this, we will now provide a security argument using the naive implementation of the noun table. Let ^^ be the total number of nouns in a given zkVM program, so ^^ ≤ 232. For any noun length ^^, let ^^^^be the number of nouns of length ^^. Of course, ^^ = ∑ ^^^^, but critically we also have 232(13)since each noun of length ^^ takes up a vertical space of 2( ^^ − 1). Now, for each noun a of length ^^ and each decomposition ^^ = ^^ + ( ^^ − ^^) (where ^^ = 1, …, ^^ − 1), there are at most ^^^^nounsbof length ^^ and ^^^^− ^^nouns c of length ^^ − ^^ available to construct a false equation a[b c] of category (2) such that ^^( ^^) = [ ^^( ^^) ^^( ^^)] holds. Thus, for each noun a of length ^^, there are at most ^^^^total ways to attempt a false construction, where ^^^^is the convolution-type sum ^^^^=^^^^· ^^^^− ^^. Since there are ^^^^nouns of length ^^, and the number of roots of either the dyck cons or leaf cons equation cannot exceed 2( ^^ − 1), the maximum possible number of roots available that would allow a category (2) false cons isBut ^^^^· 2( ^^ − 1) ≤ 232by (13), which means that (14) is bounded by ^^−1 232∑ ^^^^= 232∑ ∑^^^^^^^^− ^^(15) ^^ ^^=1 This double sum is further bounded by (∑ ^^^^)2= ^^2≤ 264by expanding (∑ ^^^^)2and the positivity of the terms. Putting this together, we conclude that the maximum possible number of roots available that would allow a false cons in category (2) is at most 296, yielding a probability of at most −96≈ 2 of such an event. 336184.1000002 References [Sze] A. Szepieniec. [Online]. Available: https: / / web.archive.org / web / 20230630200925 / https: / / [KR08] Y. T. Kalai, and R. Raz, “Interactive PCP,” in Automata, Languages Program., Berlin, Heidel- berg, 2008, pp.536–547. [Ham15] M. Hamburg, “Ed-448 Goldilocks, a new elliptic curve,” 2015. [Online]. Available: https: / / [BCS16] E. Ben-Sasson, A. Chiesa, and N. Spooner, “Interactive Oracle Proofs,” 2016. [Online]. Avail- able: https: / / eprint.iacr.org / 2016 / 116 (Cryptology ePrint Archive, Paper 2016 / 116) [Ben+18] E. Ben-Sasson, I. Bentov, Y. Horesh, and M. Riabzev, “Scalable, transparent, and post- quantum secure computational integrity,” 2018. [Online]. Available:2018 / 046 (Cryptology ePrint Archive, Paper 2018 / 046) [Gou21] A. P. Goucher, “An efficient prime for number-theoretic transforms,” 2021. [On-[GPR21] L. Goldberg, S. Papini, and M. Riabzev, “Cairo – a Turing-complete STARK-friendly CPU architecture,” 2021. [Online]. Available:(Cryptology ePrint Archive, Paper 2021 / 1063) [Por22] T. Pornin, “EcGFp5: a Specialized Elliptic Curve,” 2022. [Online]. Available: https: / / [Noc23] “Nock Definition,” 2023. [Online]. Available: https: / / developers.urbit.org / reference / nock / [Blo23] R. Bloemen, “The Goldilocks Prime,” 2023. [Online]. Available:[DL78] DeMillo, and Lipton, “A probabilistic remark on algebraic program testing,” 1978. [Zip79] R. Zippel, “Probabilistic algorithms for sparse polynomials,” 1979. [Sch80] J. T. Schwartz, “Fast probabilistic algorithms for verification of polynomial identities,” 1980. [FS87] A. Fiat, and A. Shamir, “"How To Prove Yourself: Practical Solutions to Identification and Signature Problems",” in Advances Cryptology --- CRYPTO' 86, Berlin, Heidelberg, 1987, pp. 186–194. 346184.1000002 APPENDIX B Airwalk: Accessible Decentralized Ledgers with State-Minimization and Unlinkable Smart Transactions Abstract Zero Knowledge Proofs (ZKPs) have been shown to be exceedingly powerful tools for the construction of blockchain protocols. This is because the qualities ZKPs may provide blockchains, namely the ability for a blockchain to be validated with highly compressed time, space, and communication requirements and in an information-hiding manner, appear to be the perfect tool to resolve three long-standing issues with blockchains: lack of accessibility, lack of throughput, and lack of privacy. In particular, the concept of so-called 'stateless blockchains' as a solution to the problem of accessibility has captured the imagination of researchers in recent years, leading to a wealth of intriguing proposals and even implementations in the form of the Coda and Edrax Protocols. However, perhaps unintuitively, none of these ‘stateless’ methods have managed to simultaneously utilize ZKPs for privacy of the fullest degree they may provide, namely unlinkable transactions. Additionally, none of these proposals accommodate high transaction throughput without sacrificing the protocol participation and security model of the ‘stateless clients’ whose increased participation and security over traditional light clients is the primary motivation for these schemes in the first place. We introduce Airwalk, to our knowledge the first method for constructing state-minimized decentralized ledger protocols that fully utilize the power of ZKPs to provide unlinkable transactions and high throughput while maximizing the accessibility of light clients to ‘Full Node Security’ via a state-minimizing architecture. Airwalk achieves this through a radical redesign of the ledger whereby the traditional time-indexed data structure of a blockchain is forgone entirely in favor of a data structure indexed only by content, and a novel standard of transactions that unify the functionalities one would typically associate with Covenant-style smart contracts and Zerocash-style nullifiers.6184.1000002 Table of Contents 1 Introduction 1.1 Background 1.2 Our Work 2 Decentralized Ledger Protocols 2.1 Ledgers 2.1.1 One-Time Accounts 2.1.2 Assets 2.1.3 Spend Conditions 2.2 Acceptance Conditions 2.2.1 Canonicity Conditions 2.2.2 Validity Conditions 2.3 Blockchain-based DLPs 2.3.1 Bitcoin 2.3.2 Light Clients 2.3.3 Light Client Functionality 2.3.4 Zero Knowledge Proofs 2.3.5 ZKP Information Hiding and Succinctness 2.3.6 Checker Functions and Efficiency 2.3.7 Validating Light Clients 2.3.8 Recursively Proven Blockchains 2.3.9 Issues with Validating Light Clients 2.4 State-minimized DLPs 2.4.1 Recursively Proven State-Minimized Ledgers 2.4.2 Inbound Communication Costs for PSNs 2.4.3 Costs for PSNs unique to SMLs 2.5 Unlinkable Blockchains 2.5.1 Nullifiers 2.5.2 Sparse Merkle trees 2.5.3 Recursively Proving Unlinkable Blockchains 2.5.4 Challenges with State-Minimized Unlinkable Ledgers 3 Airwalk Protocol Design 3.1 Covenant-Addressed State Tree 3.2 Name-based Covenant System 3.1.1 Airwalk Accounts 3.1.2 Airwalk Transactions 3.1.3 Transaction Inner Proofs 3.1.4 Transaction Outer Proofs 3.3 Airwalk State Updates6184.1000002 Introduction Background Zero Knowledge Proofs (ZKPs) allow a Prover to convince a Verifier with cryptographic certainty that an arbitrarily large amount of computation was executed correctly with a proof of constant size requiring constant time to verify, all while concealing or revealing anything about said computation the Prover wishes. It has been becoming increasingly obvious in recent years that in order for blockchains to achieve mass adoption, their use of such ZKPs will be essentially mandatory. Perhaps the most transformative advantage that such abilities provide to blockchains is in the ability to dramatically reduce the resource requirements for validating a particular state of the ledger. Typically, in order for an individual to gain maximum assurances that a particular state of a blockchain is correct, which we refer to as full verification, their client must download, store, and verify via re-execution all transaction and consensus logic from the first to the most recent block of a blockchain. Therefore clients bear a full verification cost that grows linearly in the total historical number of transactions. This fact has meant that traditionally the transaction throughput of a blockchain protocol is inversely related to the accessibility of full verification. In other words, protocols must choose between full chain verification being infeasible for the vast majority of clients or transaction throughput being impractically small for world-scale adoption. If, however, the validation process for each block of the chain is executed inside a zkVM, one can construct a scheme whereby any verifier only requires the block header ( root of all block content) and ZKP for each block in the chain in order to be convinced of the validity of any given state of the ledger. Such a scheme would reduce the chain verification cost to grow linearly in the total number of historical blocks in the chain, independent of the number of transactions per block. Building on a scheme of this kind, if in executing each block B inside a zkVM, one additionally executes the verification process of the ZKP corresponding to the predecessor block to B, which in turn attests to the verification of the ZKP corresponding to its predecessor etc, then the ZKP corresponding to any block not only verifies its execution, but through ‘recursive verification’ additionally verifies the execution of all blocks in the chain that came before it. Such a scheme has now reduced the full verification cost for any state of the chain to be constant. Additionally, through the use of cryptographic accumulators, clients may only be required to store small segments of the total state that contain their personal accounts, and a cryptographic inclusion proof from their stored state segment to a global ‘state root’. Thus such light clients may not only fully verify any state of the ledger, they may also possess all information required for them to prove the validity of their accounts when they wish to transfer from them. These are the techniques utilized by proposals such as Coda and Edrax to achieve what are sometimes and somewhat misleadingly called ‘stateless’ blockchains, which we will instead refer to as “state-minimized”. Such state-minimizing architectures allow for the accessibility to full verification to be essentially universal, and as such the research enthusiasm in the same has led to a wealth of interesting work on the subject.6184.1000002 In addition to providing maximum accessibility to full verification, ZKPs have been shown to grant blockchains the greatest degree of privacy yet achieved, namely Unlinkable Transactions. While privacy at one time may have been generally considered to be a beneficial but non-essential feature for a blockchain to provide, as real-world adoption of blockchains has increased, it has become clear that privacy is in fact entirely essential for the fundamental security of these protocols. This is primarily due to the fact that with a naive blockchain protocol, it often is possible to discern whether an individual possesses a large amount of currency merely by observing a transaction they either make or receive, which may make them a target for physical extortion attacks. Confidential Transactions (CTs) are a method for achieving a degree of privacy, specifically, they obfuscate the amounts of currency that are sent in any transaction. However, CTs do not naively obfuscate the correlation between the sending account and the receiving account for transactions. In practice, this type of ‘spend graph’ privacy is as or more desirable than mere amount privacy particularly where issues of security are concerned. Coinjoins and other ‘mixing’ techniques may achieve this effect to a certain degree. However, they all suffer from extreme efficiency downsides either in terms of communication and liveness requirements in the case of coinjoins, or in space and time requirements for ‘decoy transactions’ in the case of schemes such as RingCT. Additionally, the unlinkability such schemes may provide has been shown to be highly vulnerable to various correlation attacks. The first proposal to provide true and practical spend graph privacy via unlinkable transactions was Zerocoin, which was later improved upon by Zerocash to additionally provide amount privacy for transactions. Zerocash outlines a method for a UTXO-type scheme in which a transaction spending into a receiving account may be validated without revealing the funding account. In 2018 Zexe further built upon the Zerocoin technique by introducing methods for adding generic ‘smart contract’ capabilities to such schemes. The impetus for Zexe was the observation that since validating a Zerocash-style transaction merely required verifying a ZKP attesting to its correctness, if one used a computationally generic ZKP scheme, then the ZKP corresponding to a transaction could additionally attest to the fact that it satisfied arbitrary smart contract logic encumbering its funding account along with the aforementioned Zerocash-style validity predicates. Zexe thus succeeded not only in creating unlinkable transactions with smart contract capabilities, but also in creating a framework for decentralized smart contracts with constant-sized verification costs independent of their runtime. However, while Zexe-like protocols allow for the validation costs of smart contract logic for individual transactions to be compressed to constant sized, all historical transactions and their corresponding ZKPs must be stored in perpetuity by protocol participants and must be obtained, stored, and verified by the client of any individual wishing to perform Full Verification of the ledger. Thus, despite the fact that Zexe-like protocols require participants to go through the trouble of creating ZKPs attesting to the correctness of each individual transaction, these protocols remain in the standard paradigm whereby the costs for full verification scale linearly in the number of total historical transactions. Conversely, no proposed architectures that exploit ZKPs for accessibility simultaneously do so for unlinkable transactions. We submit Airwalk as being the first proposal to maximize the use of ZKPs for decentralized ledgers by utilizing them both for state-minimization and unlinkable transactions. In addition to providing spend6184.1000002 graph privacy to a state-minimized decentralized ledger, we claim Airwalk is also the first to fulfill an even more fundamental need currently unmet by existing proposals, that of allowing for high throughput without sacrificing accessibility to clients that not only may fully verify a given state of the ledger, but additionally are active participants in the protocol. We refer to such clients as Participating Clients (PCs), and they may be thought of as having all characteristics typically associated with ‘full nodes’ other than the assumption that they store and serve to peers the totality of the ledger state. In all current state-minimized architectures, as the throughput of the ledger scales up, while accessibility to fully verifiying light clients (FVLCs) remains constant, accessibility to PCs linearly diminishes in precisely the way one would expect with traditional blockchain architectures. This necessitates the protocol devolving into a network consisting of an overwhelming minority of participating nodes, also known as Proof Serving Nodes (PSNs) , and a corresponding majority of non-participating FVLCs. Aside from the obvious lowering of the nakamoto coefficient that results from this centralizing effect, there are two very concrete negative results from this paradigm, namely dramatically decreased data availability and privacy assurances for users. The reason for this ‘pricing out’ of clients’ access to PCs is due almost entirely to communication costs. This is because fundamentally what is demanded of state-minimized clients to continuously maintain the data required to transfer their assets is to receive once per update of the ledger a corresponding update to their stored inclusion proof for their personal state segments from the previous to the newly updated state root. Specific to our interests, these issues are exacerbated further by the demand for unlinkable transactions in a state-minimized model to utilize cryptographic accumulators that are both universal and dynamic, rather than the append-only accumulators that are often employed by state-minimized architectures. To make matters worse, recently Miranda et al put forward information-theoretic proofs that problems of this kind are totally intractable. While this work remains wholly subject to these limitations, the novel data structures and network behavior employed by Airwalk allows for them to be sidestepped in practice, by entirely removing the distinction between PSNs and FVLCs and allowing essentially all clients in the protocol to feasibly be a PC. Our Work The Airwalk model is on the surface very similar to other UTXO-based state-minimized architectures such as Edrax, wherein the entirety of the ledger consists only of a single dynamic cryptographic accumulator, typically a Merkle tree, which contains only active ‘unspent’ accounts, and to and from which accounts are added and removed according to user activity, with the defining feature that once a ‘spent’ account has been removed from the accumulator, it can not only be ‘pruned’ by clients looking to reduce resource costs, it may truly be ‘forgotten’ by all participants in the protocol without disrupting its function. Unlike all prior state-minimized designs however, the Merkle tree Airwalk utilizes does not index its leaves by time but is instead a sparse Merkle tree and is thus indexed by content, more specifically by what we call content predicates. This has the result that at the base layer of the protocol, there is no data structure recognizable as a blockchain, ie a linked list of ledger amendments sorted by their order of6184.1000002 occurrence, thus we prefer instead to use Decentralized Ledger Protocol when describing the class of protocols to which Airwalk belongs. While we consider such a construction to be the correct method of achieving Airwalk’s goals, we will show there are challenges that need to be overcome in order to sensibly implement it. The primary of these challenges is the fact that the addition and deletion effects of a single transaction may be expected to be reflected in many dispersant locations in the accumulator. We believe these challenges to likely have been the reason why an Airwalk-like scheme has not been considered before, nonetheless we will show methods whereby these challenges may be overcome. The reason why a content-addressed accumulator is required for this work is that unlike the standard Merkle trees used by all current state-minimized schemes, they are able to support proofs that they do not contain a given element, also known as a non-inclusion proof. Such devices are known as universal accumulators, and they are fundamental for the nullifier schemes pioneered by Zerocoin that we utilize to achieve unlinkable transactions. A nullifier may be thought of as a secret unique “serial number” that each account commits to upon its creation and reveals upon transferring its assets to another. Whenever a nullifier is revealed along with a transaction, it is verified that the nullifier does not previously exist inside the ‘nullifier set’, which is what allows Zerocoin-like schemes to prevent accounts from double-spending their assets without referencing them directly inside of transactions, and also what demands the use of accumulators supporting non-inclusion proofs. These nullifier sets are data structures that are separate from but must be maintained in coordination with the ledger itself. They are also the primary reason why no unlinkable transaction scheme has simultaneously achieved state-minimization, as currently all designs require the nullifier set to grow linearly in the total number of historical transactions. Airwalk achieves state-minimization by forgoing the need for nullifiers and therefore the need for nullifier sets entirely. Instead, we show how one may obtain nullifier-like functionality and thus unlinkable transactions with nothing but the user accounts themselves, so long as the ledger that contains them is indexed via content and not time. This unification of data structures is further enabled by a novel implementation of so-called ‘covenants’, a method of achieving smart contract functionality in UTXO-based ledgers by accounts placing conditional constraints on their future transactions at the time of their creation. This covenant scheme serves double-duty both for enabling smart contracts and as the method of achieving nullifier-like functionality from data objects that may be ‘forgotten’ by the protocol as is required for state-minimized schemes. With traditional state-minimized designs, what causes an account to be forgotten by the protocol is that it has been spent. However, the entire point of unlinkable transactions is in obfuscating the fact that accounts are being spent. To maintain this feature but still allow for state to be permanently forgotten, we introduce mechanisms that allow for users to ‘trim’ their spent accounts within an arbitrarily long amount of time after they have been spent, and incentivize them to do so. These incentives consist of ‘state mortgages’ similar to schemes described in Edrax, Arweave, and Nervos, and have the result of placing a small but continuous ongoing cost to occupying state in the ledger. A user trimming their account within the same ledger update as it is spent will have a very small anonymity set for that transaction. Privacy-concerned users are then incentivized to trim their accounts from the global state some amount of time after they have been spent at which the user considers the diminishing returns of increasing their anonymity set to no longer be worth the ongoing state-occupation cost.6184.1000002 Our Contributions In total we offer the following contributions constituting the Airwalk method: 1. Name-Based Covenants. A scheme that allows one-time accounts to be used as if they were nullifers in an unlinkable transactions scheme, by enforcing that all accounts commit in advance to the ‘name’ and number of the accounts that they will spend into in the future. In addition to being an identifying value that an account’s ‘parent’ committed to as of its own creation, an account’s name is a cryptographic commitment to a program that must be proven to return true when passed that account as input for it to be included in the ledger, thus it may be used as the basis for arbitrarily complex smart contract type functionality. 2. The Covenant-Addressed State Tree (CAST). A data structure which allows a ledger to be both state-minimizing and allow for unlinkable transactions, by representing the ledger entirely as a sparse Merkle tree containing one-time accounts which are indexed by their name, which as previously mentioned is a commitment to a covenant that they proved to have satisfied in order to be added to the ledger. The Sparse Merkle tree used is a generalization of Sum Trees we call a Decorated Merkle tree that among other things enables the kinds of operations that the CAST requires to be performed efficiently. 3. Incentivized State Trimming. A set of methods for allowing and incentivizing accounts that have been spent to be ‘trimmed’ from the ledger and as a result may be safely forgotten by the protocol permanently. 4. Client-side Sharding. A set of methods for allowing users to choose how large of a ‘shard’ of the global state they wish to run in their client, rather than being subject to top-down protocol default shard sizes. This is enabled via “Hierarchical Content-Centric Peering” that effectively turns all clients into ‘Proof Serving Nodes’ for one another, the upshot of which is that one may have a high throughput state-minimized ledger without the majority of clients depending on industrial scale server nodes for data availability of information vital to their personal ledger accounts. Before we discuss these contributions it will be useful to more formally define some of the terminology used. Decentralized Ledger Protocols6184.1000002 In a Decentralized Ledger Protocol (DLP), a network of communicating peers maintain a shared Ledger by proposing states of the ledger to one another, and either accepting or rejecting the proposed ledger state based on whether or not peers are convinced it satisfies a set of shared Acceptance Conditions. While many useful holistic ontologies for discussing such things as blockchain have been created, we find this to be a very ergonomic framing for discussing the prerequisite knowledge to understanding the value and functionality of Airwalk. Ledgers For our purposes, we define a Ledger as consisting of a set of One-time Accounts, themselves consisting of Assets and Spend Conditions. These accounts are the means by which users of the ledger may own assets and transfer them to others. One-time Accounts We refer to these accounts as one-time accounts because they should have the property that they may only be the recipient and initiator of a single asset transfer event. In other words, a one-time account is created to receive the assets being transferred to it and may not be the recipient of any additional transfer events thereafter, and it must transfer all of its assets within a single transfer event. This act of adding new accounts to the ledger we call a transaction, we refer to the funding and recipient account(s) for a transaction as being its inputs and outputs respectively, and we refer to any data provided which attests to the validity of a transaction its witness (fig x). If the ledger in question does not remove ‘spent’ accounts that have been provided as input to a transaction we say the ledger is append-only, otherwise we say it is dynamic. In the case of append-only ledgers, users of the ledgers typically track all ‘unspent’ accounts (commonly known as unspent transaction outputs or UTXOs) inside a separate dynamic ledger (commonly known as the UTXO set). Assets An account’s assets may either be non-fungible or fungible. A non-fungible asset should have the quality that it may only be owned within a single account in any given state of the ledger. A fungible asset should have the quality that in any given state of the ledger, the sum of amounts of the asset owned within all accounts is equal to an expected total supply for that asset. If these rules are enforced within a ledger that enforces the one-timedness of accounts, these assets may be given a ‘virtual scarcity’ despite being informational objects and thus able to be duplicated, provided there exists a mechanism for ensuring canonicity of the ledger (section x). Spend Conditions6184.1000002 An account’s spend conditions are a set of conditions that it commits to upon its creation that any transaction it is provided to as input must satisfy in order for the account to transfer ownership of its assets. Thus the person(s) capable of satisfying all an account’s spend conditions but not having yet done so may be said to be the owner of its assets. In practice the spend conditions for a given account is most commonly a requirement for a signature corresponding to a public key associated with the account to be verified upon the recipient accounts of a given transaction, however these conditions may be of arbitrary logical complexity, as is required for ‘smart contract’ functionality. Any of an account’s spend conditions that are entirely unopinionated about the ways in which an account’s assets may be transferred (as is the case with a simple signature) we refer to as a lock. Spend conditions that do place constraints on the ways in which an account may transact we refer to as a covenant. Acceptance Conditions A DLP’s Acceptance conditions are a set of conditions that an individual peer must be convinced that a given state of the ledger satisfies in order for them to accept it as being valid, current, and agreed upon by its other peers. A DLP’s acceptance conditions may be said to uniquely identify it as distinct from all other possible DLPs, as they have the effect of enforcing the set of rules that the ledger itself as well as peers in the network agree to follow. It will helpful for our purposes to parse these acceptance conditions into a series of hierarchically nested sub-conditions like so: Acceptance Conditions Canonicity Conditions Validity Conditions Executive Conditions Transaction Conditions Input-output Equality Condition Authorization Conditions Contract Conditions Account Conditions Inheritance Condition One-timedness Condition We will now describe each of these sub-conditions. Canonicity Conditions6184.1000002 The Account conditions and Input-Output Equality Conditions defined below are sufficient to grant assets within a given state of the ledger a ‘virtual scarcity’, despite being informational objects and therefore able to be copied. However, this scarcity is only practically guaranteed if there exists a single version of the ledger shared and and agreed upon by all peers, as multiple conflicting versions would infer some amount of ‘duplication’ of assets which are owned by conflicting accounts across the different versions. A ledger meeting this criteria we say is consensed. Additionally, a given state of the ledger should not be able to be ‘rolled back’ in such a way that transactions considered to have been confirmed as being sent to one set of accounts may be undone such that they may be sent to a different set of accounts. A ledger meeting this criteria we say is immutable, and a ledger that is both consensed and immutable we say is canonical. In practice, a ledger not meeting these criteria amounts to breaking the ‘one-timedness’ quality of accounts and is precisely the “double spend problem” that was Bitcoin’s primary innovation in solving via Proof of Work. For our purposes, we consider Proof of Work (PoW) in terms of a set of canonicity conditions that peers must be convinced a given state of the ledger satisfies in order to consider that state canonical, and therefore may be accepted if the ledger additionally satisfies the DLP’s validity conditions. We may say that for DLPs that utilize PoW, a peer is convinced that any given state of the ledger satisfies the DLPs canonicity conditions IFF the amount of cumulative Proof of Work that the ledger state contains is greater than the cumulative amount of PoW on all other ledger states the peer is aware of, after querying some number of their peers. This amounts to describing the so-called ‘heaviest chain rule’ most commonly used by PoW-using DLPs. It will be useful for our purposes to distinguish between the ledger-contained canonicity conditions such as the PoW itself that may be verified merely by possession of the ledger, and the peer-contained canonicity conditions that may only be verified by querying some number of peers. A more administrative but still important feature that canonicity conditions should provide is a mechanism for deciding when and by whom a new amendment to the ledger may be validly proposed. Thus in total, we say that a DLP’s Canonicitiy Conditions are used to grant ledgers consensus, immutability, and state-advancement fairness. Validity Conditions A peer in a DLP must be convinced that a proposed state of the ledger satisfies the DLP’s validity conditions in order for them to consider that state of the ledger valid. A DLP’s validity conditions may be thought as enforcing a set of rules that the protocol itself promises its participants that the ledger will follow. It then follows that a ledger which does not satisfy these conditions may allow for any users assets to be transferred without their consent (theft) or for an arbitrary amount of any given asset to be ‘printed’ (theft via inflation). As a result, users of DLPs are extremely concerned with not accepting versions of the ledger that do not satisfy validity conditions. These validity conditions may be subdivided into Executive, Transaction, and Account Conditions.6184.1000002 Executive Conditions A DLP’s executive conditions we use as a catch-all term to refer to all validity conditions that must be satisfied other than those described below under transaction conditions.These may be used to refer to conditions that enforce protocol rules regarding things such as the DLP’s “genesis” initial state, the agreed upon execution environment for all ledger logic, the precise cryptographic schemes utilized, the allowed number and size of allowed transactions per state update, etc. Whereas transaction conditions as we describe them are more or less universal to all one-time account ledgers, a DLP’s specific executive conditions along with its canonicity conditions are typically what differentiate it from all other DLPs. Transaction Conditions A DLP’s Transaction Conditions may be said to enforce all protocol rules whose scope is that of an individual transaction. A transaction satisfying these conditions is said to be valid, and a given state of the ledger is said to satisfy its transaction conditions IFF all transactions reflected in the ledger’s state are valid. In most DLPs the costs associated with validating that a given state of a DLP’s ledger satisfy its transaction conditions are the primary bottleneck for achieving accessibility (section x). A DLP’s transaction conditions enforce that no “printing” of assets occurs within any transaction, and that the assets owned by an account are only transferred in a manner satisfying the spend conditions of that account, which amounts to enforcing that assets are not transferred from an account without the consent of the account’s owner nor may be transferred in a manner contrary to any constraints their account is encumbered by. 1) Input-Output Equality Condition: the totality of all assets contained by all funding accounts to any transaction reflected in the ledger must be equivalent to the totality of all assets contained by all its recipient accounts. This amounts to enforcing that assets may not be ‘printed’ from nothing by creating a transaction with a greater amount of assets among its outputs than was provided by its inputs. 2) Contract Conditions: every transaction reflected in the ledger satisfies any set of constraints upon the transaction that each of its funding accounts may have committed to upon their creation. This amounts to enforcing that any covenants from all account’s spend conditions are satisfied by the transaction they are provided as input to. 3) Authorization Conditions: every transaction reflected in the ledger was authorized to be created by each of its funding accounts.6184.1000002 This amounts to enforcing that any locks from all account’s spend conditions are satisfied by the transaction they are provided as input to. It is worth noting that it is possible and often useful to enforce all Transaction Conditions as contract conditions, as is done by Zexe, however it is helpful for this work to assume them as being seperate. Account Conditions While transaction conditions have as scope and individual transaction, account conditions are concerned with the global behaviour of accounts on the ledger, and must take as scope the entire ledger as a whole. Along with the input-output equality condition, account conditions may be said to enforce all rules associated with managing the supply of its assets. It’s worth noting that the fact that assets must at some point must first be created in order to be transferred infers a distinction between a transaction which is transferring existing assets and a transaction which is ‘minting’ assets which does not. For simplicity we will only concern ourselves with conditions applying to transfer-type transactions, and we assume that creation-type transactions may be valid exceptions to these if the specific rules of a given asset allow for it. The individual account conditions are as follows: 1) Inheritance Condition: for any transaction proposing the creation of a set of accounts in state N of the ledger, the funding accounts for the transfer must exist in state N-1 of the ledger. This amounts to enforcing that assets may not be ‘printed’ from nothing by creating a transaction with an output but no input. 2) One-timedness Condition: each account in the ledger may be provided as input to one and only one transaction, and each account may only be the recipient of one and only one transaction. This amounts to enforcing that the one-timedness of accounts be preserved. Note that in practice, in order for accounts in a distributed ledger to have true one-timedness, the ledger must also have canonicity (section x).6184.1000002 Blockchain-based DLPs Bitcoin Bitcoin functions using a data structure now known as a blockchain, which is an append-only ledger by our previous definitions. This data structure is indexed by time, or more precisely, by order of occurrence of transactions. Each individual transaction does not by itself invoke a global state change to the ledger in order to reflect the addition of its created accounts, instead these transactions are aggregated into a block of transactions which are to be added simultaneously in batch by any peer that is able to produce a PoW on the block meeting the protocol’s current PoW difficulty target. This PoW takes the form of the output of a secure hash function which, beyond possessing an amount of ‘leading zeroes’ constituting the actual PoW, is a secure hash-based commitment to all transactions included within the block, and to the PoW of its predecessor block in the ledger, which in turn commits to its predecessor block etc (fig x). This ‘chain of blocks’ data structure is the namesake of all blockchain protocols that utilize this construction. As is the case for all DLPs, In order for peers to accept a given state of the Bitcoin ledger, they must be convinced that it satisfies the acceptance conditions for the Bitcoin protocol. A peer is convinced the consensus conditions are satisfied by a given state of the Bitcoin ledger if a peer verifies that the cumulative amount of PoW performed upon the ledger is greater than that performed on any version of the ledger the peer is currently aware of. In the case of Bitcoin this is done by peers storing the PoW for every historical block in the ledger, obtaining a cumulative PoW value by performing a ‘PoW sum’ on the same, and then querying other peers in the protocol to see if any are aware of versions of the ledger with higher cumulative PoWs. As a result we say that in Bitcoin the costs associated with verifying canonicity conditions scale linearly in the number of historical ledger updates.1The costs associated with verifying the validity conditions in the Bitcoin protocol are in practice much steeper. As previously defined, transactions consist of a set of funding accounts, a set of recipient accounts, and a piece of data called a witness which may be used to verify the validity of the transaction, more specifically that the transaction satisfies all of the DLP’s transaction conditions. In order for peers to verify that the validity conditions are satisfied for a given state of the Bitcoin ledger, all transaction witnesses are stored in the ledger itself, and peers must obtain, store, and check each and every witness for all historical transactions in the ledger to be convinced that the validity conditions have been satisfied. This has the result that the validity conditions of Bitcoin impose a cost on peers that scales linearly in the total number of historical transactions. In practice this cost is far beyond what is reasonable to expect from most peers in a DLP to be able to bear, especially if the DLP has a very high throughput of transactions, which has lead to a number of strategies attempting to mitigating this cost, the primary of which are what is known as ‘light clients’. Accessibility Before describing Light Clients, we will briefly define the quality that they are in pursuit of, namely accessibility. For our purposes, we define accessibility as an inverse measure of the resource requirements1Improved to logarithmic cost by NiPiPoWs6184.1000002 to engage in some activity within a DLP. These resource requirements are space, time, and communication, or in more practical terms: storage, compute, and bandwidth. We will see how light clients, validating light clients, state-minimized ledgers, and finally Airwalk are each a progressively improving quest to increase accessibility to more and more critical features and activities of a DLP. Light Clients Light clients are any software run by peers that allow them to make transactions, to verify that the canonicity conditions for a state of a ledger are satisfied, and to be able to verify that validity conditions for individual transactions of their choosing are satisfied. Importantly they do not allow peers to verify that the validity conditions for the ledger as a whole have been verified. In order to understand how light clients function we must understand cryptographic accumulators, and specifically Merkle trees. Cryptographic Accumulators Cryptographic accumulators are methods by which an arbitrarily large set of data objects called elements may be cryptographically committed to via a constant-sized data object called a root, in such a way that it may be proven that a single element is contained within the committed set, with an inclusion proof that is much smaller in size than the overall set and efficient to verify. Using the terminology of Boneh et al we say that an accumulator which allows for elements to be efficiently added and removed from its committed set is said to be dynamic, one that supports only addition of elements is said to be append-only, and one that supports neither addition nor removal of elements is said to be static. A dynamic accumulator which additionally supports proofs that an element is not contained within its committed set is said to be universal. Merkle Trees While there are many other types of cryptographic accumulators with smaller proofs or better asymptotics for batch amendments to the committed set, due to their simplicity, computational speed, and lack of dependance on a trusted setup or vulnerability to quantum algorithms, Merkle trees are still favored above all others in practice for DLPs. A naive Merkle tree is constructed by creating a binary tree whose bottom-layer nodes are the elements of the set to be committed to, and whose inner node’s value consists of the output hash resulting from passing the concatenation of their left and right child node’s values through a secure hash function as shown in fig x. The topmost node of a Merkle tree is known as its root and it what is used to commit succinctly to the entire set. One may prove that an element exists inside the committed set with a proof of logarithmic size by providing the root, the element in question, and an inclusion proof that consists of the sibling nodes to all nodes along the path to the element in question, which may be verified by checking6184.1000002 that the element and all provided sibling nodes up the tree do in fact hash to the provided root (fig x). Such proofs have size logarithmic in the number of elements in the committed set. Light Client Functionality Light clients function by storing only the headers for every block in the ledger along with the individual accounts and corresponding inclusion proofs of direct interest to the controlling peer. A block header [fig x] is a short, usually constant sized, piece of information contained by each block of transactions. As previously mentioned it contains the data required to validate the canonicity conditions of the ledger resulting from the addition of the block as being met, a commitment to the previous block, certain administrative data such as the protocol version or the sequence index of the block, and the root of a Merkle tree containing all transactions that are contained within that block. Whenever new states of the ledger are proposed in the form of proposing a new block of transactions, rather than receive all transaction data contained within the block, a light client only receives the header corresponding to that block. Peers with light clients may fully verify that the canonicity conditions for a given state of the ledger are satisfied, as typically with bitcoin-style blockchains all information required to do so may be obtained by the complete set of block headers, which light clients store. However, light clients are not naively able to verify that a given state of the ledger satisfies the DLP’s validity conditions as a whole, due to the fact that they do verify each individual transaction. Instead, light clients make the strong assumption that any state of the ledger which satisfies canonicity conditions should also satisfy validity conditions. Light clients may, however verify that individual transactions in a block satisfy nearly all validity conditions in the following manner: 1) The light client possesses all headers for a blockchain at a given state N, and has verified that state N satisfies the canonicity conditions for the protocol 2) The light client obtains a transaction they wish to verify as being valid within the ledger, which consists of a set of funding accounts, a set of recipient accounts, and a witness. 3) The light client uses the witness to verify that the transaction satisfies all spend conditions committed to by all funding accounts, and the input-output equality conditions for all assets transferred within the transaction (fig x). 4) The light client requests from its peers the inclusion proofs for each input and output account represented in the transaction, and verifies each against the header of the block in which the account was added to the ledger (fig x). If each output account is proven to be contained in the ledger, then the light client is convinced that the transaction was reflected in the ledger. If each input account is proven to be contained in the ledger, then the light client is convinced that the transaction satisfied the inheritance condition.6184.1000002 In this manner a light client may be convinced that nearly all of an individual transaction’s validity conditions have been satisfied, provided they may obtain from their peers the data necessary to do so. The one validity condition that a light client may not naively verify is the one-timedness condition, that is, the light client does not know whether or not any of the funding accounts for a given transaction were provided as input to another transaction somewhere inside the ledger that they are not aware of. We will now show how through the use of Zero Knowledge Proofs one can construct DLPs with what we call validating light clients that may verify that all transactions in a ledger meet these all-but-one-timedness correctness criteria without having to individually verify them in the manner described above. Zero Knowledge Proofs Zero Knowledge Proofs (ZKPs) allow a Prover to convince a Verifier with cryptographic certainty that an arbitrarily large amount of computation was executed correctly with a proof of constant size requiring constant time to verify, all while concealing or revealing anything about said computation the Prover wishes. This is commonly done via executing the computation inside a ‘Zero Knowledge Virtual Machine’ (zkVM) that is designed such that it produces a ZKP which attests to the validity of any computation that it executes. The proof produced by zkVMs commonly consists of some succinct and potentially information-hiding commitment to a Program to be executed, the Input passed to the Program, and the Output of said Input once passed as an argument to said Program, along with a succinct cryptographic proof (such as a zk-SNARK) that attests to the correctness of the Input, Program, Output tuple (IPO tuple) committed to within the ZKP. If we assume the commitment scheme used to be a hash-based commitment scheme and the proof system used to be a zk-SNARK, then we may consider a ZKP as described above as convincing a verifier of the following statement: “There exists a program corresponding to this Program Hash which when passed as input some data corresponding to this Input Hash, produces as output some data that corresponds to this Output Hash.” ZKP Information Hiding and Succinctness The key feature of a ZKP in this format is that the actual input, program, and outputs corresponding to the ZKPs hash commitments do not need to be provided to the verifier in order for them to be convinced of the above statement. This in practice is both what allows ZKPs to be capable of obfuscating arbitrary information about the input, program and output tuple being proven as well as for the proof to remain of constant size independent of the size or runtime of the proven IPO tuple. A common method of revealing only partial information about the IPO tuple is by having each of their commitments be the root of a cryptographic accumulator, such as a Merkle tree. If, for example, the input being proven was a list of elements, and the hash commitment for the input within the ZKP was the root of a Merkle tree of all said6184.1000002 elements, then if the verifier wished to be convinced that a given element was present in the input list being proven, the prover may simply provide an inclusion proof for said element to the input root as shown in fig x. Check Functions and ZKP Formats Nearly all of the functions expected to be executed inside of a zkVM discussed hereafter are check functions. The reason for this is that executing a program inside a zkVM is often X-Y orders of magnitude more computationally intensive than executing the same natively. As a result, maximizing the efficiency of the programs required to run inside the zkVM is critical to practicality. To this end, it is often desirable to utilize check functions over generator functions. We say that a generator function is any function with ‘large’ output domain, and we say a check function is any function with an output domain of only true or false. The reason why check functions are often desirable in the context of ZKPs is due to the well understood fact that many problems require far less time to verify a solution of than to solve. Thus if possible, in order to minimize the computational complexity of the program being executed inside the zkVM, one should usually attempt to translate a problem naively requiring a generator function executing inside a zkVM into a problem wherein the generator function preprocesses the output outside of the zkVM, and a specially formatted check function checks the output of the generator function based on the original intent of the statement(s) that would have been proved by the generator function inside the zkVM. For example, if the desired intent of a proving operation is to convince a verifier that a list of elements were in sorted order, then the naive method would be executing the generator function inside a zkVM which takes as input an unsorted list, and sorts them into the sorted list. However a faster method would be to run the sorting generator function outside the zkVM, and inside the zkVM a function that merely checked whether the list is sorted by comparing each pair of neighboring elements, reducing the complexity of the program inside the zkVM from a minimum of nlogn to O(n). This pattern becomes more obviously worthwhile the greater the asymmetry between solving a problem and verifying its solution is, an extreme example would be checking the solution to an NP Hard problem. Aside from reduced overall computational complexity, this preprocess-and-check pattern can yield in-prover programs with significantly greater parallelism, which we will explore in section x. Check functions additionally may have the benefit of modular composition and decomposition without affecting their expected behavior. Consider a check function that passes its input as input to a set of internal sub-functions and returns the logical AND of their results. If these sub-functions are themselves check functions then if for example we have a pair of such check functions c and c’: c(x, y) → true iff x < 100 ∧ y|2 c’(x, z) → true iff x > 50 ∧ z|3 then the union of c and c’ may be said to be the function with an expected argument : u(x, y, z) → true iff x < 100 ∧ x > 50 ∧ y|2 ∧ z|36184.1000002 This feature will prove useful for descriptive purposes as well as allowing for safe “smart contract composition” discussed in section x. When discussing the ZKPs produced as the result of executing some check function inside a zkVM we will use the following format in order to both explain the practical statement being attested to and the functionality required by the proven function in order to do so: Proven Statement: “Human-understandable statement a verifier is convinced as being true by proving that the provided program returns true when passed the given input.” Input: - Expected input term 1 - Expected input term 2 - … Program: - Sub-function 1: does input meet x criteria? - Sub-function 2: does input meet y criteria? - … Output: True (if False, verifier is unconvinced) Validating Light Clients Validating Light Clients are light clients which in addition to verifying that a given blockchain’s ledger satisfies canonicity conditions may also validate that it satisfies (nearly all) validity conditions. These may be achieved if the blockchain in question is a recursively proven blockchain that provides light clients a ZKP along with each new block header which attests to the validity of the entire state of the ledger up to and including transactions within the block corresponding to the header Recursively Proven Blockchains For each new block of transactions added to the ledger, a ZKP is created for the following IPO tuple: Proven Statement: “Block N and all its predecessor blocks 0 → N-1 satisfy transaction, executive, and canonicity conditions” Input: - the block of transactions in question (block N) - the set of all block headers for blocks 0 → N-16184.1000002 - an inclusion proof for each funding account for all transactions in block N - the ZKP validating block N-1 Program: - did each provided transaction provide a valid witness? - was a valid inclusion proof provided for each function account to each provided transaction? - were all executive and canonicity conditions satisfied by block N? - is the provided ZKP attesting to the validity of the predecessor block for the expected state update program and is it valid? Output: True (if False, method fails). As shown in fig x, if each successive block in a blockchain is proven in such a scheme, then due to the recursive verification of the ZKP corresponding to the predecessor block to the block in question, which in turn recursively verifies the ZKP corresponding to its predecessor block etc, such a ZKP corresponding to any block. As a result, any light client verifying such a ZKP, and verifying that the block being proven corresponds to a given block header that they posses via the method shown in fig x, will be convinced with cryptographic certainty that all but the one-timedness validity conditions for the state of the ledger resulting from the addition of that block have been satisfied. Issues with Validating Light Clients While validating Light Clients are a dramatic improvement over light clients, they share two main issues with non-validating light clients that remain unsolved: 1) Inability to validate the one-timedness condition has been satisfied for a given state of the ledger. This is primarily due to the fact that since the fundamental data structure of a blockchain is an append-only ledger, the only way in which to determine whether or not a given account has been spent is to conduct a ‘brute force’ scan of all other accounts in the ledger, checking each to see whether or not they are the recipients of a transaction funded by the account in question, which in essence is what is done to construct the ‘UTXO set’ in protocols like Bitcoin. As a result, a recursively proven blockchain as described above would need to prove that such a brute force search was performed correctly for each individual transaction within a block, which would impose an inordinate cost upon the prover. In practice this problem must be mitigated either through making the primary ledger being proven a dynamic ledger from which spent accounts are actively removed (section x), or through the use of a data structure which supports efficient proofs of non-inclusion of particular elements (section x). 2) Centralization & Decreased Data Availability6184.1000002 While all light clients may be only required to store small segments of the global ledger state, in order for a DLP utilizing light clients to function, some number of peers in the network must store and maintain the full state of the ledger, which remains in the paradigm of incurring a storage cost growing linearly in the historical number of transactions. These full nodes as they are sometimes called must be able and willing to serve data from the full state of the ledger to light clients upon request, and additionally are required to construct proofs accompanying this service, typically in the form of inclusion proofs of some set of accounts to a cryptographic accumulator. With respect to this role such peers play in DLPs with validating light clients they are commonly referred to as proof serving nodes (PSNs). These PSNs are critically important to the proper functioning of light clients, and this one-way dependency represents a possible vulnerability to a DLP as a whole. There are no known methods of enforcing that a PSN responds to a request made by a light client for the data necessary for their functioning. Therefore if a malicious PSN chooses to not respond to such a request from a given light client, that light client has no choice but to make the same request to other PSNs, and if all PSNs in the network are similarly malicious towards this light client, then that light client is effectively banished from the DLP itself. Worse still, even if all PSNs are honest but are forced by resource constraints to no longer store some amount of the full ledger state, then situations may arise in which certain segments of the ledger are ‘forgotten ‘ by the DLP as they are not being stored by a single peer on the network. This could result in certain accounts owned in the ledger being made unspendable, or even in a catastrophic failure of the DLP as a whole in which the ledger could no longer be validated due to a lack of key data necessary to do so. In theory we could say that such a DLP requires at least one honest PSN that maintains the entire state of the ledger, but in practice having only a single PSN would lead to bandwidth bottlenecks between the node and all light clients dependant on it, to say nothing of the fact that having a single point of failure for the protocol does not give the degree of security expected of such protocols. This latter point relates to what is commonly known as the nakamoto coefficient of DLPs, which is a measure of the decentralization of a DLP given by the number of individual peers that would need to be compromised in order for the DLP to no longer follow expected behavior. This leads to the realization that it is critical for DLPs utilizing PSNs to maximize their number, both as a matter of efficiency and of security via increased decentralization and data redundancy, and so in pursuit of this, the concept of accessibility remains as being critical not only for validating clients but also for PSNs. We will now discuss state-minimized DLPs whose primary benefit is in increasing accessibility to clients which actively participate in the functioning of a DLP which we will refer to as participating clients.6184.1000002 State-Minimized DLPs A state-minimized DLP differs from a traditional blockchain protocol primarily by the use of a dynamic ledger as the primary data structure in which spent accounts are actively removed from the ledger, rather than an append-only ledger in which they are not. Recall from [x] that in practice, DLPs such as blockchains which utilize an append-only ledger require the maintenance of an extraneous dynamic ledger commonly known as a ‘UTXO set’ which contains all unspent account found in the append-only ledger, for our purposes we will refer to such constructions as the active account set (AAS). Since an AAS describes the current state of ownership for all assets on the ledger, it may be said that for the most part this AAS is all that users of the ledger are actually interested in, and therefore the primary function of the blockchain itself is merely allowing for the maintenance and validation of this AAS. From this, the analogy may be made that the goal of a state-minimized DLP is to allow for an AAS to be maintained and validated solely by storing the AAS itself without the need for any peers to store spent accounts as is done with append-only ledgers such as blockchains. We say that any such ledger data that may be safely removed from storage by all peers in a DLP without affecting its proper functionality may be safely forgotten. Just as blockchains, which utilize append-only ledgers, employ an append-only accumulator for their use, state-minimized DLPs utilizing dynamic ledgers, employ a dynamic accumulator for theirs. This dynamic accumulator, which we will assume to be a Merkle tree, contains all accounts within the AAS for any given state of the ledger. Similarly to blockchain protocols quantizing their state updates into regular and fairly-authorized batches of append-only account additions to the ledger knowns as blocks, DLPs quantize their state updates into regular and fairly-authorized dynamic account addition and removals from the ledger which we refer to simply as updates. These updates, similarly to blocks, have the quality that they are reflecting the effects of a batch of transactions into the ledger, in practice they may be thought of as a transition function from one version of the AAS to a successor version with some number of accounts added and / or removed. Specially, for each transaction reflected in the update transitioning state N of the AAS to state N+1, all recipient accounts for that transaction are added to and all funding accounts are removed from the accumulator containing the AAS. Recursively Proven State-Minimized Ledgers Similarly to a recursively proven blockchain, light clients may be convinced that a state of the ledger resulting from an update satisfies the DLP’s validity conditions by creating a ZKP which attests to the correctness of the update and, through recursive verification, to the correctness of all prior updates back to the initial genesis state of the ledger. An example of the IPO tuple being proved by the ZKP attesting to the validity of state N of a ledger would be: Input: - state root N-1 and the ZKP attesting to its correctness - state root N - all data for transactions being reflected in the update transitioning state N-1 to N (funding and recipient accounts, witness)6184.1000002 - an inclusion proof for each funding account for each new transaction to state root N-1 - an inclusion proof to the “null” values resulting from removing each funding account from the ledger to state root N - an inclusion proof for each recipient account for each new transaction to state root N - Proof that state N satisfies ledger-contained canonicity conditions Program: a checker function corresponding to the process for: - validating individual transactions in a light client setting described in [x], expecting as input the necessary information to perform this validation process for each transaction in a block, with the distinction that inclusion proofs are being made for the master root for state N - is each transaction reflected in the new state N able to be validated by the method in section x? - has every funding account for every provided transaction - is the provided ZKP attesting to the validity of the predecessor block for the expected state update program and is it valid? Output: True (if False, method fails). As shown in fig x, a ZKP attesting to the validity of such an IPO tuple will be sufficient to convince any light client that all validity conditions for a given state of the ledger have been satisfied. Note that unlike with recursively proven blockchains, here the one-timedness condition may be validated by light clients, as this is easily proven due to the fact that spent accounts are actively removed from the accumulator, and thus the prerequisite inclusion proofs to those accounts necessary to create a valid transaction (section x) may never again be made to subsequent state roots. It also should be noted that while not explicitly mentioned above, a certain amount of the canonicity conditions for the ledger may be proven in such a scheme. While currently, the only known methods for verifying canonicity conditions require a peer to query it’s other peers to see if they are aware of any ledgers which ‘trump’ a given ledger’s canonicity, aspects such as the cumulative PoW that a given state of the ledger may be proven, in such a way that light clients are no longer required to store the complete list of ‘state headers’ to verify. In this way, recursively proven state-minimized ledgers improve upon recursively proven blockchains by allowing for the one-timedness condition to be verified by light clients, and by reducing the storage requirements for PSNs to be linear in the number of currently active (unspent) accounts, rather than the number of total historical transactions. The latter of these benefits dramatically increases the accessibility of PSNs, however these cost savings are naively limited to compute and storage costs, with communication costs being actually increased from those expected from a traditional blockchain protocol. Inbound Communication costs for PSNs6184.1000002 The reason why inbound communication costs for PSNs are not naively reduced by state-minimized DLPs as described above is due to the fact that naively for any given update to the ledger, PSNs must obtain all newly added accounts and references to all newly removed accounts in order to create the inclusion proofs that are served to light clients for their use of the state of the ledger resulting from the update. In other words, for any given period of activity, PSNs must bear an inbound communication cost linear in the number of transactions within that period, which is identical to those born by those operating upon an append-only ledger. This cost stems from the fact that naively, in order to construct a cryptographic accumulator, and therefore inclusion proofs for elements contained within the accumulator, one must possess all elements contained within the accumulator, in this case all accounts within the AAS including all those added within the most recent update. While the accuracy of this figure has been debated, Visa’s claim of supporting 24,000 transactions per second (TPS) is often used as a benchmark when considering a DLP’s feasibility of large-scale usage. If we are to assume a very conservative estimate of each transaction adding on average 1.5 accounts to the AAS, and each account being on average 300 bytes in size, at 24,000 TPS the minimum inbound communication resources required will be 10.8 megabytes per second. This figure alone is reasonably attainable today, however if we allow our ambitions for a DLP to extend beyond supporting beyond what may be expected of a single credit card network, into hypothetically supporting all digital financial applications that are actively used today, it is obvious that our current benchmark of 24,000 TPS will be grossly insufficient. For example, a single trading entity engaging in high frequency trading may be expected to require that figure’s worth of TPS alone. While further research would be required to attempt to fully quantify what TPS would be required for a true “world-scale” DLP, suffice it to say that it will certainly be some multiple of our 24,000 TPS benchmark, and as a result the inbound communication costs and thus lack of accessibility for PSNs in such a DLP will naively scale proportionally. Costs for Proof Serving Nodes unique to State-Minimized Ledgers Beyond the aforementioned incoming communication costs for PSNs being unimproved by state-minimizing ledgers over recursively proven blockchains, there are additional costs born by PSNs that are unique to state-minimizing DLPs. These costs are the computational resources required for the generation of a new set of inclusion proofs that must be served to each light client per ledger update and the outbound communication costs required to serve them. Recall that from section x, a light client stores only the set of accounts that are of interest to them, and a proof of inclusion for these accounts into the ledger, which in the case of blockchains consists of a inclusion proof for these accounts to the header of the block in which they were created. The append-only nature of the accumulator that contains a blockchain means that these inclusion proofs will never be “revoked” and thus will never need to be updated, and as a result light clients will only need to be served with new inclusion proofs if they wish to add a new set of accounts to their accounts of interest or if they wish to verify an individual transaction using the method described in section x. This is not the case with state-minimized ledgers, as the inclusion proofs for a light client’s accounts of interest are for a dynamic accumulator whose root necessarily changes with each update of the ledger. Thus each new update of the ledger demands that any inclusion proofs that light clients previously possessed be revoked and be replaced with new proofs corresponding to the newly updated ledger accumulator root, a requirement proved to be intractable by Miranda et al.6184.1000002 This is why in a state-minimized DLPs, PSNs must not only serve light clients a new accumulator root for the new state of the ledger and a corresponding ZKP attesting to the validity of the new state, per peer they are serving they must generate and serve a new inclusion proof per account of interest to said peer. Thus, if we discount the costs associated with proving the validity conditions of the ledger (as this is typically done by peers in the network responsible for actively advancing the state of the ledger such as miners), a full inventory of the costs born by PSNs in a state-minimized DLP may be considered as: 1) Storage costs linear in the size of the AAS 2) Inbound communication costs linear in the transaction throughput of the DLP 3) Compute and outbound communication costs linear in the ledger update frequency and number of accounts of interest among all light clients a PSN serves. While 3) is a variable cost that may be chosen by each PSN according to the number of light clients they wish to serve, the invariance of 1) and 2) in all currently known protocols in practice will present a fairly severe barrier to entry for PSNs in state-minimized DLPs attempting to achieve the previously mentioned “world-scale” throughput. In the effort to reduce this barrier to entry for PNSs in a state-minimized DLP to be arbitrarily low, it is one of the primary goals of Airwalk to provide a state-minimized architecture that allows for 1) and 2) to become a variable cost chosen by the individual PSN according to their particular resource constraints, as well as to minimize the extent to which PSNs must construct and serve unique proofs on a one-to-one basis which each of their served light clients. Unlinkable Blockchains We say that a blockchain is an unlinkable blockchain if it supports unlinkable transactions, which as mentioned in the introduction yields the greatest known degree of privacy obtainable by a DLP. Unlinkable transactions are transactions in which only the recipient accounts are provided publicly to peers in the DLP, with the funding accounts for a transaction being totally obfuscated. This is achieved similarly to the manner in which a PSN proves the validity of a set of transactions with a ZKP, instead the individual users sending transactions create a ZKP attesting to validity of their own transaction, which allows for their transaction to be verified by the protocol without having to publicize its witness data. Similarly to (section x), such a ZKP can prove all but the one-timedness validity conditions for a transaction, however, unlike with state-minimized ledgers, we cannot rely on spent accounts being removed from the ledger to assist in this regard as the entire object of unlinkable blockchains is to make it ambiguous if and when any given account in the ledger has been spent. Instead, we will make use of an accumulator that allows for proofs of non-inclusion and a mechanism known as nullifiers.6184.1000002 Nullifiers The key innovation provided by zerocoin and subsequently zerocash was the concept of nullifiers. A nullifier is often described as a secret unique ‘serial number’ that every account commits to as of its creation, that must be revealed in order for the account to fund a transaction, and once an account has revealed its nullifier it becomes “nullified” and will be unable to fund another transaction. As nullifiers are revealed along with transactions, they are added to a nullifier set, which is a data structure separate from, but critical to the operation of the ledger itself. So long as each account commits to one and only one nullifer, and there may be one and only one of a given nullifier in the nullifier set, this has the result that the one-timedness condition may be verified merely by observing the nullifier set, and not the ledger of accounts. Specifically for nullifier schemes, we may say that the one-timedness condition may be further subdivided into the nullifier commitment condition and the nullifier uniqueness condition. Such a technique allows for unlinkable transactions if the senders are able to create ZKPs attesting to some version of the following statements regarding a given transaction proposing to be added to state N of the ledger: 1) “This transaction satisfies all spend conditions of its funding accounts” (transaction conditions) 2) “All funding accounts for this transaction exist in the ledger as of state N-1” (inheritance conditions). 3) “This set of nullifiers are the nullifiers for each of the funding accounts for this transaction” (one-timedness condition) A ZKP attesting to such a statement may be made with the following IPO tuple: Input: - transaction in question(funding accounts, recipient accounts, witness) - state root of state N-1 - inclusion proofs for all funding accounts to state root - nullifiers of each funding account Program: a checker function corresponding to the process for: - Checking witness to verify that all spend conditions of all funding accounts are satisfied by the transaction - Validating the inclusion proofs for each of the funding accounts to state root N-1 - Checking witness to verify that each funding account has a corresponding nullifier provided in input Output: True (if False, method fails).6184.1000002 In this way, the only public data a translation must provide for it to be validated is a ZKP of this kind, and through the verifiable partial information disclosure method in section x, the following information referenced as being part of the input of the ZKP: 1) The recipient accounts of the transaction 2) The set of nullifers for all funding accounts of the transaction 3) The state root that the transaction is proving inclusion to for each of its funding accounts The validation process for any individual transaction producing recipient accounts in state N of an unlinkable blockchain then is: 1) Verifying that its ZKP is correct and for the correct function. (input-output equality, ownership). 2) Verifying that none of its provided nullifiers existed in the ledgers nullifier set in state N-1, and that no two transactions share the same funding account (one-timedness). 3) Verifying that the state root it provided is state N-1 (inheritance). Note that the ZKP validating each transaction may additionally validate arbitrarily complex contract logic and not just simple signature authentication, as is done by Zexe. However, as with Bitcoin, the only method of validating the state of the ledger as a whole involves validating each and every transaction reflected in the ledger. This is due to the fact that both the ledger and nullifier set are append-only and we remain in the undesirable setting of validation costs of the ledger being linear in the total historical number of transactions. We will now describe a method by which we may achieve validating light clients for unlinkable blockchains through similar means as those obtained for blockchains and state-minimized DLPs, beginning with describing the data structure of a sparse Merkle tree. Sparse Merkle Trees Sparse Merkle trees (SMTs) are Merkle trees but with the added requirements that all elements in the sets they commit to consist of key-value pairs, no two elements may share the same key, and all elements must be stored at an address in the tree according to their key. We say that the address of every node in a Merkle tree is the binary number resulting from translating the series of ‘left turns’ and ‘right turns’ taken on the path from the root down to the node in question as a sequence of 0’s and 1’s constituting the binary number’s digits as shown in fig x. A leaf node in a sparse Merkle tree must be stored at an address equivalent to the first d bits of the binary representation of the element’s key, where d is the depth of the node in the tree (fig x). The key feature enabled by SMTs are supporting proofs of non-inclusion as well as inclusion, which from section x we say make them universal accumulators. Since a given key-value pair must exist in the tree according to its key, then a proof of inclusion of any leaf existing along the path to the address corresponding to a given leaf’s key amounts to a proof that the given leaf does not exist in the SMT (fig x). A universal accumulator is fundamentally mandatory for containing the nullifier set in a recursively6184.1000002 proven unlinkable blockchain, due to the verification of nullifiers being to check that they did not exist in the nullifier set within the previous block. Recursively Proving Unlinkable Blockchains The way in which in we might recursively prove an unlinkable blockchain is similar to what we would use for standard blockchains as in section x, the only differences being the requirement to prove proper functionality of the nullifier set by use of a universal accumulator, and to validate each transaction through verifying its corresponding ZKP. As with traditional blockchains the goal is to be able to provide light clients a block header and a ZKP attesting to the validity of the block. The statements that we wish to prove in this ZKP would be: 1) “This cryptographic accumulator root contains a block of transactions which have been added in the update from state N-1 to state N of the ledger” 2) “The ZKP for each transaction is valid.” 3) “Each transactions nullifiers did not exist in the nullifier set in state N-1” 4) “The Ledger-contained canonicity conditions have been met” The IPO tuple for proving this might be: Input: - block header N-1, - nullifier set root N-1 - ZKP for block N-1 - block header N - all public transaction data for transactions in block N - non-inclusion proofs for all nullifiers of transactions in block N to nullifier set root N-1, proof that block N satisfies ledger-contained canonicity conditions. Program: a function corresponding to the process for: - Validating the ZKP for block N-1 - validating the ZKP for each transaction within block N - Validating the non-inclusion proofs for each nullifier provided by transactions in block N - Validating a proof that block N satisfies the ledger-contained canonicity conditions. Output: True (if False, method fails). From this it should be evident why we required an accumulator supporting proofs of non-inclusion in order to prove the validity of a block of transactions as a whole in an unlinkable blockchain.6184.1000002 While we achieve the same benefits moving from a standard to a recursively proven unlinkable blockchain as we saw with traditional blockchains, it is non-trivial to see how we might make the final step into an unlinkable state-minimized ledger. Challenges with State-Minimized Unlinkable Ledgers The reason why it is not obvious how one would minimize the state of an unlinkable ledger is due to the fact that whether or not a given account on the ledger has been spent is necessarily obfuscated. In the case of standard state-minimized ledgers, accounts are forgotten by the protocol by being spent, and if we were to employ the same naive method with an unlinkable ledger, then the anonymity set of possible funding accounts for each recipient account would only be equal to number of funding account to all transactions within a single state update. Furthermore, since the role of nullifiers is in preventing accounts from double-spending, it may not be immediately evident how one would forget nullifiers without allowing for accounts to spend more than once. It is a primary goal of Airwalk to allow for these problems to be solved and to provide an architecture that supports both unlinkable transactions and state-minimization. Airwalk Protocol Design Covenant-Addressed State Tree The ledger of Airwalk follows the design pattern of a state-minimized ledger as described in section x in being a dynamic ledger contained within a dynamic cryptographic accumulator, whose validity is6184.1000002 recursively proven via ZKPs. Where Airwalk differs from the previously described scheme is that the accumulator used is also universal and so supports proofs of non-inclusion. The accumulator employed by Airwalk is a Sparse Merkle Tree, which we refer to as a Covenant-Addressed State Tree (CAST). The leaves of the CAST are the individual accounts of the ledger, and the key by which they are indexed in the tree is a unique identifier called a name, which as the name of the CAST may suggest is also a commitment to a covenant satisfied by the account. (fig x). This simple and seemingly obvious pattern is the heart of Airwalk’s value provisions. It is what allows for state-minimization and unlinkable transactions. It enables client-side sharding to maximize accessibility to PSNs to the degree that the difference between a PSN and a light client is quantitative and not qualitative. It provides the necessary framework for smart contracts with “full state introspection”, and as we will see, it suggests itself as a silver bullet to a host of extremely difficult problems in decentralized computing such as payment channel watchtowers and even Named Data Networking. While the CAST itself is the primary source of power for Airwalk, the use of a content-addressed merkle tree for a blockchain is fairly obvious and not at all novel. The Name-Based Covenant (NBC) system that enables the CAST’s efficacy however, is in our opinion entirely novel and non-obvious. We will now describe how NBCs may be used to create and verify transactions within Airwalk. Name-Based Covenants The use of a universal accumulator for the ledger itself allows for Airwalk DLPs to forgo nullifiers as separate data objects from accounts, and thus the nullifier set as being a separate data object from the ledger. Rather than having each account commit to a nullifier upon its creation, each account commits instead to the name and number of its children, an account’s children meaning the exact set of recipient accounts for the transaction that it will fund in the future. We call an account’s value that commits to its future child accounts its gene. The result of this is that so long as the ledger enforces the uniqueness of these account names, and that no account fund a transaction whose recipient accounts are not exactly the names of the children it committed to, accounts themselves may serve as nullifiers for their parent accounts. The uniqueness of these account names is enforced through enforcing the correct behavior of a sparse Merkle tree, since these names are the keys by which accounts are indexed. While this scheme of committing in advance to the exact recipient accounts has the downside of a lack of a certain amount of flexibility, techniques of this kind have precedent in covenant schemes, and indeed with Airwalk these names serve the basis of what we refer to as Name-Based Covenants. Recall that a covenant scheme is a technique for achieving smart contract functionality in a one-time account setting, by allowing for accounts as of their creation to commit to spend conditions whose scope includes the recipient accounts of a future transaction they fund, rather than a simple lock-type spend condition that is only opinionated as to whether and not how an account may be spent. Perhaps the most well-known of such schemes is the OP_checktemplateverify (CTV) covenant proposal of Jeremy Rubin for Bitcoin. With6184.1000002 CTV, a UTXO (account) may commit to a hash of each of its child accounts, which means that due to the nature of hash functions, an account must commit to everything about its children in advance. In contrast to this, an account’s name is not a cryptographic commitment to the account itself, rather an account’s name is a cryptographic commitment to a program that must return true when passed the account as input for it to be considered valid. Unlinkable transactions notwithstanding, this turns out to be an extremely powerful and ergonomic way of providing smart-contract functionality, as we will see in section x. Ubiquitous use of NBCs As mentioned in section x, it is sometimes possible and desirable to enforce all transaction conditions through enforcing the contract condition, if a covenant system with sufficient expressive power and scope is employed. This is the approach taken by Airwalk, which enforces all transaction conditions through the use of NBCs. More specifically, in Airwalk, a transaction is said to satisfy transaction conditions if the program corresponding to the name for each of its recipient accounts returns true when passed as input to the corresponding accounts. We will hereafter refer to this as accounts satisfying their covenants. Since we wish to achieve unlinkable transactions, this validity ought to be able to be proven to the ledger via a ZKP made by the creator of a transaction, which may prove the validity of a transaction while obfuscating its funding accounts. We separate this proving process into two distinct proofs, an inner proof, and an outer proof. A transaction’s inner proof proves that the transaction satisfies all transaction conditions. In other words, a transaction's inner proof convinces a verifier of the statement: “given this set of funding accounts, this set of recipient accounts are valid”. An outer proof proves that a transaction satisfies the inheritance condition, and recursively proves the transaction’s inner proof. A transaction’s outer proof convinces a verifier of the statement: “all of this transaction’s funding accounts exist in state N of the ledger, and its inner proof is valid”. As a result, while the checker function proven by the inner proof need only have scope of the individual transaction being proven (set of funding accounts, witness, set of recipient accounts), the checker function proven by the outer proof must extend its scope to the ledger itself in order to prove inclusions of a transactions funding accounts within the ledger. The reason for the distinction comes down to race conditions for proof-making before the next state update, which is explored in detail in section x. We will now describe the process by which these proofs may be made, beginning with a few definitions: Airwalk Accounts Airwalk accounts consists of the following: - Name: An account’s name as previously mentioned is a value that its parent committed to upon their creation in order for them to be able to fund it in the future, the hash of a program that must6184.1000002 return true when passed itself as input for it to be valid, and the key by which it is indexed inside of the CAST. - Inputs: An account’s inputs consists of a set of data fields corresponding to each of its parent accounts, namely: - Reference. A reference to one of the account’s parents - Transfer. A set of assets transferred from the referenced parent to the account - Authorization. A proof that the account was authorized to be created as it was by the referenced parent. - Gene: An account’s gene as previously mentioned is the commitment to the name and number of its children, we will use this term hereafter when discussing Airwalk instead of spend condition although a gene does technically satisfy our prior definition of spen...
Claims
6184.1000002 CLAIMS What is claimed is:
1. A computer-based system for state minimization and unlinkable transactions, the computer-based system comprising: a zero-knowledge virtual machine (VM); a state-minimized decentralized ledger including multiple blocks, the state-minimized decentralized ledger configured as a dynamic cryptographic accumulator implementing a decentralized ledger protocol; and a blockchain computer network including multiple nodes, at least one of the multiple nodes configured to execute a zero-knowledge verifier system, the zero-knowledge verifier system configured to: via the zero-knowledge virtual machine (VM): verify a block of the multiple blocks based on (i) a block header of the block and (ii) at least one zero-knowledge proof (ZKP) of the multiple blocks, the block associated with an electronic transaction; and recursively verify a corresponding zero-knowledge proof (ZKP) of at least one predecessor block of the block; generate an unlinkable transaction by obfuscating a correlation between a source node of the multiple nodes and a destination node of the multiple nodes, the source node and the destination node associated with the electronic transaction; and validate the electronic transaction by verifying a zero-knowledge proof (ZKP) corresponding to the generated unlinkable transaction, the zero-knowledge proof (ZKP) configured to attest to (i) correctness of the generated unlinkable transaction and (ii) satisfaction of smart contract logic associated with a digital wallet.
2. The computer-based system of Claim 1, wherein the dynamic cryptographic accumulator includes a sparse Merkle tree. - 123 - 3906796.v16184.1000002 3. The computer-based system of Claim 2, wherein the state-minimized decentralized ledger is configured to computationally index at least one leaf of the sparse Merkle tree based on at least one content predicate.
4. The computer-based system of any one of Claims 1-3, wherein the dynamic cryptographic accumulator is configured to perform a non-inclusion proof.
5. The computer-based system of any one of Claims 1-4, wherein the digital wallet is a first digital wallet, and wherein the zero-knowledge verifier system is further configured to: implement a binding between a second digital wallet and a smart contract, the smart contract including at least one covenant module configured to apply a conditional constraint to at least one future transaction associated with the second digital wallet.
6. The computer-based system of any one of Claims 1-5, wherein the digital wallet is a first digital wallet, and wherein the zero-knowledge verifier system is further configured to: determine a state penalty value for a second digital wallet corresponding to the destination node, the state penalty value associated with a state entry for the second digital wallet in the state-minimized decentralized ledger; and responsive to receiving a state trim request from the destination node, computationally purge the state entry in the state-minimized decentralized ledger.
7. The computer-based system of any one of Claims 1-6, wherein: the at least one of the multiple nodes includes a secure cryptoprocessor implemented as a dedicated microprocessor configured to execute the zero-knowledge verifier system; and the zero-knowledge verifier system is embedded on the secure cryptoprocessor.
8. A computer-implemented method for state minimization and unlinkable transactions, the computer-implemented method comprising: via a zero-knowledge virtual machine (VM): verifying a block of multiple blocks of a state-minimized decentralized ledger based on (i) a block header of the block and (ii) at least one zero- knowledge proof (ZKP) of the multiple blocks, the block associated with an - 124 - 3906796.v16184.1000002 electronic transaction, the state-minimized decentralized ledger configured as a dynamic cryptographic accumulator implementing a decentralized ledger protocol; and recursively verifying a corresponding zero-knowledge proof (ZKP) of at least one predecessor block of the block; generating an unlinkable transaction by obfuscating a correlation between a source node of multiple nodes of a blockchain computer network and a destination node of the multiple nodes, the source node and the destination node associated with the electronic transaction; and validating the electronic transaction by verifying a zero-knowledge proof (ZKP) corresponding to the generated unlinkable transaction, the zero-knowledge proof (ZKP) configured to attest to (i) correctness of the generated unlinkable transaction and (ii) satisfaction of smart contract logic associated with a digital wallet.
9. The computer-implemented method of Claim 8, further comprising: configuring the dynamic cryptographic accumulator with a sparse Merkle tree.
10. The computer-implemented method of Claim 9, further comprising: computationally indexing at least one leaf of the sparse Merkle tree based on at least one content predicate.
11. The computer-implemented method of any one of Claims 8-10, further comprising: configuring the dynamic cryptographic accumulator to perform a non-inclusion proof.
12. The computer-implemented method of any one of Claims 8-11, wherein the digital wallet is a first digital wallet, and further comprising: implementing a binding between a second digital wallet and a smart contract, the smart contract including at least one covenant module configured to apply a conditional constraint to at least one future transaction associated with the second digital wallet.
13. The computer-implemented method of any one of Claims 8-12, wherein the digital wallet is a first digital wallet, and further comprising: - 125 - 3906796.v16184.1000002 determining a state penalty value for a second digital wallet corresponding to the destination node, the state penalty value associated with a state entry for the second digital wallet in the state-minimized decentralized ledger; and responsive to receiving a state trim request from the destination node, computationally purging the state entry in the state-minimized decentralized ledger.
14. A computer-based system for tree encoding and decoding, the computer-based system comprising: at least one processor; and a memory with computer code instructions stored thereon, the at least one processor and the memory, with the computer code instructions, configured to cause the computer-based system to: execute an encoder, the encoder configured to transform a first incomplete binary ordered tree data structure into a first tree encoding based on an encoding scheme, the first tree encoding including a first Dyck word and a first leaf vector, the encoding scheme capable of representing an arbitrary potentially incomplete binary ordered tree data structure in terms of a Dyck word and a leaf vector; and execute a decoder, the decoder configured to transform a second tree encoding into a second incomplete binary ordered tree data structure, the second tree encoding including a second Dyck word and a second leaf vector, by: traversing the second tree encoding; and incrementally parsing the second leaf vector.
15. The computer-based system of Claim 14, wherein: the decoder is further configured to generate a subtree data structure based on a subtree index variable.
16. The computer-based system of any one of Claims 14-15, further comprising: a virtual machine (VM) configured with a potentially incomplete ordered tree based memory model; wherein: - 126 - 3906796.v16184.1000002 the virtual machine (VM) is further configured with the encoding scheme; and the virtual machine (VM) is further configured with at least one of the encoder and the decoder.
17. The computer-based system of any one of Claims 14-16, further comprising: a cryptographic proof system configured to, based on the encoding scheme, represent a first statement of computational integrity in terms of polynomials defined over finite fields, the first statement of computational integrity relating to at least one of traversal and modification of at least one potentially incomplete binary ordered tree data structure.
18. The computer-based system of Claim 17, wherein: the cryptographic proof system is further configured to, based on the encoding scheme, verify a second statement of computational integrity, the second statement of computational integrity (i) being in terms of polynomials defined over finite fields and (ii) relating to at least one of traversal and modification of at least one potentially incomplete binary ordered tree data structure.
19. The computer-based system of any one of Claims 14-18, wherein: the encoder is further configured to process a polynomial-based representation of a computational integrity statement, the polynomial-based representation being associated with a zero-knowledge proof (ZKP) system.
20. The computer-based system of Claim 19, wherein: the zero-knowledge proof (ZKP) system is at least one of a STARK (Scalable Transparent Arguments of Knowledge) based system and a SNARK (Succinct Non- Interactive Arguments of Knowledge) based system. - 127 - 3906796.v1
