Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data processing method and system based on blockchain smart contract

A smart contract and data processing technology, applied in the information field, can solve problems such as not supporting JSON processing operations by default

Active Publication Date: 2019-07-23
ADVANCED NEW TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that the existing Ethereum virtual machine does not support JSON processing operations by default, the embodiment of this specification provides a data processing method and system based on blockchain smart contracts. The technical solution is as follows:

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and system based on blockchain smart contract
  • Data processing method and system based on blockchain smart contract
  • Data processing method and system based on blockchain smart contract

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0088] figure 1 It is a schematic flow chart of a coding method based on a blockchain smart contract provided by the embodiment of this specification, including the following steps:

[0089] S100: A node in the blockchain network obtains a business and initiates a transaction and broadcasts it to other nodes.

[0090] S102: For each node in the blockchain network, when executing the business initiation transaction, the node invokes the business smart contract through the blockchain virtual machine.

[0091] S104: The node uses the blockchain virtual machine to trigger the execution of the BASE64 encoding logic according to the BASE64 encoding instruction in the business smart contract, so as to perform an encoding operation on the data to be encoded.

[0092] In this embodiment, it is necessary to pre-configure the blockchain network so that:

[0093] 1) The instruction set of the blockchain virtual machine includes BASE64 encoded instructions, and the blockchain virtual mac...

Embodiment 2

[0109] figure 2 It is a schematic flowchart of another coding method based on blockchain smart contracts provided by the embodiment of this specification, including the following steps:

[0110] S200: A node in the blockchain network obtains a service and initiates a transaction and broadcasts it to other nodes.

[0111] S202: For each node in the blockchain network, when executing the business initiation transaction, the node invokes the business smart contract through a blockchain virtual machine.

[0112] S204: The node invokes the BASE64-encoded smart contract through the blockchain virtual machine according to the contract identifier of the BASE64-encoded smart contract in the business smart contract.

[0113] S206: The node uses the blockchain virtual machine to trigger the execution of the BASE64 encoding logic according to the BASE64 encoding instruction in the BASE64 encoding smart contract, so as to perform an encoding operation on the data to be encoded.

[0114]...

Embodiment 3

[0122] image 3 It is a schematic flow chart of a coding method based on a blockchain smart contract provided by the embodiment of this specification, including the following steps:

[0123] S300: A node in the blockchain network obtains a service and initiates a transaction and broadcasts it to other nodes.

[0124] S302: For each node in the blockchain network, when executing the business initiation transaction, the node invokes the business smart contract through a blockchain virtual machine.

[0125] S304: The node uses the blockchain virtual machine to trigger the execution of the BASE64 decoding logic according to the BASE64 decoding instruction in the business smart contract, so as to decode the data to be decoded.

[0126] In this embodiment, it is necessary to pre-configure the blockchain network so that:

[0127] 1) The instruction set of the blockchain virtual machine includes BASE64 decoding instructions, and the blockchain virtual machine is deployed with BASE64...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data processing method and system based on a blockchain smart contract. In the embodiment of the invention, on one hand, a JSON processing instruction is defined and added into an instruction set of a block chain virtual machine, and JSON processing logic corresponding to the JSON processing instruction is deployed in the block chain virtual machine; and on the other hand, the defined JSON processing instruction needs to be added to an instruction set of the intelligent contract compiler, so that the business intelligent contract compiled by the intelligent contract compiler contains the JSON processing instruction. Therefore, if the business intelligent contract is deployed in the block chain network, the user can simultaneously assign and call the business intelligent contract to execute the business initiation transaction when constructing the business initiation transaction.

Description

technical field [0001] The embodiments of this specification relate to the field of information technology, and in particular to a data processing method and system based on blockchain smart contracts. Background technique [0002] At present, by deploying smart contracts in the blockchain network based on the Ethereum protocol, various online business needs can be met. [0003] In practice, for some business needs, each node in the blockchain network needs to perform JS object notation (JavaScript Object Notation, JSON) data processing operations when calling the smart contract corresponding to the business demand through the Ethereum virtual machine to execute the transaction . Among them, JSON is a common data exchange format, and JSON data is data in this data exchange format. [0004] However, the existing EVM does not support the processing of JSON data. Contents of the invention [0005] In order to solve the problem that the existing Ethereum virtual machine doe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q40/04
CPCG06Q40/04G06Q30/06G06Q40/00G06Q2220/00G06F8/00G06F9/44H04L2209/56H04L9/3249H04L9/3239H04L63/12H04L9/50G06Q20/0658G06Q20/3825G06Q20/405H04L9/3247
Inventor 谢桂鲁
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products