Blockchain operation information analysis method, device, equipment and computer storage medium
By obtaining the contract parameter information during blockchain transactions and generating a state comparator, we can detect whether the stack data of the blockchain transaction meets the conditions of the target state comparator, and solve the problem that the internal execution of smart contracts in blockchain transactions cannot be effectively tested in the existing technology, and improve the test accuracy.
Patent Information
- Application Number
- CN202011200407.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-30
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2040-10-30
AI Technical Summary
The existing technology cannot effectively test the internal execution of smart contracts in blockchain transactions, resulting in low test accuracy.
By obtaining the parameter information of all call contracts during blockchain transactions, it is sent to the stack generator for stack pressing and obtaining stack data; generating a state comparator based on the call contract and contract compiler, traversing the stack data, and detecting whether the detection conditions of the target state comparator are met. If not, it is determined that there is an exception in the transaction operation information.
It improves the accuracy of testing blockchain transaction operation information, avoids the problem of only judging the input and output of functions in the existing technology, and can effectively test the internal execution of the blockchain.