Blockchain Accelerated Instructions via Side Chain Execution
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The high gas fees associated with executing complex algorithms like zero-knowledge proofs, homomorphic encryption, and deep learning on blockchain systems hinder the expansion of services and reduce competitiveness.
Innovation Solution
A method is introduced to execute accelerated instructions in a blockchain system by utilizing a virtual machine to call a second smart contract, which requests execution of an algorithm from sub-nodes or side chain nodes, and returns the execution result, thereby reducing gas fees.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If complex algorithms (zero-knowledge proofs, homomorphic encryption, deep learning) are executed directly on the blockchain, then service functionality is provided, but gas fees become excessively high
Solution Approach 1:
The system divides the execution environment into two segments: the blockchain (Layer 1) and side chains (Layer 2). Complex algorithms are executed on side chains with dedicated virtual machines, while the main blockchain only handles transaction coordination and result verification. This segmentation allows complex services to run without burdening the main chain with high gas fees.
Solution Approach 2:
Side chains act as intermediary layers between users and the main blockchain. The side chain virtual machines execute complex algorithms locally, then submit only the results or proofs back to the main chain. This intermediary structure eliminates the need for the main blockchain to directly execute resource-intensive operations.
2Productivity
If more instructions are executed in smart contracts, then more complex services are provided, but gas fees increase
Solution Approach 1:
The system adds a vertical dimension to the blockchain architecture by introducing side chains at Layer 2. Instead of horizontally expanding service complexity on the main chain (which increases gas fees), complex operations are moved to a different layer (side chains) that has separate execution resources and pricing mechanisms.
3Reliability
If zero-knowledge proof services are implemented, then privacy and security are improved, but gas fees become prohibitively high
Solution Approach 1:
The computationally intensive zero-knowledge proof generation process is extracted from the main blockchain and relocated to side chain virtual machines. The main blockchain only needs to verify the proofs submitted by side chains, which is much less resource-intensive. This extraction maintains privacy and security while dramatically reducing gas fees.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
Disclosed is a method of executing an accelerated instruction in a blockchain system. The method includes executing, by a virtual machine on a blockchain network, a first smart contract, calling, by the first smart contract, a second smart contract related to the accelerated instruction, requesting, by the second smart contract, execution of a first algorithm related to the accelerated instruction from one or more sub-nodes, acquiring, by the second smart contract, an execution result of the first algorithm from the one or more sub-nodes, and returning, by the second smart contract, the execution result of the first algorithm to the first smart contract.