CN111598389A - Block chain-based trading system for preventing bill market risk - Google Patents

Block chain-based trading system for preventing bill market risk Download PDF

Info

Publication number
CN111598389A
CN111598389A CN202010276215.1A CN202010276215A CN111598389A CN 111598389 A CN111598389 A CN 111598389A CN 202010276215 A CN202010276215 A CN 202010276215A CN 111598389 A CN111598389 A CN 111598389A
Authority
CN
China
Prior art keywords
node
nodes
block
trading 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.)
Granted
Application number
CN202010276215.1A
Other languages
Chinese (zh)
Other versions
CN111598389B (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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN202010276215.1A priority Critical patent/CN111598389B/en
Publication of CN111598389A publication Critical patent/CN111598389A/en
Application granted granted Critical
Publication of CN111598389B publication Critical patent/CN111598389B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a block chain-based trading system for preventing bill market risk, which comprises: the device comprises a basic layer, a functional layer and an application layer, wherein the basic layer comprises: the system comprises a P2P network, an intelligent contract, a consensus algorithm and a digital signature, wherein the basic layer is in communication connection with a functional layer, the functional layer is used for providing functions of keeping, purchasing, selling and transferring bills, and the functional layer is in communication connection with an application layer. The invention overcomes the defect of centralization of the traditional trading system by constructing the three-layer trading system based on the block chain and improves the trading efficiency.

Description

Block chain-based trading system for preventing bill market risk
Technical Field
The invention relates to the technical field of block chains, in particular to a transaction system for preventing the risk of a bill market based on a block chain.
Background
The Byzantine fault-tolerant technology is a fault-tolerant technology in the field of distributed computing. The byzantine assumption is a modeling of the real world, and unpredictable behavior of computers and networks may occur due to hardware errors, network congestion or interruption, and malicious attacks. A parallel Byzantine Fault-tolerant algorithm (CBFT) is a new consensus algorithm developed from the Byzantine Fault-tolerant algorithm. Compared with the traditional fault-tolerant technology, the CBFT has concurrency, and each block can vote and be established in a mode of being concurrent with other blocks, so that the consensus speed is greatly improved.
The bill market is the main place for short-term fund financing, is the hub directly connecting industrial capital and financial capital, is a sub-market of the currency market, and is the most basic and the most extensive component in the transaction body in the whole currency system. Because the bill market system is centralized, once the central server goes wrong, the whole market is paralyzed, the problems of one bill for many sales, asynchronous paying and endorsement and the like easily occur, the potential risks such as credit risk, operation risk, supervision risk, paper ticket keeping risk and the like exist, the long-term healthy development of the market is influenced to a certain extent, and the bill market system is urgently concerned and solved.
Disclosure of Invention
The invention provides a transaction system for preventing the bill market risk based on a block chain, aiming at overcoming the defects that the bill transaction efficiency is low and centralization is easy to attack in the prior art.
The primary objective of the present invention is to solve the above technical problems, and the technical solution of the present invention is as follows:
a blockchain-based trading system for preventing risk in a ticket market, comprising: the device comprises a basic layer, a functional layer and an application layer, wherein the basic layer comprises: the system comprises a P2P network, an intelligent contract, a consensus algorithm and a digital signature, wherein the basic layer is in communication connection with a functional layer, the functional layer is used for providing functions of keeping, purchasing, selling and transferring bills, and the functional layer is in communication connection with an application layer.
In the scheme, the consensus algorithm is an improved CBFT algorithm, and the improved CBFT algorithm is used for carrying out consensus negotiation on the bills.
In this scheme, the specific process of performing consensus negotiation on the ticket through the improved CBFT algorithm is as follows:
receiving a bill transaction request sent by a user and feeding the request back to a building block node, wherein the building block node builds a block, packs bill transaction records to the block, generates a block timestamp, records transaction time and transaction data, and then sends the block to other nodes;
the nodes receive the created blocks, vote the blocks, digitally sign the voting information and forward the voting information to other nodes, and each node receives the votes of all the nodes and counts the votes to obtain a final result; the voting comprises: agreeing to admit the current block and disagreeing to admit the current block;
if the number of nodes agreeing to accept the current block exceeds two thirds, the block is confirmed, the current block is added to the block chain of the bill transaction, and a response is sent to the client side of the application layer.
In the scheme, in the process of identifying the bill transaction data, each node checks the voting information with other nodes.
In the scheme, the trading system further comprises a leader node, and when the trading system is added with a new node, authentication of the leader node is required. When a new node is added, the leader node authenticates the new node, and the safety of the trading system is enhanced.
In this scenario, the leader node generates the following conditions:
each node of the transaction can send a request for electing to become a leader node, the node after sending the request becomes a candidate node, and when other nodes in the transaction system receive the request, voting is started;
the candidate nodes can vote for themselves, when the number of votes selected by any one of the candidate nodes is greater than or equal to N/2+1, the candidate node becomes a leader node, wherein N is the total number of nodes of the trading system;
only one leader node is allowed to exist in the same period, if the leader node fails, the new leader node is determined by the votes of other nodes, and the original leader node does not have the leader authority any more.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
the invention overcomes the defect of centralization of the traditional trading system by constructing the three-layer trading system based on the block chain and improves the trading efficiency.
Drawings
FIG. 1 is a system architecture diagram of the present invention.
Fig. 2 is a flow chart of the agreement negotiation of the receipt transaction in the present invention.
FIG. 3 is a flow chart of electing a leader node in the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Noun interpretation
Block: the storage unit is a storage unit and adopts a structure of 'block head + block body', data used for verifying the validity of the recorded data in the block head and index data of a previous block are included in the block body, and the recorded data in a certain time is included in the block body.
Block chains: the method is essentially a decentralized database, and is used as a bottom-layer technology of the bitcoin, namely a series of data blocks which are generated by correlation through a cryptographic method, wherein each data block contains information of a batch of bitcoin network transactions, and the information is used for verifying the validity of the information and generating a next block.
And (3) node: the nodes in the ticket market risk system of the present invention are made up of a group of trustworthy participants who participate in building a P2P network environment, referred to as nodes.
Federation chain: a plurality of preselected nodes are designated as billers for members of a specific group and limited third parties, and generation of each block is determined by all the preselected nodes.
Digital signature: only the sender of the information can generate a digital string which cannot be forged by others, and the digital string is also a valid proof for the authenticity of the information sent by the sender of the information.
Intelligent contract: a contract that can be automatically executed on a computer system when certain conditions are met allows us to execute a traceable, irreversible, and secure transaction without the need for a third party.
The present invention is a client/server schema architecture with consensus on ticket trading based on a federation chain environment that is de-centric. The alliance chain network is composed of nodes and is responsible for storing block chain data, maintaining data consistency and providing block chain service for clients through alliance chains.
The node deploys an intelligent contract of the bill transaction when the alliance chain environment is built, the intelligent contract restricts the business rules of the bill transaction, and the intelligent contract is automatically executed when called by the transaction and strictly complies with the contract flow. The nodes play a transaction consensus role, and the nodes perform consensus on the bill transaction data through a modified CBFT algorithm.
Example 1
As shown in fig. 1, a block chain based trading system for preventing the risk of the bill market includes: the device comprises a basic layer, a functional layer and an application layer, wherein the basic layer comprises: the system comprises a P2P network, an intelligent contract, a consensus algorithm and a digital signature, wherein the basic layer is in communication connection with a functional layer, the functional layer is used for providing functions of keeping, purchasing, selling and transferring bills, and the functional layer is in communication connection with an application layer.
The nodes of the bill transaction participants form block chain nodes, the bills are regarded as a pass certificate (certificate of rights and interests), the safety and reliability of transaction data are guaranteed through the block chain, and the circulation of the pass certificate is completed.
In the scheme, the consensus algorithm is an improved CBFT algorithm, and the improved CBFT algorithm is used for carrying out consensus negotiation on the bills.
It should be noted that, because the improved parallel byzantine fault-tolerant algorithm (CBFT algorithm) may exchange wrong voting information due to a system error when coordinating nodes on a trading system, thereby causing a situation that final consistency of the system is affected, each node needs to check the voting information with other nodes in the process of consensus on the data of the bill transaction, thereby ensuring final consistency of the system.
The improved parallel Byzantine fault-tolerant algorithm plays an important role in a trading system for preventing the ticket market risk, when trading operation is carried out, the consensus node can verify the operation validity of updating the contract data, and the trade uplink is refused in a mode of casting a negative ticket in the negotiation process. The transaction confirmation time of the transaction system for preventing the ticket market risk is shortened through an improved parallel Byzantine fault-tolerant algorithm.
As shown in fig. 2, in the present solution, the specific process of performing consensus negotiation on a ticket through the improved CBFT algorithm is as follows:
receiving a bill transaction request sent by a user and feeding the request back to a building block node, wherein the building block node builds a block, packs bill transaction records to the block, generates a block timestamp, records transaction time and transaction data, and then sends the block to other nodes;
the nodes receive the created blocks, vote the blocks, digitally sign the voting information and forward the voting information to other nodes, and each node receives the votes of all the nodes and counts the votes to obtain a final result; the voting comprises: agreeing to admit the current block and disagreeing to admit the current block;
if the number of nodes agreeing to accept the current block exceeds two thirds, the block is confirmed, the current block is added to the block chain of the bill transaction, and a response is sent to the client side of the application layer.
In the scheme, in the process of identifying the bill transaction data, each node checks the voting information with other nodes.
The improved CBFT algorithm improves the consensus speed, shortens the transaction confirmation time, and ensures the final consistency of the system through checking the voting information among the nodes, thereby effectively realizing the consensus on the bill transaction data.
In the scheme, the trading system further comprises a leader node, and when the trading system is added with a new node, authentication of the leader node is required. When a new node is added, the leader node authenticates the new node, and the safety of the trading system is enhanced.
It should be noted that, the same piece of ticket transaction data generally needs to be distributed to a plurality of distributed nodes, which is vulnerable to the threat of witch attack, and if a malicious node exists in the P2P network, and the data that originally needs to be distributed to the plurality of nodes is fraudulently backed up to the same malicious node, the malicious node can control a large part of the system, thereby destroying the redundancy policy of the system. In order to reduce the influence of Sybil attacks on a trading system for preventing the ticket market risk, a reliable leader node is elected, and when the system joins a new node, authentication of the leader node is required:
as shown in fig. 3, the step of electing the leader node, in this scheme, the leader node generates the following conditions:
each node of the transaction can send a request for electing to become a leader node, the node after sending the request becomes a candidate node, and when other nodes in the transaction system receive the request, voting is started;
the candidate nodes can vote for themselves, when the number of votes selected by any one of the candidate nodes is greater than or equal to N/2+1, the candidate node becomes a leader node, wherein N is the total number of nodes of the trading system;
and only one leader node is allowed in the same period, if the leader node fails, the new leader node is determined by the votes of other nodes, and the original leader node does not have the leader authority any more.
When a trading system for preventing the bill market risk joins a new node, the leader node sends a request of a certificate capable of proving the identity of the node to the new joining node, after the new joining node receives the request, the new joining node responds to the leader node and sends related certificate information, and then the leader node carries out authentication according to the information of the new joining node and determines whether the new joining node can really join the network or not.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (6)

1. A blockchain-based trading system for preventing risk in a ticket market, comprising: the device comprises a basic layer, a functional layer and an application layer, wherein the basic layer comprises: the system comprises a P2P network, an intelligent contract, a consensus algorithm and a digital signature, wherein the basic layer is in communication connection with a functional layer, the functional layer is used for providing functions of keeping, purchasing, selling and transferring bills, and the functional layer is in communication connection with an application layer.
2. The blockchain-based trading system for preventing ticket market risk of claim 1, wherein the consensus algorithm is a modified CBFT algorithm, and the consensus negotiation is performed on the tickets through the modified CBFT algorithm.
3. The block chain-based trading system for preventing the market risk of the bills according to claim 2, wherein the specific process of the consensus negotiation of the bills through the improved CBFT algorithm is as follows: receiving a bill transaction request sent by a user and feeding the request back to a building block node, wherein the building block node builds a block, packs bill transaction records to the block, generates a block timestamp, records transaction time and transaction data, and then sends the block to other nodes;
the nodes receive the created blocks, vote the blocks, digitally sign the voting information and forward the voting information to other nodes, and each node receives the votes of all the nodes and counts the votes to obtain a final result; the voting comprises: agreeing to admit the current block and disagreeing to admit the current block;
if the number of nodes agreeing to accept the current block exceeds two thirds, the block is confirmed, the current block is added to the block chain of the bill transaction, and a response is sent to the client side of the application layer.
4. The blockchain-based trading system for preventing the market risk of the bills according to claim 1, wherein each node checks the voting information with other nodes in the process of identifying the data of the trades of the bills.
5. The block chain-based trading system for preventing the risk of the bill market according to claim 1, further comprising a leader node, wherein the certification by the leader node is required each time the trading system joins a new node.
6. The blockchain-based trading system for preventing ticket market risk according to claim 5, wherein the leader node generates conditions including:
each node of the transaction can send a request for electing to become a leader node, the node after sending the request becomes a candidate node, and when other nodes in the transaction system receive the request, voting is started;
the candidate nodes can vote for themselves, when the number of votes selected by any one of the candidate nodes is greater than or equal to N/2+1, the candidate node becomes a leader node, wherein N is the total number of nodes of the trading system;
only one leader node is allowed to exist in the same period, if the leader node fails, the new leader node is determined by the votes of other nodes, and the original leader node does not have the leader authority any more.
CN202010276215.1A 2020-04-09 2020-04-09 Transaction system for preventing bill market risk based on blockchain Active CN111598389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010276215.1A CN111598389B (en) 2020-04-09 2020-04-09 Transaction system for preventing bill market risk based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010276215.1A CN111598389B (en) 2020-04-09 2020-04-09 Transaction system for preventing bill market risk based on blockchain

Publications (2)

Publication Number Publication Date
CN111598389A true CN111598389A (en) 2020-08-28
CN111598389B CN111598389B (en) 2023-04-28

Family

ID=72184951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010276215.1A Active CN111598389B (en) 2020-04-09 2020-04-09 Transaction system for preventing bill market risk based on blockchain

Country Status (1)

Country Link
CN (1) CN111598389B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150161A (en) * 2020-09-30 2020-12-29 重庆市科学技术研究院 Electronic ticket transaction risk management and control system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780033A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of digital ticket transaction system construction method based on alliance's chain
CN108830709A (en) * 2018-04-17 2018-11-16 中车工业研究院有限公司 A kind of crowdsourcing transaction system based on block chain
CN109919760A (en) * 2019-01-11 2019-06-21 南京邮电大学 Byzantine failure tolerance common recognition algorithm based on voting mechanism
CN110569395A (en) * 2018-05-18 2019-12-13 北京天德科技有限公司 stable and reliable block chain Byzantine consensus process design method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780033A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of digital ticket transaction system construction method based on alliance's chain
CN108830709A (en) * 2018-04-17 2018-11-16 中车工业研究院有限公司 A kind of crowdsourcing transaction system based on block chain
CN110569395A (en) * 2018-05-18 2019-12-13 北京天德科技有限公司 stable and reliable block chain Byzantine consensus process design method
CN109919760A (en) * 2019-01-11 2019-06-21 南京邮电大学 Byzantine failure tolerance common recognition algorithm based on voting mechanism

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150161A (en) * 2020-09-30 2020-12-29 重庆市科学技术研究院 Electronic ticket transaction risk management and control system and method
CN112150161B (en) * 2020-09-30 2023-08-08 重庆市科学技术研究院 Electronic ticket transaction risk management and control system and method

Also Published As

Publication number Publication date
CN111598389B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
US11669811B2 (en) Blockchain-based digital token utilization
US10942994B2 (en) Multicomputer processing for data authentication using a blockchain approach
CN111183445B (en) Method and apparatus for digital asset auto-promise settlement
CN110870254B (en) Method and system for providing distributed private subspaced data structures
US20200294158A1 (en) Method for secure ledger distribution and computer system using secure distributed ledger technology
US11153069B2 (en) Data authentication using a blockchain approach
CN109691008B (en) Network topology
US20190354518A1 (en) Chain mesh network for decentralized transaction systems
CN111133463A (en) Intelligent contract execution using distributed coordination
US10693646B2 (en) Event execution using a blockchain approach
US11250021B2 (en) Faster view change for blockchain
JP2022553946A (en) Conducting transactions using private and public blockchains
CN112868210A (en) Block chain timestamp protocol
CN111383114A (en) Asset information management method and device based on block chain
US20220329436A1 (en) Token-based identity validation via blockchain
Innerbichler et al. Federated byzantine agreement to ensure trustworthiness of digital manufacturing platforms
CN111402033A (en) Asset information management method and device based on block chain
CN111340628A (en) Asset information management method and device based on block chain
Jeon et al. RMBC: Randomized mesh blockchain using DBFT consensus algorithm
Pupyshev et al. Gravity: a blockchain-agnostic cross-chain communication and data oracles protocol
US20230092436A1 (en) Framework for demaraction of digital assets
CN111598389B (en) Transaction system for preventing bill market risk based on blockchain
US20230229795A1 (en) Evidence management method, evidence management system, and node
Yoshihama et al. Study on integrity and privacy requirements of distributed ledger technologies
CN114154969B (en) Large-scale trading and settlement method based on block chain

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