Blockchain Virtual Machine JSON Processing via Smart Contract Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The Ethereum virtual machine does not support JSON data processing operations, limiting the functionality of smart contracts in blockchain networks based on the Ethereum protocol.
Innovation Solution
Incorporating a JSON processing instruction into the blockchain virtual machine's instruction set and deploying corresponding JSON processing logic, along with adding the JSON processing instruction to the smart contract compiler's instruction set, enables nodes in the blockchain network to perform JSON processing operations by invoking the JSON processing smart contract.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the Ethereum virtual machine is used to execute smart contracts, then the blockchain network can process transactions, but it cannot perform JSON data processing operations
Solution Approach 1:
The patent segments the JSON processing functionality into separate JSON processing smart contracts that can be independently deployed and invoked. The virtual machine instruction set remains unchanged, while JSON processing capabilities are provided through modular smart contract components that handle specific JSON operations like parsing, generating, and validating data.
Solution Approach 2:
The patent introduces JSON processing smart contracts as intermediary components between the Ethereum virtual machine and JSON data. These smart contracts act as mediators that translate JSON processing requirements into Ethereum-compatible operations, enabling JSON data processing without modifying the core virtual machine architecture.
2Adaptability or versatility
If JSON processing functionality is added to the blockchain virtual machine, then the blockchain network gains JSON processing capability, but the complexity of the virtual machine increases
Solution Approach 1:
The patent extracts JSON processing functionality from the core virtual machine architecture and implements it as separate, optional smart contracts. This allows the virtual machine to remain simple and unchanged while JSON processing capabilities are made available through independently deployable contracts that can be invoked when needed.
Solution Approach 2:
The patent creates universal JSON processing smart contracts that can handle multiple JSON operations (parsing, generating, validating, transforming) through a single standardized interface. These multi-functional contracts provide comprehensive JSON processing capabilities without requiring separate specialized contracts for each operation type.
3Adaptability or versatility
If the Ethereum virtual machine processes JSON data, then smart contracts can handle structured data, but the execution efficiency may decrease due to additional processing overhead
Solution Approach 1:
The patent implements preliminary JSON data validation and structuring operations through smart contracts before main transaction execution. By performing JSON processing upfront and caching results where applicable, the system reduces the computational overhead during critical transaction execution phases, improving overall execution efficiency.
Data Source
AI summary
This disclosure relates to blockchain smart contract-based data processing. In one aspect, a method includes obtaining, by a node in a blockchain network in which a service smart contract is deployed, a service initiation transaction. The service initiation transaction is broadcast to other nodes. While executing the service initiation transaction, the service smart contract is invoked using a blockchain virtual machine that includes a first instruction set comprising a data exchange instruction and processing logic corresponding to the data exchange instruction. The node triggers execution of the processing logic based on the data exchange instruction in the service smart contract using the blockchain virtual machine, thereby performing a data exchange processing operation on data to be processed. A second instruction set of a smart contract compiler includes the data exchange instruction. The service smart contract is compiled using the smart contract compiler and includes the data exchange instruction.


