CN112036880B - Method for realizing real-time block chain - Google Patents

Method for realizing real-time block chain Download PDF

Info

Publication number
CN112036880B
CN112036880B CN202010884417.4A CN202010884417A CN112036880B CN 112036880 B CN112036880 B CN 112036880B CN 202010884417 A CN202010884417 A CN 202010884417A CN 112036880 B CN112036880 B CN 112036880B
Authority
CN
China
Prior art keywords
block
committee
transaction
consensus
algorithm
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.)
Active
Application number
CN202010884417.4A
Other languages
Chinese (zh)
Other versions
CN112036880A (en
Inventor
阚嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202010884417.4A priority Critical patent/CN112036880B/en
Publication of CN112036880A publication Critical patent/CN112036880A/en
Application granted granted Critical
Publication of CN112036880B publication Critical patent/CN112036880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for realizing a real-time blockchain, which comprises the following steps: the block chain nodes form a broadcasting network; a consensus election formation committee; consensus is performed on the transaction or the information; and the step of receiving and storing the latest block by the block chain node. Through the mode, the method for realizing the real-time blockchain adopts a form of trading one block, reduces the block-out delay time, improves the processing capacity and achieves the effect of real-time processing.

Description

Method for realizing real-time block chain
Technical Field
The invention relates to the field of blockchains, in particular to a method for realizing a real-time blockchain.
Background
The blockchain technique is based on a blockchain data structure, essentially a hash chain. Chains consist of blocks, the generation of which is done at regular intervals. This results in deficiencies in certain applications, such as the field of payment where blockchains are likely to be most widely used, a serious problem is payment time. Similar products using internet technology such as payroll and WeChat can be transferred in real time of at least a second level.
The conventional blockchain scheme mostly adopts a centralized batch processing scheme, and if a transaction occurs, the transaction can be packed into a block at any moment in the ten minutes in the future, so that real-time is almost impossible.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method for realizing the real-time blockchain, which has the advantages of high reliability, strong real-time performance and the like, and has wide market prospect in the application and popularization of the blockchain.
In order to solve the technical problems, the invention adopts a technical scheme that:
the method for realizing the real-time blockchain comprises the following steps:
1) The block chain link points form a network, and any block chain link point broadcasts information to all block chain nodes through the network;
2) Setting block election time intervals, the number of nodes operated by a committee and election rules; continuously electing a preset number of block chain nodes in a network according to the block election time interval and the election rule by using an infinite consensus algorithm to form a committee;
3) Step 2, the block chain nodes selected in the step are mutually combined into a small-scale communication network; the committee runs a finite consensus algorithm to consensus transactions or information;
4) The user submits a transaction request or initiates a transaction, and the transaction information is broadcast to the whole network; after the committee receives the message, the request of the user is responded and processed by the committee starting to run the consensus algorithm; the legal transaction is subjected to consensus algorithm of committee to make consensus, and the transaction forming the consensus is immediately created into a block;
5) The block formed for the transaction request is broadcast to all/relevant blockchain nodes in the network, and the blockchain nodes receive and store the latest block verification so that all/relevant blockchain nodes can contain all historical blockdata.
In a preferred embodiment of the present invention, in step 2), only one blockchain node is selected at a time.
In a preferred embodiment of the present invention, the infinite consensus algorithm includes, but is not limited to, proof of Work workload Proof algorithm, proof of stage equity Proof algorithm, proof of Space Proof algorithm.
In a preferred embodiment of the present invention, the finite consensus algorithm includes, but is not limited to, a PBFT consensus algorithm and a PAXOS, RAFT derived algorithm.
In a preferred embodiment of the present invention, when there are multiple transactions occurring simultaneously, the transactions are ordered in accordance with a predetermined rule as they pass through the committee, which processes the transactions in order.
In a preferred embodiment of the present invention, when the transaction is illegal, the transaction request fails and no block can be formed.
The beneficial effects of the invention are as follows: the method adopts a form of trading a block, reduces the delay time of the block, improves the processing capacity and achieves the effect of real-time processing.
Description of the embodiments
The following description of the technical solutions in the embodiments of the present invention will be clear and complete, and it is obvious that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention comprises the following steps:
the blockchain can be used for payment, but the real-time performance is poor, and the implementation method of the real-time blockchain can enable the blockchain to realize second-level confirmation, and the technology can be used for wallet, chat and even the blockchain infrastructure design related to the internet of things of the Internet of things (IoT), so that real-time transaction based on the blockchain is possible.
The blockchain constructed by the invention takes one transaction/message as one block, and the design meets the real-time requirement of the blockchain, rather than using batch processing to package a lot of transaction information into one block like the traditional blockchain. On the other hand, because the number of blocks is necessarily increased greatly by one message, the common-knowledge flow of the block chain is redesigned to meet the processing and storage of a large number of blocks, and the block processing speed is improved by twice common knowledge of POW and PBFT, so that one block is possible to communicate with one block, and the real-time block chain is realized.
The method for realizing the real-time blockchain comprises the following steps:
1. the blockchain points form a network through which any blockchain point can broadcast information to all blockchain nodes, wherein the broadcasting is allowed to have a certain delay.
2. Setting block election time intervals, the number of nodes operated by a committee and election rules, wherein in general, only one block chain node is selected for each election; in the network, continuously electing a preset number of block chain nodes by using an infinite consensus algorithm according to the block election time interval and the election rule to form a committee. The infinite consensus algorithm includes, but is not limited to, a Proof of Work workload algorithm, a Proof of stage equity algorithm, a Proof of Space spatial Proof algorithm, and the like.
3. The block chain nodes selected in the step 2 mutually form a small-scale communication network (hereinafter referred to as committee); the committee runs a limited consensus algorithm to agree on transactions or information. The finite consensus algorithm comprises a PBFT consensus algorithm and derivative algorithms such as PAXOS, RAFT and the like. Unlike the generation of each consensus in an infinite consensus algorithm, which requires a certain time interval, a finite consensus algorithm can form a large number of consensus in a short time, but the number of nodes in the committee generally does not exceed an upper limit (e.g., 100) due to the limitations of the algorithm.
4. A user submits a transaction request (or initiates a transaction), and transaction information is broadcast to the whole network; after the committee receives the message, the user's request is responded to and processed by the committee that begins to run the consensus algorithm, and if the committee is not ready at the time the user initiates the transaction, the transaction may be discarded or delayed for execution; the legal (in accordance with the system rule) trade is formed into a consensus through the consensus algorithm of the committee, and the trade forming the consensus is immediately created into a block, namely after the consensus algorithm is finished, the trade information is authenticated, and a non-tamperable block is formed; this allows a consensus to be formed and blocks to be created immediately in the fastest time when a transaction is initiated, without having to wait for new blocks to be generated, as in a conventional blockchain, thus achieving real-time out.
If several transactions occur simultaneously, the transactions need to be ordered according to a preset rule when passing through the committee, and the committee processes the transactions in order.
When the transaction is illegal (does not accord with the system rule), for example, the transaction request fails to form a block when the balance is insufficient, for example, only a user tries to trade two 70-element and 80-element transactions simultaneously with 100-element, and the total amount of the two transactions exceeds 100-element owned by the user, so that the transaction which is arranged to be processed preferentially in the front is legal and is formed into a block, and the transaction request arranged in the rear is failed.
5. The block formed for the transaction request is broadcast to all/relevant blockchain nodes in the network, and the blockchain nodes receive and store the latest block verification so that all/relevant blockchain nodes can contain all historical blockdata.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The method for realizing the real-time blockchain comprises the following steps:
1. the blockchain points form a network through which any blockchain point can broadcast information to all blockchain nodes.
2. Setting preset information: the block election time interval is 10min, the number of committee operation nodes is 4, each time a block chain node is elected, and the election rule is as follows: the last 4 nodes ordered according to the selected time sequence; in the network, every 10min, a node is selected from an infinite number of nodes by using a POW consensus algorithm until 4 blockchain nodes are selected, and a committee is formed.
3. The committee begins to work to form a consensus on transaction requests.
4. The user initiates the transaction, the transaction is handed over to the committee, forming a transaction block, and the committee forms a consensus for the transaction block using the PBFT consensus algorithm.
5. The blockinformation formed for the transaction request is broadcast to all blockchain nodes in the network, which receive the consensus information and save the same for joining to the blockchain, which may contain all historical data.
The method for realizing the real-time block chain has the beneficial effects that: the method adopts a form of trading a block, reduces the delay time of the block, improves the processing capacity and achieves the effect of real-time processing.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes or direct or indirect application in other related arts are included in the scope of the present invention.

