CN111835795A - Block chain and non-block chain system state synchronization method - Google Patents
Block chain and non-block chain system state synchronization method Download PDFInfo
- Publication number
- CN111835795A CN111835795A CN201910296638.7A CN201910296638A CN111835795A CN 111835795 A CN111835795 A CN 111835795A CN 201910296638 A CN201910296638 A CN 201910296638A CN 111835795 A CN111835795 A CN 111835795A
- Authority
- CN
- China
- Prior art keywords
- state
- blockchain
- block chain
- blockchain system
- transaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/56—Financial cryptography, e.g. electronic payment or e-cash
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1059—Inter-group management mechanisms, e.g. splitting, merging or interconnection of groups
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Abstract
The invention discloses a method for synchronizing the state of a block chain system and a non-block chain system, which is used for solving the problem of cooperation between the block chain system and the conventional non-block chain system. The method is that the blockchain actively acquires the state of the non-blockchain system through the network interface so as to change the state of the blockchain system. The network interface specifically comprises the modes of HTTP, sock and the like; thus, if the non-blockchain system supports a network interface, cooperation with the blockchain system can be achieved without major modification. The block chain state changing mode comprises a condition transaction mode and an intelligent contract mode. In summary, the present invention realizes the synchronization of the blockchain system and the non-blockchain system by the state change of the non-blockchain system to cause the state change of the blockchain system.
Description
Technical Field
The invention relates to the technical field of internet, in particular to technologies of block chain, non-block chain system, state synchronization and the like.
Background
At present, the block chain has the characteristics of non-tamper property, high reliability, decentralization and the like, and is successfully applied to a plurality of fields. But related applications are all centered on the block chain, and the original applications are moved to the block chain.
The practical application is mature and large in scale, the work is complex or even impossible when the block chain is completely moved, and only the related part needs to be moved to the block chain.
Therefore, in order to solve the problem of the connection between the existing application and the blockchain, a method for synchronizing the state between the blockchain and the non-blockchain system is provided, that is, a method for actively acquiring the state of the non-blockchain system by using the blockchain as an initiating terminal so as to change the state of the blockchain.
The technology can be applied to the problem of convergence of a blockchain-based system and an existing system, for example, the blockchain is used as a third party payment platform of an electronic shopping system.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention actively acquires the state of the non-blockchain system based on the blockchain so as to realize the synchronization method, and can ensure that the blockchain carries out state change according to the state of the non-blockchain system. A block chain and non-block chain state synchronization method.
The technical scheme adopted by the invention for solving the technical problem comprises the following steps.
1) And acquiring the state.
The blockchain acquires the state of the non-blockchain system through a network (web) -based interface. The Web interface includes HTTP, REST based on HTTP, and socket type interface.
This approach is called active acquisition approach, since the blockchain thread acts as the initiator.
2) The block chain state changes.
After acquiring the corresponding non-blockchain system state, the blockchain will make a state change. Block chain state changes are further divided into two categories, transaction state changes and intelligent contract state changes.
(1) Transaction state change
This approach is based on conditional transactions of the blockchain, i.e. the validity of the transaction after entering the blockchain backbone is still dependent on other conditions.
The blockchain changes the conditional transaction to an active or inactive state by "state acquiring" the information needed for the conditional transaction from the non-blockchain system. And if the transaction state is an invalid state, returning the related assets to the asset initiator.
For example, the blockchain cooperates with an electronic shopping mall. The existing electronic shopping malls usually have third party payment, and after the user confirms receiving goods in the logistics system, the goods payment is given to the buyer. In this example, the logistics system, the electronic shopping mall, and the third party payment are non-blockchain systems. After the method is adopted, the third party payment adopts the block chain, and the logistics system and the electronic shopping mall are still non-block chain systems. The system will become an interaction of blockchain with non-blockchain systems such as logistics systems. The specific process is as follows:
the two transaction parties negotiate firstly, the buyer pays on the blockchain, the seller delivers goods, and the logistics system records logistics information. After the buyer receives the goods, the logistics platform records the goods receiving. The block chain system queries the confirmation information from the logistics system in an HTTP mode. When the blockchain system queries that there are harvest records, the buyer pays the blockchain money transfer to the seller. If the seller does not deliver the goods or the goods are lost in the logistics process, the logistics platform does not have a receiving record, and after the appointed time is exceeded, the block chain money is returned to the buyer.
(2) Intelligent contract state change
The approach is based on smart contracts. The intelligent contract obtains information from the non-blockchain system to determine the next state change operation. The state change operation includes: determining whether a transaction is valid, determining that an account balance has changed, and initiating a transaction to change a system state.
The decision on the validity of a certain transaction is similar to the case of 'transaction status change' in (1).
The account balance changes. And after the state of the non-blockchain system is changed, the blockchain changes the balance of the corresponding account according to the result. For example, increase the balance of a user and decrease the balance of a user.
A certain transaction is initiated. That is, the intelligent contract actively initiates a transaction based on the state of the non-blockchain system. Causing a change in the state of the blockchain system.
Compared with the prior art, the invention has the beneficial effects that:
the method for actively acquiring the state of the non-blockchain system based on the blockchain so as to change the state of the blockchain can ensure the state synchronization of the blockchain and the non-blockchain system, thereby promoting the full fusion of the existing application and the blockchain system; the fusion has small change to the existing system, and parts of the system which can be flexibly selected are called blockchain systems, and other parts are not blockchain systems.
Drawings
FIG. 1 is a block diagram illustrating a method for acquiring non-blockchain system status by blockchain
FIG. 2 is a flow diagram illustrating a blockchain transaction-based state change process
FIG. 3 is a flow diagram illustrating a blockchain intelligent contract-based state change process
Detailed Description
This embodiment uses fig. 1 to illustrate the blockchain acquisition non-blockchain system state:
the blockchain system obtains the state of the non-blockchain system through a network (web) mode. This approach is a blockchain process as the initiator, i.e., an active acquisition approach. After the blockchain system sends a request, the non-blockchain system returns the current state to the blockchain system in a web mode.
This embodiment uses fig. 2 to illustrate the blockchain transaction-based state change process:
in this case, the transaction issued on the blockchain is a conditional transaction. The blockchain acquires the state of the non-blockchain system, and further determines the final state of the conditional transaction to be valid or invalid. The specific process is as follows:
the blockchain determines whether the state of the current transaction needs to be changed based on the state of the non-blockchain system. If the non-blockchain system state does not meet the condition of the conditional transaction, the state of the non-blockchain system is continuously waited for changing and the state is retrieved from the non-blockchain system again. If the condition of the condition transaction is satisfied, the following two situations are carried out: (1) if the state of the non-blockchain system enables the conditional transaction to be effective, the blockchain system executes relevant operation of transaction effectiveness; (2) if the state of the non-blockchain system invalidates the conditional transaction, the blockchain system will perform the operations associated with the transaction invalidation.
This embodiment uses FIG. 3 to illustrate the state change process of blockchain based on intelligent contracts
In this case, the smart contracts on the blockchain capture the state of the non-blockchain system. And then the next state change operation is performed. As shown, the state change operation includes three possibilities: (1) determining whether a transaction is valid, (2) determining that an account balance has changed, (3) or changing the system state by initiating a transaction.
Claims (4)
1. The method for synchronizing the state between the block chain system and the non-block chain system is characterized in that the block chain acquires the state of the non-block chain system through a network interface to change the state of the block chain, so that the cooperation of the state of the block chain and the state of the non-block chain is realized.
2. The method of claim 1, wherein the blockchain is used as an initiator to actively obtain the state of the non-blockchain system in a network interface, including HTTP and socket interfaces.
3. The method of claim 1, wherein the state information of the non-blockchain system is utilized to change the state of the blockchain system.
4. A method for state synchronization between blockchain and non-blockchain systems according to claims 1, 2 and 3, wherein the state of the non-blockchain system affects and changes the state of the blockchain system, thereby realizing coordination between the blockchain system and the non-blockchain system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910296638.7A CN111835795A (en) | 2019-04-14 | 2019-04-14 | Block chain and non-block chain system state synchronization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910296638.7A CN111835795A (en) | 2019-04-14 | 2019-04-14 | Block chain and non-block chain system state synchronization method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111835795A true CN111835795A (en) | 2020-10-27 |
Family
ID=72914397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910296638.7A Pending CN111835795A (en) | 2019-04-14 | 2019-04-14 | Block chain and non-block chain system state synchronization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111835795A (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106600252A (en) * | 2016-12-15 | 2017-04-26 | 咪咕文化科技有限公司 | Payment method and payment system based on block chain |
CN107679794A (en) * | 2017-09-19 | 2018-02-09 | 前海云链科技(深圳)有限公司 | A kind of commodity distribution control method and device based on block chain |
CN107819582A (en) * | 2016-09-14 | 2018-03-20 | 陈新 | Intelligent block chain interacted system |
CN107993069A (en) * | 2017-12-13 | 2018-05-04 | 清华大学 | A kind of online transaction method and system based on block chain network |
CN108171083A (en) * | 2017-12-18 | 2018-06-15 | 深圳前海微众银行股份有限公司 | Block chain trust data management method, system and computer readable storage medium |
CN108364180A (en) * | 2018-01-31 | 2018-08-03 | 复旦大学 | A kind of shared electricity transaction method based on block chain |
CN108376106A (en) * | 2018-02-01 | 2018-08-07 | 中国工商银行股份有限公司 | A kind of block chain message feedback method and system |
CN108573434A (en) * | 2018-04-26 | 2018-09-25 | 汪子彧 | A kind of P2P electronics contract method of commerce based on block chain |
CN108596609A (en) * | 2018-04-28 | 2018-09-28 | 比飞力(深圳)科技有限公司 | A kind of method and device of digital wallet transaction |
CN108650289A (en) * | 2018-03-19 | 2018-10-12 | 青岛创金链科技有限公司 | A kind of method and apparatus of the management data based on block chain |
CN109088722A (en) * | 2018-10-08 | 2018-12-25 | 深圳投时科技有限公司 | Block chain node evolution method and block chain node |
CN109242450A (en) * | 2018-09-21 | 2019-01-18 | 北京京东尚科信息技术有限公司 | Block catenary system and based on block catenary system realize method of commerce and transaction system |
CN109272388A (en) * | 2018-09-25 | 2019-01-25 | 杭州复杂美科技有限公司 | A kind of purchase method based on block chain, equipment and storage medium |
CN109472690A (en) * | 2018-10-25 | 2019-03-15 | 深圳壹账通智能科技有限公司 | The loan measures and procedures for the examination and approval, device, storage medium and electronic equipment based on block chain |
CN109544160A (en) * | 2018-11-20 | 2019-03-29 | 杭州呯嘭智能技术有限公司 | A kind of transaction authenticity verification methods and system based on block chain and intelligent contract |
-
2019
- 2019-04-14 CN CN201910296638.7A patent/CN111835795A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107819582A (en) * | 2016-09-14 | 2018-03-20 | 陈新 | Intelligent block chain interacted system |
CN106600252A (en) * | 2016-12-15 | 2017-04-26 | 咪咕文化科技有限公司 | Payment method and payment system based on block chain |
CN107679794A (en) * | 2017-09-19 | 2018-02-09 | 前海云链科技(深圳)有限公司 | A kind of commodity distribution control method and device based on block chain |
CN107993069A (en) * | 2017-12-13 | 2018-05-04 | 清华大学 | A kind of online transaction method and system based on block chain network |
CN108171083A (en) * | 2017-12-18 | 2018-06-15 | 深圳前海微众银行股份有限公司 | Block chain trust data management method, system and computer readable storage medium |
CN108364180A (en) * | 2018-01-31 | 2018-08-03 | 复旦大学 | A kind of shared electricity transaction method based on block chain |
CN108376106A (en) * | 2018-02-01 | 2018-08-07 | 中国工商银行股份有限公司 | A kind of block chain message feedback method and system |
CN108650289A (en) * | 2018-03-19 | 2018-10-12 | 青岛创金链科技有限公司 | A kind of method and apparatus of the management data based on block chain |
CN108573434A (en) * | 2018-04-26 | 2018-09-25 | 汪子彧 | A kind of P2P electronics contract method of commerce based on block chain |
CN108596609A (en) * | 2018-04-28 | 2018-09-28 | 比飞力(深圳)科技有限公司 | A kind of method and device of digital wallet transaction |
CN109242450A (en) * | 2018-09-21 | 2019-01-18 | 北京京东尚科信息技术有限公司 | Block catenary system and based on block catenary system realize method of commerce and transaction system |
CN109272388A (en) * | 2018-09-25 | 2019-01-25 | 杭州复杂美科技有限公司 | A kind of purchase method based on block chain, equipment and storage medium |
CN109088722A (en) * | 2018-10-08 | 2018-12-25 | 深圳投时科技有限公司 | Block chain node evolution method and block chain node |
CN109472690A (en) * | 2018-10-25 | 2019-03-15 | 深圳壹账通智能科技有限公司 | The loan measures and procedures for the examination and approval, device, storage medium and electronic equipment based on block chain |
CN109544160A (en) * | 2018-11-20 | 2019-03-29 | 杭州呯嘭智能技术有限公司 | A kind of transaction authenticity verification methods and system based on block chain and intelligent contract |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111080275B (en) | Cross-region resource transfer method, device, equipment and storage medium | |
US20090313147A1 (en) | Alternative payment implementation for electronic retailers | |
TWI610255B (en) | Online payment method and equipment | |
JP6875531B2 (en) | Systems, methods and devices that perform payment services | |
CN109360066B (en) | B2C electronic commerce system based on internet | |
US20150012371A1 (en) | Alternative payment implementation for electronic retailers | |
US20050256802A1 (en) | Payment protocol and data transmission method and data transmission device for conducting payment transactions | |
US20220012702A1 (en) | Third-party settlement control method and apparatus, electronic device, and storage medium | |
CN111612453A (en) | Decentralized transaction method and device based on block chain and electronic equipment | |
CN104933568A (en) | Payment authentication method and device | |
CN112132559A (en) | Digital currency transaction method and device, electronic equipment and readable storage medium | |
WO2021121133A1 (en) | Transaction platform system method based on block chain, terminal, and storage medium | |
CN110570179B (en) | Order display method, device, equipment and storage medium | |
CN103649979A (en) | Financial transaction systems and methods | |
CN102339430B (en) | The method and apparatus of social network services relation is set up in a kind of initiation | |
CN112488702A (en) | Settlement method and device based on block chain and electronic equipment | |
CN103793841A (en) | Method for identifying offline consumption based on Internet electronic commerce | |
CN106096926B (en) | Event processing method, device, electronic device and storage medium | |
KR100545308B1 (en) | System and Method of Total Payment Gateway for Electronic cash, Electronic gift-certificates and Milage points by using Credit card Number | |
CN106294611A (en) | Core banking system and the old and new's core system data exchange method | |
CN106779974B (en) | Article transaction method and system | |
CN111835795A (en) | Block chain and non-block chain system state synchronization method | |
CN110717756B (en) | Payment data processing device and method based on contract | |
CN110599150A (en) | Order display method, device, equipment and storage medium | |
KR101673666B1 (en) | Method of providing pay service for foreign customer and server performing the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20201027 |
|
WD01 | Invention patent application deemed withdrawn after publication |