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

A smart contract classification method and device

A technology of smart contracts and classification methods, applied in semantic analysis, data processing applications, finance, 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: 2022-02-08
SUN YAT SEN UNIV
View PDF6 Cites 0 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
  • A smart contract classification method and device
  • A smart contract classification method and device
  • A 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 repetition of key codes of smart contracts, only extracting key features from smart contract codes cannot accurately reflect the actual logical behavior of smart contracts, 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.

[0048] The target t...

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 present application discloses a method and device for classifying smart contracts. The method includes: separately obtaining user-defined data and transaction feature data of target transaction data; Feature extraction to get the word embedding vector; construct the transaction feature vector according to the key features in the transaction feature data; fuse the word embedding vector and the transaction feature vector into the contract feature vector; input the contract feature vector into the preset XGboost classification model for legal classification , to get the smart contract classification result. This application can 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.

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 Patents(China)
IPC IPC(8): G06F8/70G06Q40/04G06F40/30
CPCG06F8/70G06Q40/04G06F40/30
Inventor 郑子彬丁湲珺陈伟利
Owner SUN YAT SEN UNIV