Claims (4)

1. A method for implementing a real-time blockchain, comprising the steps of:
1) The block chain link points form a network, and any block chain link point broadcasts information to all block chain nodes through the network;
2) Setting block election time intervals, the number of nodes operated by a committee and election rules; continuously electing a preset number of block chain nodes in a network according to the block election time interval and the election rule by using an infinite consensus algorithm to form a committee;
3) Step 2, the block chain nodes selected in the step are mutually combined into a small-scale communication network; the committee runs a finite consensus algorithm to consensus transactions or information, wherein the finite consensus algorithm includes, but is not limited to, PBFT consensus algorithm and PAXOS, RAFT derived algorithm;
4) The user submits a transaction request or initiates a transaction, and the transaction information is broadcast to the whole network; after the committee receives the message, the request of the user is responded and processed by the committee starting to run the consensus algorithm; the legal transaction is subjected to consensus algorithm of committee, and immediately creates the transaction forming the consensus into a block, wherein one transaction is a block;
when a plurality of transactions occur simultaneously, the transactions are sequentially arranged according to a preset rule when passing through a committee, and the committee processes the transactions sequentially;
5) The block formed for the transaction request is broadcast to all/relevant blockchain nodes in the network, and the blockchain nodes receive and store the latest block verification so that all/relevant blockchain nodes can contain all historical blockdata.
2. The method of claim 1, wherein in step 2), only one blockchain node is selected at a time until a predetermined number of committees meeting committee requirements are elected.
3. The method of claim 1, wherein the infinite consensus algorithm includes, but is not limited to, proof of Work workload Proof algorithm, proof of stage equity Proof algorithm, proof of space Proof algorithm.
4. The method of claim 1, wherein the transaction request fails to form a block when the transaction is illegal.
CN202010884417.4A 2020-08-28 2020-08-28 Method for realizing real-time block chain Active CN112036880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010884417.4A CN112036880B (en) 2020-08-28 2020-08-28 Method for realizing real-time block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010884417.4A CN112036880B (en) 2020-08-28 2020-08-28 Method for realizing real-time block chain

