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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com