Blockchain intelligent contract firewall protection method and system
A smart contract and firewall technology, applied in the blockchain field, can solve problems such as smart contracts are vulnerable to attack, asset loss, low operating efficiency, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Such as figure 1 , figure 2 Shown, the present invention a kind of block chain intelligent contract firewall protection method, this method comprises:
[0040] Combining off-chain detection and on-chain blocking methods, the blockchain smart contract firewall is implemented using the blockchain multi-signature decentralization mechanism, and the smart contract transaction protection is realized through the smart contract firewall;
[0041] Among them: the protected smart contract uses a multi-signature decentralization mechanism in the transaction on the chain. In this process, the transaction can be completed according to the signature of the firewall, and the firewall is notified; after the oracle machine detects the multi-signature request, it detects the security of the transaction off the chain. The detection results are fed back to the firewall smart contract, and dangerous transactions are blocked through the firewall smart contract.
[0042] Specifically, the...
Embodiment 2
[0054] Such as figure 1 , figure 2 As shown, the difference between this embodiment and Embodiment 1 is that a blockchain smart contract firewall system includes a client, a firewall and an oracle, and the firewall is set during the transaction process from the smart contract to the client;
[0055] Client: The user smart contract initiates a transfer transaction and sets the transaction to require firewall authorization, and notifies the firewall that the transaction has been initiated;
[0056] Firewall: The firewall smart contract listens to the notification sent by the client, initiates a delayed transaction, and executes multi-signature by default; the firewall implements the oracle machine call interface, accepts whether to execute multi-signature, cancels the delayed transaction first after receiving the notification, and then executes the detection result of the oracle machine , if the oracle machine feedback is not received within the timeout, the delayed transactio...
Embodiment 3
[0061] Such as figure 1 , figure 2 As shown, the difference between this embodiment and Embodiment 2 is that the implementation example of the present invention on the EOS public chain is as follows:
[0062] (1) Permission setting
[0063] The user needs to authorize the transfer authority of his account to the eosio.code authority of the eosio.msig account of a blockchain smart contract firewall system, so that the system can perform the transfer operation after the multi-signature is passed.
[0064] (2) User contract settings
[0065] The user needs to transform the original transfer operation, that is, call the transfer function of eosio.token, into calling eosio.misg to initiate a multi-signature request to perform the transfer, and requires a firewall signature to complete the transfer.
[0066] And after the multi-signature request is initiated, the firewall is notified.
[0067] (3) Firewall Smart Contract
[0068] The firewall smart contract listens to the noti...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com