Publications (2)

Publication Number Publication Date
CN112036880A CN112036880A (en) 2020-12-04
CN112036880B true CN112036880B (en) 2024-02-23

Family

ID=73586137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010884417.4A Active CN112036880B (en) 2020-08-28 2020-08-28 Method for realizing real-time block chain

Country Status (1)

Country Link
CN (1) CN112036880B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2017101080A4 (en) * 2017-08-09 2017-09-07 Sniip (Australia) Limited Method and System for Facilitating a Payment Transaction
CN107688999A (en) * 2017-08-11 2018-02-13 杭州秘猿科技有限公司 A kind of parallel transaction based on block chain performs method
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
CN108830710A (en) * 2018-05-02 2018-11-16 大国创新智能科技(东莞)有限公司 Block chain transaction platform and implementation method
CN109102299A (en) * 2018-08-01 2018-12-28 腾讯科技(深圳)有限公司 Resource transfers data managing method, device and storage medium
CN109360100A (en) * 2018-11-13 2019-02-19 北京航空航天大学 Transaction rapid acknowledgment method and device based on block chain technology
CN109766673A (en) * 2019-01-18 2019-05-17 四川大学 A kind of alliance's formula audio-video copyright block catenary system and audio-video copyright cochain method
WO2019140555A1 (en) * 2018-01-16 2019-07-25 华为技术有限公司 Blockchain construction method and blockchain node
CN110490593A (en) * 2018-08-29 2019-11-22 华中科技大学 A kind of block chain common recognition method and system based on storage contribution margin
KR20190140550A (en) * 2018-06-12 2019-12-20 김춘산 Block Chain Based Intellectual Property Sharing Economic System and Its Method
WO2020115697A1 (en) * 2018-12-05 2020-06-11 Ernst & Young Gmbh Wirtschaftsprüfungsgesellschaft Blockchain data processing system and method of operation thereof
CN111510347A (en) * 2020-04-08 2020-08-07 北京链化未来科技有限公司 Method for improving block chain consensus efficiency

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10762479B2 (en) * 2017-04-05 2020-09-01 Samsung Sds Co., Ltd. Method and system for processing blockchain-based real-time transaction
US11271717B2 (en) * 2018-02-21 2022-03-08 Thunder Token Inc. Blockchain consensus methods and systems
US20200160330A1 (en) * 2018-11-21 2020-05-21 TraDove, Inc. Lightweight blockchain supported transaction platform with proof-of-two consensus and centralized identification management

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
AU2017101080A4 (en) * 2017-08-09 2017-09-07 Sniip (Australia) Limited Method and System for Facilitating a Payment Transaction
CN107688999A (en) * 2017-08-11 2018-02-13 杭州秘猿科技有限公司 A kind of parallel transaction based on block chain performs method
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
WO2019140555A1 (en) * 2018-01-16 2019-07-25 华为技术有限公司 Blockchain construction method and blockchain node
CN108830710A (en) * 2018-05-02 2018-11-16 大国创新智能科技(东莞)有限公司 Block chain transaction platform and implementation method
KR20190140550A (en) * 2018-06-12 2019-12-20 김춘산 Block Chain Based Intellectual Property Sharing Economic System and Its Method
CN109102299A (en) * 2018-08-01 2018-12-28 腾讯科技(深圳)有限公司 Resource transfers data managing method, device and storage medium
CN110490593A (en) * 2018-08-29 2019-11-22 华中科技大学 A kind of block chain common recognition method and system based on storage contribution margin
CN109360100A (en) * 2018-11-13 2019-02-19 北京航空航天大学 Transaction rapid acknowledgment method and device based on block chain technology
WO2020115697A1 (en) * 2018-12-05 2020-06-11 Ernst & Young Gmbh Wirtschaftsprüfungsgesellschaft Blockchain data processing system and method of operation thereof
CN109766673A (en) * 2019-01-18 2019-05-17 四川大学 A kind of alliance's formula audio-video copyright block catenary system and audio-video copyright cochain method
CN111510347A (en) * 2020-04-08 2020-08-07 北京链化未来科技有限公司 Method for improving block chain consensus efficiency

