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

Smart contract processing method and device and computer readable storage medium

A technology of smart contracts and processing methods, which is applied in the blockchain field to achieve the effect of seamless migration

Pending Publication Date: 2019-08-09
PUHUA YUNCHUANG TECH (BEIJING) CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

To this end, an object of the present invention is to propose a smart contract processing method to solve the problems of seamless migration of smart contracts in different blockchains, cross-language compatibility of contracts, and reduced contract development costs

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
  • Smart contract processing method and device and computer readable storage medium
  • Smart contract processing method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] figure 1 It is a flow chart of the smart contract processing method of the embodiment of the present invention.

[0032] Such as figure 1 As shown, the smart contract processing method includes the following steps:

[0033] S1, detect the smart contract code to obtain the type of the smart contract code and the target code type.

[0034] Specifically, by detecting the type of smart contract code, the type of smart contract code and the type of code to be converted (ie, the type of target code) can be obtained, thereby providing the required data for subsequent modeling.

[0035] S2, modeling according to the type of smart contract code and the type of target code to generate abstract interfaces and patterns.

[0036] Specifically, according to the type of smart contract code and the type of target code, some abstract interfaces and objects can be generated to provide services for subsequent code conversion.

[0037] S3, analyze the smart contract code to separate th...

Embodiment 2

[0051] figure 2 It is a structural block diagram of the smart contract processing device of the embodiment of the present invention.

[0052] Such as figure 2 As shown, the smart contract processing device 100 includes: a detection module 110 , a modeling module 120 , a code analysis module 130 , a symbol analysis module 140 , a code conversion module 150 and a code output module 160 .

[0053] In the embodiment of the present invention, the detection module 110 is used to detect the smart contract code to obtain the type of the smart contract code and the type of the target code.

[0054] Specifically, by detecting the type of smart contract code through the detection module 110, the type of smart contract code and the type of code to be converted (ie, the type of target code) can be obtained, thus providing modeling for the subsequent modeling module 120 data needed.

[0055] The modeling module 120 is used to perform modeling according to the type of smart contract cod...

Embodiment 3

[0071] The present invention also proposes a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above smart contract processing method is realized.

[0072] The computer-readable storage medium of the embodiment of the present invention, when the computer program corresponding to the above-mentioned smart contract processing method stored thereon is executed by the processor, can realize the conversion of the smart contract code of any block chain into the target code type, This solves the problems of seamless migration of smart contracts in different blockchains, cross-language compatibility of contracts, and reduced contract development costs.

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 an intelligent contract processing method and device and a computer readable storage medium, and the method comprises the steps: carrying out the detection of an intelligent contract code, so as to obtain the type of the intelligent contract code and a target code type; performing modeling according to the type of the smart contract code and the type of the target code to generate an abstract interface and mode; analyzing the smart contract code to separate the service code from the language characteristic of the smart contract code; analyzing the language characteristics in a symbol analysis mode to obtain a syntax tree of the intelligent contract code; converting the syntax tree of the smart contract code into a target syntax tree code by using a code conversion framework, and generating a target code of the smart contract according to the target syntax tree code, the service code, the abstract interface and the mode; and outputting the target code of the smart contract. The processing method can solve the problems of seamless migration of intelligent contracts of different block chains, contract cross-language compatibility and contract development cost reduction.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a smart contract processing method, a smart contract processing device and a computer-readable storage medium. Background technique [0002] In the world of computer languages, the communication between different languages ​​is too poor. For example, code written in Java, such as functions, modules, frameworks, etc., needs to be rewritten if it is used in a Go application environment. Although code written in C language can be used in some individual language environments, there are not many such languages. [0003] According to the principle of trade, assuming that the cost of producing a commodity in place A is lower than that in place B, then if the product is shipped from place A to place B for sale, more money will be made. In the same way, in the computer language world, if you can use ready-made functions, modules, and frameworks, you usually don't redevelop ...

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): G06F8/41G06Q40/04
CPCG06F8/427G06F8/43G06Q40/04
Inventor 翟红鹰
Owner PUHUA YUNCHUANG TECH (BEIJING) 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