{"title": "Wholesum network", "logoImg": "bafkreidgyqege5ycjesouvx2p3pp2j6xrpr3ys6o2zaxl4rctkqvvnyzce", "website": "https://github.com/WholesumNet", "createdAt": 1721897947721, "userGithub": "rezahsnz", "credentials": {"github": {"type": ["VerifiableCredential"], "proof": {"jws": "eyJhbGciOiJFZERTQSIsImNyaXQiOlsiYjY0Il0sImI2NCI6ZmFsc2V9..qC2TDkM0CjYCijtuQ1XhEqg0HJtMkgiQbjhmIM7vt6EIqzmWXOY_krsE4Bk2TWY-EUaDDq68FqscpQKmYvrWBw", "type": "Ed25519Signature2018", "created": "2024-07-25T08:47:01.418Z", "proofPurpose": "assertionMethod", "verificationMethod": "did:key:z6MkghvGHLobLEdj1bgRLhS4LPGJAvbMA1tn2zcRyqmYU5LC#z6MkghvGHLobLEdj1bgRLhS4LPGJAvbMA1tn2zcRyqmYU5LC"}, "issuer": "did:key:z6MkghvGHLobLEdj1bgRLhS4LPGJAvbMA1tn2zcRyqmYU5LC", "@context": ["https://www.w3.org/2018/credentials/v1"], "issuanceDate": "2024-07-25T08:47:01.417Z", "expirationDate": "2024-10-23T08:47:01.417Z", "credentialSubject": {"id": "did:pkh:eip155:1:0x85f5a4e1fC4F44a014B940a224dDe22D6E73F2DC", "hash": "v0.0.0:u3xJ5PJ6jClIE2k2ybZluP5ihvhdOuL57h234WEESnQ=", "@context": [{"hash": "https://schema.org/Text", "provider": "https://schema.org/Text"}], "provider": "ClearTextGithubOrg#WholesumNet#41541710"}}}, "description": "TLDR; Risc0 zkVM proving on computationally weak nodes of Swarm.\nA full note is also available here:\nhttps://github.com/WholesumNet/docs/blob/main/parallelization/parallelized-proving/report.pdf\n\nOverview\n\nProving zkVM programs is a computationally intensive task and requires capable hardware(e.g. RTX 4090 GPUs, Intel Xeons, ...). Owning such hardware is not feasible for everyone. So, if one is serious about the verifiable computing, she has to either rely on centralized providers(e.g. AWS instances) or start her own prove-maxi network. Centralization has its own drawbacks, so better to focus on decentralized options instead. To meet the compute needs of clients and serve proving jobs, one would need a network of provider PCs whose hardware specs are maxed-out. Getting such a network of expensive gadgets up, however, requires a complex set of incentives to keep the nodes busy. This application entry deviates from the usual solutions and proposes a parallel proving scheme to execute zkVM programs on computationally weak nodes usually found in decentralized storage networks(dStorage from now on). Here the focus is on `Risc0` as a tool used for creating zkVM programs, and `Swarm` as an example p2p network that has thousands of relax-specced nodes serving their storage space. \n\nWe seek 3 goals with proving on weak machines: \n\n    1) tap on the compute potential of usually idle storage nodes.\n     2) derive up resource utilization of nodes to 99%.\n     3) focus on weak nodes as forming a network off them is straightforward.\n\nObservation shows that nodes of Swarm network, for instance, are idle half of their time. This brings up an interesting opportunity to think about tapping on that pool of idleness. But the idea quickly fades as proving is only feasible on strong PCs. The solution is to divide the task and prove individual sub-tasks parallely. Risc0 allows for the programs building on top of its SDK, to customize the degree to which proving stresses the hardware. The customization follows the natural limitation set by the finite fields used for generating proofs. As you may already know, Risc0 uses STARKs for proof generation and it has to stay efficient while mathematically consistent for yielding provable programs. This forces Risc0 to choose fields whose ability to generate proofs is capped at a certain number of operations(16.78M as of today). But real world programs are larger and so Risc0 team had to find a way to make proving of infinitely size programs possible. This unfortunate(or fortunate in our case) limitation enables dividing a zkVM program into several items(called segments in Risc0 jargon) and proving them one by one. The final proof is then obtained by aggregating individual proofs. We have run experiments and have found out that by customizing the segment size to ranges that make proving possible on systems with 4-8GB of memory, we can capitalize on available stock hardware and prove zkVM programs in a parallel manner while keeping the overhead manageable. This gotcha seems to eliminate the need for forming a network off elite PCs.\n\nOur goal is to close on in/beat 2 minutes finality of Linea sequencer's prover!", "logoImgData": {}, "projectGithub": "WholesumNet", "projectTwitter": "WholesumNet"}