Also Published As

Publication number Publication date
CN112036880A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN111311414A (en) Block chain multi-party consensus method based on consistent hash algorithm
CN112217683B (en) Cross-heterogeneous chain data reachability processing method, system, medium, equipment and terminal
CN111865968A (en) Optimized Byzantine fault-tolerant algorithm applied to block chain
CN113132401B (en) Block chain-based data processing method and device
CN112468255B (en) Block link point time synchronization method based on network consensus and VRF algorithm
CN114218612B (en) Consensus method suitable for alliance chain high-frequency transaction scene
CN111182510A (en) Industrial Internet of things node consensus method based on block chain
US20230017790A1 (en) Graphic-blockchain-orientated hybrid consensus implementation apparatus and implementation method thereof
CN111698094A (en) Consensus method based on block chain system and block chain system
CN113064764A (en) Method and apparatus for performing blocks in a blockchain system
CN116389149A (en) Reputation value-based extensible Bayesian-family fault-tolerant consensus method
CN114567554A (en) Block chain construction method based on node reputation and partition consensus
CN112036880B (en) Method for realizing real-time block chain
CN112801791B (en) Block chain consensus method and system based on authorization
CN115766742A (en) Block chain consensus method, system, device and computer readable storage medium
CN113807851B (en) Block chain expandability realization method and system based on slicing
CN113746859B (en) High-network-performance and high-security VaPBFT block chain consensus method
Hackfeld A lightweight BFT consensus protocol for blockchains
Qushtom et al. Multiple leader PBFT based blockchain architecture for IoT domains
CN114499874A (en) Byzantine fault-tolerant consensus optimization method applied to industrial internet
CN110309366B (en) Asynchronous sorting method and device based on micro real numbers
CN111696245B (en) Voting method based on P2P network
An et al. Research on Byzantine Fault Tolerant algorithm based on Node Weights
CN115102899B (en) Block link point tree form fragmentation method based on load balancing
CN115687507A (en) Consensus computing method, system and storage medium suitable for block chain operating system

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
GR01 Patent grant
GR01 Patent grant