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

Intelligent contract stain tracking method and device

A smart contract and taint technology, applied in the blockchain field, can solve problems such as high false positive and false negative rates

Active Publication Date: 2020-10-02
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, in the execution of the smart contract by the virtual machine, the fuzzy test is used to analyze the execution dependency of the virtual machine instruction in the data flow, so as to judge the risk factors existing in the contract execution, but in the actual contract detection scene , the above method has a high rate of false positives and false negatives

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 stain tracking method and device
  • Intelligent contract stain tracking method and device
  • Intelligent contract stain tracking method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The solution provided by the present invention will be described below in conjunction with the accompanying drawings.

[0037] As mentioned earlier, in the prior art, fuzz testing is used to analyze the data flow of the smart contract execution process and the execution dependencies of virtual machine instructions, so as to judge the risk factors in the contract execution process. However, in the actual contract detection scenario, the above The method has a high false positive or false negative rate.

[0038] In view of the deficiencies of the above-mentioned existing technologies, the inventor found in further research that there are some sensitive data in the data stream, which are mainly data that can be controlled or partially controlled by the outside in the running contract, for example, the user inputs data or packaged transactions when initiating a transaction Variables that nodes can adjust, such as timestamp, blockhash, blocknum, etc. These sensitive data pos...

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 embodiment of the invention provides an intelligent contract stain data tracking method and device. The smart contract is compiled into byte codes to be deployed on a block chain. The method is executed through a virtual machine deployed in a node of the block chain. The method comprises the following steps: in response to a transaction of calling a smart contract, executing a byte code, the process of executing the byte code comprising: obtaining external input data by executing a first virtual machine instruction for introducing the external input data, and generating a stain identifiercorresponding to the external input data; storing the external input data and the stain identifier corresponding to the external input data into a first storage space, wherein the first storage spaceis provided with a storage area for storing the stain identifier; and when a second virtual machine instruction used for transmitting data is executed, transmitting the external input data and the stain identifier corresponding to the external input data in the first storage space under the condition of determining that the to-be-transmitted data is the external input data.

Description

technical field [0001] One or more embodiments of this specification relate to the field of blockchain, and in particular to a method and device for tracking taints in smart contracts. Background technique [0002] Smart contract, a distributed program based on blockchain technology, allows the decision-making of program implementation, data storage and other functions to be completed without a third party. The execution results of smart contracts are traceable and irreversible. The virtual machine that executes smart contracts is a stacked virtual machine used on the blockchain. [0003] In the existing technology, in the execution of the smart contract by the virtual machine, the execution dependency of the virtual machine instruction in the data flow is analyzed through fuzz testing, so as to judge the risk factors existing in the contract execution, but in the actual contract detection scene , the above method has a high rate of false positives and false negatives. [...

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): G06F16/27G06Q20/38G06Q20/02
CPCG06Q20/02G06Q20/389G06F16/27
Inventor 刘地军程岩张中文
Owner ALIPAY (HANGZHOU) INFORMATION TECH CO LTD