A Smart Contract Similarity Detection Method Based on Syntax Tree Matching
A technology of smart contracts and detection methods, applied in unstructured text data retrieval, text database query, instruments, etc., to achieve good expansibility and reference significance, improve accuracy and efficiency, good versatility and practical value
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0037] In order to describe the present invention more specifically, the technical solutions of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0038] The invention detects the similarity of smart contract source code based on syntax tree matching, captures the syntax information of smart contracts by means of an abstract syntax tree extraction tool, uses the attention mechanism of the encoder to obtain the semantic information of each node in the syntax tree, and finally extracts the syntax of the smart contract The high semantic feature vector of the tree, the feature vector is used as the input of the similarity calculation function to obtain the similarity value between different syntax trees, and the similarity detection result of the two pieces of smart contract source code is obtained by the method of averaging. The process is as follows figure 1 shown.
[0039] like figure 2 As shown, the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


