Unlock instant, AI-driven research and patent intelligence for your innovation.

Smart contract classification method and device

A technology of smart contracts and classification methods, applied in semantic analysis, instruments, software maintenance/management, etc., can solve the problems of low accuracy of smart contract classification results, inability to effectively understand the logical behavior of smart contracts, etc., to achieve the effect of improving accuracy

Active Publication Date: 2021-06-25
SUN YAT SEN UNIV
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This application provides a smart contract classification method and device, which are used to solve the technical problem that the existing technology cannot effectively understand the relevant logical behavior of smart contracts, resulting in low accuracy of smart contract classification results

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 classification method and device
  • Smart contract classification method and device
  • Smart contract classification method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] For ease of understanding, see figure 1 , Embodiment 1 of a smart contract classification method provided by this application, including:

[0046] Step 101. Obtain user-defined data and transaction characteristic data of target transaction data respectively.

[0047] Due to the high degree of repetition of the key code of the smart contract, only extracting key features from the smart contract code cannot accurately reflect the actual logical behavior of the smart contract, and cannot achieve a more complete and comprehensive analysis. In addition, the embedded text in the smart contract contains many user-defined key information, which can directly reflect the design concept of the smart contract. Therefore, in the embodiment of the present application, data expression methods at different levels are used to understand and analyze the semantics of the target transaction data, which can effectively enhance the logical behavior expression ability of the smart contract. ...

Embodiment 2

[0059] For ease of understanding, see figure 2 , the present application provides a second embodiment of a smart contract classification method, including:

[0060] Step 201. Obtain the target transaction data corresponding to the target contract on Ethereum by matching the blockchain information of the smart contract.

[0061] Step 202. Obtain user-defined data and transaction feature data of the target transaction data respectively.

[0062] The blockchain information includes information such as the blockchain number and the hash code of the blockchain. By matching the relevant data information on the Ethereum according to the blockchain information, the target transaction data corresponding to different smart contracts can be obtained. The target transaction data Contains user-defined data and transaction characteristic data.

[0063] User-defined data is the user-input data stored on Ethereum, which is the note text information entered by the user when writing the cont...

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 classification method and device. The method comprises the following steps: respectively obtaining user-defined data and transaction feature data of target transaction data; performing word feature extraction on the semantic text vector obtained by decrypting the user-defined data by adopting a preset feature extraction model to obtain a word embedding vector; constructing a transaction feature vector according to key features in the transaction feature data; fusing the word embedding vector and the transaction feature vector into a contract feature vector; and inputting the contract feature vector into a preset XGboost classification model for legality classification to obtain an intelligent contract classification result. The technical problem that the accuracy of the classification result of the smart contract is low due to the fact that related logic behaviors of the smart contract cannot be effectively understood in the prior art can be solved.

Description

technical field [0001] The present application relates to the technical field of semantic classification, in particular to a smart contract classification method and device. Background technique [0002] Blockchain is the technical premise of cryptocurrency circulation, which ensures the invariance of transaction data. The emergence of Ethereum has opened the blockchain 2.0 era. All transactions can be established in the distributed application of the blockchain. On Ethereum, transactions are not only transfers before encrypted digital currencies, but also smart contracts. Create and invoke. As a core component of Ethereum, a smart contract is essentially a piece of code that can be executed according to pre-specified conditions. During the writing of smart contracts, users can customize and call some complex logic. It is precisely because of these properties of smart contracts that users who master contract programming languages ​​can embed text information into written c...

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/70G06Q40/04G06F40/30
CPCG06F8/70G06Q40/04G06F40/30
Inventor 郑子彬丁湲珺陈伟利
Owner SUN YAT SEN UNIV