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

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.

Active Publication Date: 2019-12-27
成都链安科技有限公司
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is: smart contracts are easily attacked and cause asset loss, while the efficiency of existing block chain smart contract firewalls is too low to meet the requirements for The security protection requirements of high-frequency trading contracts, and the existing smart contracts are embedded too deeply in user contract codes, which affects the execution efficiency of user contracts. The present invention provides a block chain smart contract firewall protection method and system to solve the above problems, and solve The implementation process of the blockchain smart contract firewall is complicated, the operation efficiency is low, and the security protection of the FM transaction contract cannot be implemented

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
  • Blockchain intelligent contract firewall protection method and system
  • Blockchain intelligent contract firewall protection method and system

Examples

Experimental program
Comparison scheme
Effect test

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...

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 a blockchain intelligent contract firewall protection method and system, and the method comprises the steps: combining an under-chain detection mode and an on-chain blocking mode, achieving a blockchain intelligent contract firewall through employing a blockchain multi-signature decentralization mechanism, and achieving the transaction protection of an intelligent contractthrough the intelligent contract firewall, wherein the protected smart contract uses a multi-signature decentralization mechanism in the online transaction, the transaction can be completed accordingto the signature of the firewall in the process, and the firewall is notified; and enabling the oracle machine to detect the security of the transaction under the chain after detecting the multi-signature request, feed back the detection result to the firewall smart contract, and block the dangerous transaction through the firewall smart contract. A block chain intelligent contract firewall systemcomprises a user side, a firewall and an oracle machine, the firewall is arranged in the transaction process from an intelligent contract to the user side, and the firewall intelligent contract comprises a contract notification interface, an oracle machine communication interface and an on-chain database.

Description

technical field [0001] The present invention relates to the field of block chain technology, in particular to a block chain smart contract firewall protection method and system. Background technique [0002] As a relatively new information technology, the blockchain has broad application prospects, but the blockchain system has its own unique security problems, that is, the problem that smart contracts are vulnerable to malicious attacks. With the development of public chain technology, asset losses caused by smart contract security issues are increasing year by year. [0003] At present, there are a small number of smart contract firewalls at home and abroad, but they are generally implemented by making security judgments before contract calls. The protected smart contracts need to embed a large number of firewall contract calls, and need to wait for the firewall to return the result before continuing. This implementation method is more complicated to implement, has low op...

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): G06Q20/38G06Q20/40G06Q40/04H04L29/06
CPCG06Q20/3825G06Q20/407G06Q40/04H04L63/02H04L63/0263H04L63/0876H04L63/10
Inventor 杨霞郭文生
Owner 成都链安科技有限公司
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