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

Intelligent contract function similarity sorting method and system, and storage medium

A technology of smart contracts and sorting methods, applied in the field of information processing, can solve problems such as low efficiency, inaccurate recommendation results, and different results, achieve the effect of accurate similarity and improve writing efficiency

Active Publication Date: 2020-05-15
SOUTH CHINA NORMAL UNIVERSITY
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, code recommendations are usually sorted according to the similarity of smart contract functions. However, there are two main problems in the current method of sorting functions by similarity. One is that the efficiency is relatively low, and the other is that only syntax or semantics are often considered. One aspect of the contract, without comprehensive consideration, and only sorting the commonly used languages ​​and frameworks, without discussing the smart contract scenario, but in fact, if only the grammatical structure is considered, even if the grammatical structure of the two contract functions is very similar, There may also be completely different information and applicable scenarios between the two.
Therefore, in fact, the recommendation results are inaccurate and have no practical reference value for programmers. As a result, programmers still need to write by themselves and find out the cause of code bugs by themselves, which is not conducive to improving writing efficiency.

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
  • Intelligent contract function similarity sorting method and system, and storage medium
  • Intelligent contract function similarity sorting method and system, and storage medium
  • Intelligent contract function similarity sorting method and system, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The present invention will be further explained and illustrated below in conjunction with the drawings and specific embodiments of the specification. For the step numbers in the embodiments of the present invention, they are set only for ease of explanation, and there is no limitation on the order between the steps. The execution order of the steps in the embodiments can be performed according to the understanding of those skilled in the art. Adaptive adjustment.

[0056] Such as figure 1 As shown, the method for sorting the similarity of smart contract functions includes the following steps:

[0057] Get the input smart contract function;

[0058] Obtain the first syntax vector according to the smart contract function, and obtain the syntax vector set according to the preset function library;

[0059] Obtain the first semantic vector according to the smart contract function, and obtain the semantic vector set according to the preset function library;

[0060] Determine the sim...

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 function similarity sorting method and a system, and a storage medium. The method comprises the following steps: obtaining an input intelligent contractfunction; obtaining a first grammar vector according to the intelligent contract function, and obtaining a grammar vector set according to a preset function library; obtaining a first semantic vectoraccording to the intelligent contract function, and obtaining a semantic vector set according to a preset function library; determining a similarity score result between the intelligent contract function and a preset intelligent contract function according to the first grammar vector, the grammar vector set, the first semantic vector and the semantic vector set; and according to the similarity score result, performing sorting processing on the preset intelligent contract function. The similarity analysis accuracy can be improved, the writing efficiency of programmers can be improved, and themethod can be widely applied to the technical field of information processing.

Description

Technical field [0001] The invention relates to the technical field of information processing, in particular to a method, system and storage medium for sorting the similarity of smart contract functions. Background technique [0002] With the development of Internet technology, the application of blockchain has become more and more extensive. There are smart contracts on the blockchain. Smart contracts are programs stored on the blockchain, which can assist and verify the negotiation and operation of the contract. For node operation, the person who runs the program needs to pay a fee to the node's miners or stakeholders. Smart contracts have the characteristics of data transparency, non-tampering, and permanent operation. Therefore, the application of smart contracts has an important impact on the application of blockchain. [0003] In the process of programming smart contract functions, in order to reduce the high threshold of smart contract development and improve the efficiency ...

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/41
CPCG06F8/42G06F8/436
Inventor 赵淦森王锡亮王欣明罗浩宇刘学枫何嘉浩谢智健
Owner SOUTH CHINA NORMAL UNIVERSITY