Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A smart contract debugging method, device and storage medium thereof

A technology for smart contracts, debugging methods

Active Publication Date: 2021-08-24
BEIJING KNOWNSEC INFORMATION TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the purpose of the embodiments of the present invention is to provide a smart contract debugging method, device and storage medium to solve the problem that the smart contract that needs to be debugged does not disclose the source code and the specific transaction value of the blockchain. Problems with the code logic of the contract

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 debugging method, device and storage medium thereof
  • A smart contract debugging method, device and storage medium thereof
  • A smart contract debugging method, device and storage medium thereof

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0028]According to the applicant's research, it is found that the existing smart contract is a computer protocol designed to propagate, verify or execute contracts in an informationized manner. Smart contracts allow trusted transactions without a third party, these transactions are traceable and irreversible, which can provide a security method superior to traditional contracts and reduce other transaction costs associated with contracts. Because smart contracts are codes, different from paper contracts, smart contracts have extremely high requirements for code accuracy. If the smart contract is written incorrectly, it will lead to transaction failure or even loss of ether, wasting a lot of manpower, material resources and time. Therefore, smart contracts need The debugger is used to debug the code to ensure that the operator can quickly and accurately find the error and solve it when an error occurs. However, the existing smart contract debuggers, for example, the Remix built...

no. 2 example

[0067] In order to cooperate with the smart contract debugging method provided in the first embodiment of the present invention, the second embodiment of the present invention also provides a smart contract debugging device 100 .

[0068] Please refer to Figure 4 , Figure 4 It is a block diagram of a smart contract debugging device 100 provided in the second embodiment of the present invention.

[0069] The smart contract debugging device 100 includes an OpCode instruction acquisition module 110 , a substitute instruction function determination module 120 , a symbol variable conversion module 130 and a debugging module 140 .

[0070] The OpCode instruction obtaining module 110 is used to obtain the operation code OpCode instruction of the smart contract.

[0071] The substitute instruction function determination module 120 is configured to determine the substitute instruction function corresponding to the OpCode instruction through the OpCode interpreter.

[0072] A symboli...

no. 3 example

[0080] Please refer to Figure 5 , Figure 5 The third embodiment of the present invention provides a structural block diagram of an electronic device applicable to the embodiments of the present application. The electronic device 200 provided in this embodiment may include a smart contract debugging device 100 , a memory 201 , a storage controller 202 , a processor 203 , a peripheral interface 204 , an input and output unit 205 , an audio unit 206 , and a display unit 207 .

[0081] The memory 201, storage controller 202, processor 203, peripheral interface 204, input and output unit 205, audio unit 206, and display unit 207 are electrically connected to each other directly or indirectly to realize data transmission or interact. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The smart contract debugging device 100 includes at least one software function module that can be stored in the memo...

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 provides a smart contract debugging method, device and storage medium thereof, and relates to the technical field of smart contract debugging. The smart contract debugging method includes: obtaining the operation code OpCode instruction of the smart contract; determining the replacement instruction function corresponding to the OpCode instruction through the OpCode interpreter; converting the operation function in the replacement instruction function into a symbol variable function; After the replacement instruction function is executed, the smart contract is debugged based on the execution result of the replacement instruction function. The intelligent contract debugging method can debug the intelligent contract without the source code of the intelligent contract and the specific transaction value of the blockchain.

Description

technical field [0001] The present invention relates to the technical field of smart contract debugging, in particular to a smart contract debugging method, device and storage medium. Background technique [0002] Smart contracts are an idea proposed by Nick Szabo in the 1990s, almost at the same age as the Internet. Due to the lack of a credible execution environment, smart contracts have not been applied to the actual industry. Since the birth of Bitcoin, people have realized that the underlying technology of Bitcoin, blockchain, can inherently provide a credible execution environment for smart contracts. Ethereum First saw the fit of blockchain and smart contracts, released the white paper "Ethereum: Next Generation Smart Contract and Decentralized Application Platform", and has been committed to making Ethereum the best smart contract platform, so Bitcoin leads Blockchain, Ethereum revives smart contracts. [0003] As one of the current hot topics, smart contracts have...

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): G06F11/36
CPCG06F11/3624
Inventor 饶诗豪
Owner BEIJING KNOWNSEC INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products