CN108667790A - A kind of communication protocol method of block chain common node common recognition certification - Google Patents

A kind of communication protocol method of block chain common node common recognition certification Download PDF

Info

Publication number
CN108667790A
CN108667790A CN201711342609.7A CN201711342609A CN108667790A CN 108667790 A CN108667790 A CN 108667790A CN 201711342609 A CN201711342609 A CN 201711342609A CN 108667790 A CN108667790 A CN 108667790A
Authority
CN
China
Prior art keywords
block
common node
message
node
communication protocol
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.)
Granted
Application number
CN201711342609.7A
Other languages
Chinese (zh)
Other versions
CN108667790B (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 CN201711342609.7A priority Critical patent/CN108667790B/en
Publication of CN108667790A publication Critical patent/CN108667790A/en
Application granted granted Critical
Publication of CN108667790B publication Critical patent/CN108667790B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9015Buffering arrangements for supporting a linked list
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The invention belongs to communications protocol technical field, a kind of communication protocol methods for certification of knowing together more particularly to block chain common node.Pass through the application layer group packet PBCP in Transmission Control Protocol model, re-form the communication protocol message format of oneself, default connection port 5187, to form the communication protocol method of novel block chain common node common recognition certification, the method of the present invention solves the existing means of communication and cannot achieve the technical issues of block platform chain is known together, keep application scenarios more extensive, reaches the scene fusion of public chain, private connection and alliance's chain, the complexity of simplified side chain growth.

Description

A kind of communication protocol method of block chain common node common recognition certification
Technical field
The invention belongs to communications protocol technical field, a kind of communications for certification of knowing together more particularly to block chain common node Protocol method.
Background technology
With the arrival of new round Industrial Revolution, cloud computing, big data, the generation information technologies such as Internet of Things are in intelligent system It makes, finance, the energy, the effect ever more important in the industries such as medical treatment & health.Develop from Development Trends and block chain technology From the point of view of evolving path, the development need cloud computing of block chain technology and application, big data, the production of the generation information technologies such as Internet of Things Industry is supported as basic facility, while block chain technology and application development are to pushing generation information technology industry development to have weight Want facilitation.
Block chain technology is as a kind of novel decentralization agreement, and the store transaction data of energy safety, information can not be pseudo- It makes and distorts, intelligent contract can be executed, be not necessarily to the audit of any centralization mechanism.Transaction based on block chain technology both can be with It is digital cash, can also be credits, equity, the digital assets such as copyright.Block chain technology solves the problems, such as Byzantium general, greatly The big trust cost and accounting cost for reducing applied economics, has redefined the property rights system of Internet era.Substantially, area Block chain is " the open account book " that a whole network records all transaction having occurred and that, is decentralization and resides in distributed frame Data storage, transmission and the method proved, theoretically realizing in data transmission self proves data.It is this " to go to center Change ", the mechanism of " going to trust " for more far-reaching ground meaning, reduce that the whole world merchandises " credit " establishes cost.Block chain skill Art may remold the every aspect of all kinds of money markets, payment system, financial service and economic form, can be from basic Upper become allows organization activity form to reduce friction and puies forward efficient new normal form.
There is respective common recognition algorithm (such as POW, POS etc.) between the common node of current each block platform chain, but not There are no the precedents occurred with communications protocol hook for the common recognition algorithm supported with platform.How a kind of common recognition communication protocol is provided, Cross-platform simultaneously can communicate, and solve the problems, such as common recognition, this just becomes outstanding for different block chain technology platforms For difficulty, main difficulty is as follows:1, the data call interface of each block platform chain is inconsistent;2, the intelligence of each block platform chain Contract language is inconsistent;3, the framework of each block platform chain and implementation method are inconsistent.Currently available technology can solve not yet The technology of this problem.
Invention content
The present invention provides a kind of communication protocol methods of block chain common node common recognition certification, solve existing communication Method cannot achieve the technical issues of block platform chain is known together.
PBCP is that the abbreviation of Peers ' Blocks Consensus Protocol refers to the block chain based on end to end communication Common recognition agreement.
Specific technical solution is a kind of communication protocol method of block chain common node common recognition certification, in Transmission Control Protocol model Application layer group packet PBCP, the communications protocol message of the block chain common node common recognition certification communication protocol method includes new district Block generates message (rqbk), new block confirmation message (cfbk), transaction block and generates message (rqtd), transaction block confirmation message (cftd) and access request and verification message (rqlg | rplg).
Transmission Control Protocol model in the prior art includes application layer, output layer, internetwork layer and net from four layers of conceptual model Network interface, and the technical program is exactly to organize packet PBCP communication protocols PBCP on the application layer.The specific message group package of wherein PBCP Format is as described in table 2, table 3, table 4.
The communication protocol method of the block chain common node common recognition certification, it is characterised in that:Include the following steps,
(1) common node, which is reached the standard grade, issues access request rqlg messages, and certification node proceeds by body after receiving message at this time Part confirms, and an end-to-end special line TCP connection channel exclusively enjoyed is established between requesting node, then generates requesting node pair The authentication information answered simultaneously returns to rplg messages to requesting node;
(2) common node carries out self-confirming according to the authentication information received, and certification node is kept if legal Exclusively enjoy connection, wait for the call-information that local main thread order or other nodes are sent as watcher thread;
(3) common node receive generate new block instruction after, in the block message group packet to rqbk messages of the new districts Hui Jiang into Row the whole network broadcast acknowledgements;
(4) after the common node of non-new block request receives rqbk messages, confirmation message therein is unpacked, then in local The block common recognition verification algorithm of itself is called, verification is legal, and the confirmation marking variable Handled changed in the whole network is from increasing 1, so Cfbk messages are answered afterwards;Verification does not conform to rule and abandons the invalid packet in instruction queue MsgQueue, responds;
(5) the new block request caching MainBlockCache of all common node regular checks oneself, it is found that some is to be selected new The Handled variables of block meet certain verification condition, then the block information are transferred to local primary storage MainBase, simultaneously Delete the corresponding record in caching MainBlockCache.
Verification condition in the step (5) is that the Handled variables of new block to be selected are more than current online user The 1/2 of Online.
Advantageous effect proposes a kind of standardized communication protocols format for all kinds of block catenary systems;For each different frameworks The integration of block catenary system platform provides a kind of base layer support, ensures that all block catenary systems based on this agreement all have Reciprocity transmitting rights and performance;It is communicated for Peer-to-Peer decentralizations, agrees with the property of block chain completely;Make application scenarios More extensively, reach the scene fusion of public chain, private connection and alliance's chain, the complexity of simplified side chain growth.
Description of the drawings
In order to illustrate more clearly of technical scheme of the present invention, attached drawing needed for embodiment description will be made below simple It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, to those of ordinary skill in the art For, without creative efforts, other attached drawings are can also be obtained according to these attached drawings, these attached drawings institute is straight The technical solution connect should also belong to the scope of protection of the present invention.
Fig. 1 is flow chart of the method for the present invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below to the specific reality of the present invention The mode of applying elaborates.Many details are elaborated in the following description in order to fully understand the present invention.But this Invention can be much to implement different from other manner described here, and those skilled in the art can be without prejudice to the present invention Similar improvement is done in the case of intension, therefore the present invention is not limited by following public specific implementation mode.
Embodiment 1, the communication protocol method of the block chain common node common recognition certification, in the application of Transmission Control Protocol model Layer group packet PBCP.PBCP is that the abbreviation of Peers ' Blocks Consensus Protocol refers to the area based on end to end communication Block chain common recognition agreement.Such as table 1, Transmission Control Protocol model in the prior art includes application layer, output from four layers of conceptual model Layer, internetwork layer and network interface, and the technical program is exactly to organize packet PBCP communication protocols on the application layer.From seven layer networks of OSI Model is by that includes application layer (Application), expression layer (Presentation), session layer (Session), transmission Layer (Transport), network layer (Network), data link layer (Data Link) and physical layer (Physical), and PBCP With regard to group packet in application layer (Application).With the communication protocol message format of oneself, default connection port 5187.From And it is that all kinds of block catenary systems propose a kind of standardized communication protocols format by the system;For the block chain of each different frameworks The integration of system platform provides a kind of base layer support, ensures that all block catenary systems based on this agreement all there is equity to pass Defeated permission and performance;It is communicated for Peer-to-Peer decentralizations, agrees with the property of block chain completely;Keep application scenarios wider It is general, reach the scene fusion of public chain, private connection and alliance's chain, the complexity of simplified side chain growth.
The communications protocol message of the block chain common node common recognition authentication communication system includes that new block generates message (rqbk), new block confirmation message (cfbk), transaction block generate message (rqtd), transaction block confirmation message (cftd) and access and ask Summation verification message (rqlg | rplg).
The specific message group package format such as table 2 of PBCP is PBCP message group packages format (rqbk | cfbk), table 3 is PBCP reports Text group packet format (rqtd | cftd), table 4 are PBCP message group packages format (rqlg | rplg).To pass through table 1, table 2, table 3, table 4, understand realization technical scheme of the present invention to help those skilled in the art.
The network model position that 1 block chain common node of the present invention of table is known together residing for the communication protocol method of certification It sets.
Table 2 is PBCP message group packages format (rqbk | cfbk)
Table 3 is PBCP message group packages format (rqtd | cftd)
Table 4PBCP message group packages format (rqlg | rplg)
The communication protocol method of block chain common node common recognition certification, includes the following steps described in embodiment 2,
(1) common node, which is reached the standard grade, issues access request rqlg messages, and certification node proceeds by body after receiving message at this time Part confirms, and an end-to-end special line TCP connection channel exclusively enjoyed is established between requesting node, then generates requesting node pair The authentication information answered simultaneously returns to rplg messages to requesting node;
(2) common node carries out self-confirming according to the authentication information received, and certification node is kept if legal Exclusively enjoy connection, wait for the call-information that local main thread order or other nodes are sent as watcher thread;
(3) common node receive generate new block instruction after, in the block message group packet to rqbk messages of the new districts Hui Jiang into Row the whole network broadcast acknowledgements;
(4) after the common node of non-new block request receives rqbk messages, confirmation message therein is unpacked, then in local The block common recognition verification algorithm of itself is called, the block common recognition verification algorithm is common knowledge to those skilled in the art, This is not repeated.It is legal to verify, then the confirmation marking variable Handled changed in the whole network answers cfbk messages from increasing 1;It tests Card does not conform to rule and abandons the invalid packet in instruction queue MsgQueue, responds;
(5) the new block request caching MainBlockCache of all common node regular checks oneself, it is found that some is to be selected new The Handled variables of block meet certain verification condition, and verification condition can be manually set as needed, then the block are believed Breath is transferred to local primary storage MainBase, while deleting the corresponding record in caching MainBlockCache.To pass through this System is that all kinds of block catenary systems propose a kind of standardized communication protocols format;For the block catenary system platform of each different frameworks Integration a kind of base layer support is provided, ensure all block catenary systems based on this agreement all and have reciprocity transmitting rights and Performance;It is communicated for Peer-to-Peer decentralizations, agrees with the property of block chain completely;Keep application scenarios more extensive, reaches public The scene fusion of chain, private connection and alliance's chain, the complexity of simplified side chain growth.
Embodiment 3, as shown in Figure 1, the communication protocol method of block chain common node common recognition certification, including following step Suddenly,
(1) common node, which is reached the standard grade, issues access request rqlg messages, and certification node proceeds by body after receiving message at this time Part confirms, and an end-to-end special line TCP connection channel exclusively enjoyed is established between requesting node, then generates requesting node pair The authentication information answered simultaneously returns to rplg messages to requesting node;
(2) common node carries out self-confirming according to the authentication information received, and certification node is kept if legal Exclusively enjoy connection, wait for the call-information that local main thread order or other nodes are sent as watcher thread;
(3) common node receive generate new block instruction after, in the block message group packet to rqbk messages of the new districts Hui Jiang into Row the whole network broadcast acknowledgements;
(4) after the common node of non-new block request receives rqbk messages, confirmation message therein is unpacked, then in local The block common recognition verification algorithm of itself is called, the block common recognition verification algorithm is common knowledge to those skilled in the art, This is not repeated, and verification is legal, then the confirmation marking variable Handled changed in the whole network answers cfbk messages from increasing 1;It tests Card does not conform to rule and abandons the invalid packet in instruction queue MsgQueue, responds;
(5) the new block request caching MainBlockCache of all common node regular checks oneself, it is found that some is to be selected new The Handled variables of block meet new block to be selected Handled variables be more than current online user Online 1/2, then The block information is transferred to local primary storage MainBase, while deleting the corresponding record in caching MainBlockCache.From And it is that all kinds of block catenary systems propose a kind of standardized communication protocols format by the system;For the block chain of each different frameworks The integration of system platform provides a kind of base layer support, ensures that all block catenary systems based on this agreement all there is equity to pass Defeated permission and performance;It is communicated for Peer-to-Peer decentralizations, agrees with the property of block chain completely;Keep application scenarios wider It is general, reach the scene fusion of public chain, private connection and alliance's chain, the complexity of simplified side chain growth.

Claims (3)

1. a kind of communication protocol method of block chain common node common recognition certification, it is characterised in that:In the application of Transmission Control Protocol model The communications protocol message of layer group packet PBCP, the block chain common node common recognition certification communication protocol method include that new block generates Message, new block confirmation message, transaction block generate message, transaction block confirmation message and access request and verification message.
2. the communication protocol method of block chain common node common recognition certification according to claim 1, it is characterised in that:Including Following steps,
(1) common node is reached the standard grade publication access request rqlg messages, and certification node receives that proceed by identity after message true at this time Recognize, and establish an end-to-end special line TCP connection channel exclusively enjoyed between requesting node, it is corresponding then to generate requesting node Authentication information and return to rplg messages to requesting node;
(2) common node carries out self-confirming according to the authentication information received, and the only of certification node is kept if legal Connection is enjoyed, the call-information that local main thread order or other nodes are sent is waited for as watcher thread;
(3) it is carried out after common node receives the instruction for generating new block, in the block message group packet to rqbk messages of the new districts Hui Jiang complete Net broadcast acknowledgements;
(4) after the common node of non-new block request receives rqbk messages, confirmation message therein is unpacked, then in local calling The block common recognition verification algorithm of itself, verification is legal, then the confirmation marking variable Handled changed in the whole network is returned from increasing 1 Answer cfbk messages;Verification does not conform to rule and abandons the invalid packet in instruction queue MsgQueue, responds;
(5) the new block request caching MainBlockCache of all common node regular checks oneself, has found some new block to be selected Handled variables meet certain verification condition, then the block information is transferred to local primary storage MainBase, deleted simultaneously Cache the corresponding record in MainBlockCache.
3. the communication protocol method of block chain common node common recognition certification according to claim 2, it is characterised in that:It is described Verification condition in step (5) is that the Handled variables of new block to be selected are more than the 1/2 of current online user Online.
CN201711342609.7A 2017-12-14 2017-12-14 Communication protocol method for block chain common node consensus authentication Expired - Fee Related CN108667790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711342609.7A CN108667790B (en) 2017-12-14 2017-12-14 Communication protocol method for block chain common node consensus authentication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711342609.7A CN108667790B (en) 2017-12-14 2017-12-14 Communication protocol method for block chain common node consensus authentication

Publications (2)

Publication Number Publication Date
CN108667790A true CN108667790A (en) 2018-10-16
CN108667790B CN108667790B (en) 2020-10-09

Family

ID=63785122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711342609.7A Expired - Fee Related CN108667790B (en) 2017-12-14 2017-12-14 Communication protocol method for block chain common node consensus authentication

Country Status (1)

Country Link
CN (1) CN108667790B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055187A (en) * 2021-04-23 2021-06-29 山东新一代信息产业技术研究院有限公司 Narrow-band line transmission method for block chain consensus

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170075941A1 (en) * 2016-11-28 2017-03-16 Keir Finlow-Bates Consensus system and method for adding data to a blockchain
CN106529951A (en) * 2016-12-30 2017-03-22 杭州云象网络技术有限公司 Node consensus verification method under league chain network through asynchronous mode
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN106656974A (en) * 2016-10-17 2017-05-10 江苏通付盾科技有限公司 Block chain grouping consensus method and system
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network
CN107046542A (en) * 2017-04-24 2017-08-15 杭州云象网络技术有限公司 A kind of method that common recognition checking is realized using hardware in network level
CN107124403A (en) * 2017-04-14 2017-09-01 朱清明 The generation method and computing device of common recognition block in block chain
CN107196900A (en) * 2017-03-24 2017-09-22 阿里巴巴集团控股有限公司 A kind of method and device for verification of knowing together
CN107220130A (en) * 2017-05-12 2017-09-29 北京众享比特科技有限公司 A kind of information common recognition method realized at the node of block chain, apparatus and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656974A (en) * 2016-10-17 2017-05-10 江苏通付盾科技有限公司 Block chain grouping consensus method and system
US20170075941A1 (en) * 2016-11-28 2017-03-16 Keir Finlow-Bates Consensus system and method for adding data to a blockchain
CN107005574A (en) * 2016-12-23 2017-08-01 深圳前海达闼云端智能科技有限公司 Block generation method and device and block chain network
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN106529951A (en) * 2016-12-30 2017-03-22 杭州云象网络技术有限公司 Node consensus verification method under league chain network through asynchronous mode
CN107196900A (en) * 2017-03-24 2017-09-22 阿里巴巴集团控股有限公司 A kind of method and device for verification of knowing together
CN107124403A (en) * 2017-04-14 2017-09-01 朱清明 The generation method and computing device of common recognition block in block chain
CN107046542A (en) * 2017-04-24 2017-08-15 杭州云象网络技术有限公司 A kind of method that common recognition checking is realized using hardware in network level
CN107220130A (en) * 2017-05-12 2017-09-29 北京众享比特科技有限公司 A kind of information common recognition method realized at the node of block chain, apparatus and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055187A (en) * 2021-04-23 2021-06-29 山东新一代信息产业技术研究院有限公司 Narrow-band line transmission method for block chain consensus

Also Published As

Publication number Publication date
CN108667790B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN110147994B (en) Instant execution method of block chain based on homomorphic encryption
CN108540536B (en) Block chain-based network mass service processing method, equipment and storage medium
CN112862612A (en) Method and device for sending resources in cross-link mode
US11341123B2 (en) Probabilistic relay for efficient propagation in a blockchain network
CN109345387A (en) Across the chain method of commerce of block chain, across chain communication device and storage medium
CN109447647A (en) A kind of safety payment system based on block chain
CN111683117B (en) Method, equipment and storage medium
CN107993149A (en) Account information management method, system and readable storage medium storing program for executing
CN105531979B (en) It is a kind of for exchanging the method and server of data between a client and a server
CN107579998A (en) Personal data center and digital identification authentication method based on block chain, digital identity and intelligent contract
CN107634948A (en) Method for interchanging data and system
CN112583593B (en) Private communication method and device between users
CN115913790B (en) Data transmission method based on privacy computing network, electronic equipment and storage medium
CN114567643B (en) Cross-blockchain data transfer method, device and related equipment
US11882205B2 (en) Systems for multi-blockchain, multi-token interoperability via common blockchain integration
CN109544128A (en) Contribute money the method and server of information management
CN112231741A (en) Data processing method, device, medium and electronic equipment based on block chain system
CN108933838A (en) Application data processing method and device
CN110098938A (en) Accelerate solution and system under a kind of trusted commission formula chain
WO2020042929A1 (en) Block chain system
US20230351370A1 (en) Electronic wallet and method for atomic swapping of two different blockchain tokens by using electronic wallet
CN112615838B (en) Extensible block chain cross-chain communication method
CN111667255B (en) Digital asset transfer system and method based on alliance chain
CN108667790A (en) A kind of communication protocol method of block chain common node common recognition certification
CN111815329A (en) Method for realizing high-performance block chain network based on cross-chain technology

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201009

Termination date: 20211214

CF01 Termination of patent right due to non-payment of annual fee