CN115456778B - Bond block chain updating method and device - Google Patents

Bond block chain updating method and device Download PDF

Info

Publication number
CN115456778B
CN115456778B CN202211067724.9A CN202211067724A CN115456778B CN 115456778 B CN115456778 B CN 115456778B CN 202211067724 A CN202211067724 A CN 202211067724A CN 115456778 B CN115456778 B CN 115456778B
Authority
CN
China
Prior art keywords
bond
information
block
target
buying
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
CN202211067724.9A
Other languages
Chinese (zh)
Other versions
CN115456778A (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.)
China Securities Co Ltd
Original Assignee
China Securities Co Ltd
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 China Securities Co Ltd filed Critical China Securities Co Ltd
Priority to CN202211067724.9A priority Critical patent/CN115456778B/en
Publication of CN115456778A publication Critical patent/CN115456778A/en
Application granted granted Critical
Publication of CN115456778B publication Critical patent/CN115456778B/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a method and a device for updating a bond blockchain, which relate to the technical field of data processing, and the method comprises the following steps: traversing each block in the stored bond block chain under the condition that the user is determined to have bond transaction requirements, and acquiring bond information recorded in each block; obtaining a bond transaction instruction input by a user according to bond information; reporting target bond information to a trading market server; generating a target block containing target bond information, and adding the target block into a self-stored bond block chain; the target block is sent to each other terminal node in the node network such that each other terminal node adds the target block to its own stored bond blockchain. By applying the scheme provided by the embodiment of the invention, the user can conveniently obtain the bond information, efficiently trade bonds and promote the development of bond market.

Description

Bond block chain updating method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a bond block chain updating method and device.
Background
In the prior art, a user participating in a bond transaction can only obtain bond information generated in a bond transaction market through an economic merchant, so that the user has difficulty in obtaining the bond information, and the process of performing the bond transaction is inconvenient.
For example, when a trading party carries out a trade of a bond in a trade market, a bond buyer can only obtain the buying price of the bond when the bond is successfully traded for the latest time through a broker, and determine the buying price to be reported to the trade market according to the obtained price, and a bond seller can only obtain the selling price of the bond when the bond is successfully traded for the latest time through the broker, and determine the selling price to be reported to the trade market according to the obtained price.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for updating a bond blockchain, so that a user can conveniently obtain bond information. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for updating a bond blockchain, applied to each terminal node in a node network, where the node network includes a plurality of terminal nodes, each terminal node is communicatively connected to other terminal nodes in the node network except for the terminal node, and each terminal node stores a bond blockchain, and each block in the bond blockchain is used for recording bond information, where the method includes:
Traversing each block in the stored bond block chain under the condition that the user is determined to have bond transaction requirements, and acquiring bond information recorded in each block;
obtaining a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a trading market server;
reporting the target bond information to a trading market server;
generating a target block containing the target bond information, and adding the target block into a self-stored bond block chain;
the target block is sent to each other terminal node in the network of nodes such that each other terminal node adds the target block to its own stored bond blockchain.
In a second aspect, an embodiment of the present invention provides a bond blockchain updating device applied to each terminal node in a node network, where the node network includes a plurality of terminal nodes, each terminal node is communicatively connected to other terminal nodes in the node network except for the terminal node, and each terminal node stores therein a bond blockchain, and each block in the bond blockchain is used for recording bond information, where the device includes:
The bond information acquisition module is used for traversing each block in the stored bond block chain to acquire bond information recorded in each block under the condition that the user is determined to have a bond transaction requirement;
the bond transaction instruction acquisition module is used for acquiring a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a trading market server;
the target bond information reporting module is used for reporting the target bond information to the trading market server;
the target block generation module is used for generating a target block containing the target bond information and adding the target block into a self-stored bond block chain;
and the target block sending module is used for sending the target block to each other terminal node in the node network so that each other terminal node adds the target block into the self-stored bond block chain.
In a third aspect, an electronic device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory perform communication with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing any of the method steps of the first aspect described above when executing a program stored on a memory.
In a fourth aspect, a computer readable storage medium has a computer program stored therein, which when executed by a processor, implements any of the method steps of the first aspect.
The embodiment of the invention has the beneficial effects that:
the embodiment of the invention provides a bond block chain updating method which is applied to each terminal node in a node network, wherein the node network comprises a plurality of terminal nodes, each terminal node is in communication connection with other terminal nodes except the terminal node in the node network, each terminal node stores a bond block chain, each block in the bond block chain is used for recording bond information, and under the condition that a user is determined to have bond transaction requirements, the terminal node traverses each block in the stored bond block chain to acquire the bond information recorded in each block; obtaining a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a market server; reporting the target bond information to a trading market server; generating a target block containing the target bond information, and adding the target block into a self-stored bond block chain; the target block is transmitted to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond block chain.
In view of the above, in the case that it is determined that the user has a bond transaction requirement, the terminal node may first acquire bond information in each block in the bond block chain, and then the user may perform a bond transaction based on the bond information acquired by the terminal node, where the acquired bond information is bond information recorded in all blocks in the bond block chain, so that the user may acquire a large amount of bond information through one terminal node when performing the bond transaction, so that the user may acquire bond information more conveniently. And the user can refer to more bond information when carrying out bond transaction, so that the user can conveniently and efficiently carry out bond transaction, and the development of bond market is promoted.
In addition, after obtaining a large amount of bond information, the user may input a bond transaction instruction to the terminal node, where the bond transaction instruction includes target bond information, where the target bond information is newly generated bond information included in the bond transaction instruction newly input by the user, and the terminal node may generate a target block including the target bond information and add the target block to a bond block chain stored in the terminal node, and then send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond block chain stored in the terminal node, and thus each terminal node can obtain the newly generated target bond information, thereby ensuring that bond information recorded in the bond block chain stored in each terminal node remains synchronous with the current latest bond transaction situation. And, each terminal node can acquire the same bond information, so that the bond information is publicly transparent to each terminal node.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
Fig. 1A is a schematic structural diagram of a node network according to an embodiment of the present invention;
fig. 1B is a schematic structural diagram of a bond blockchain according to an embodiment of the present invention;
fig. 2 is a flowchart of a first method for updating a bond blockchain according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second method for updating a bond blockchain according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of acquiring purchase information according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a third method for updating a bond blockchain according to an embodiment of the present invention;
FIG. 6 is a flowchart of acquiring sales information according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a fourth method for updating a bond blockchain according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a fifth method for updating a bond blockchain according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating a sixth method for updating a bond blockchain according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a module for verifying target bond information according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a first bond blockchain updating device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a second device for updating a bond blockchain according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art will be able to devise all other embodiments that are obtained based on this application and are within the scope of the present invention.
In order to enable a user to conveniently obtain bond information, the embodiment of the invention provides a method and a device for updating a bond blockchain.
The embodiment of the invention provides a method for updating a bond blockchain, which comprises the following steps:
traversing each block in the stored bond block chain under the condition that the user is determined to have bond transaction requirements, and acquiring bond information recorded in each block;
obtaining a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a market server;
reporting the target bond information to a trading market server;
generating a target block containing the target bond information, and adding the target block into a self-stored bond block chain;
the target block is transmitted to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond block chain.
In view of the above, in the case that it is determined that the user has a bond transaction requirement, the terminal node may first acquire bond information in each block in the bond block chain, and then the user may perform a bond transaction based on the bond information acquired by the terminal node, where the acquired bond information is bond information recorded in all blocks in the bond block chain, so that the user may acquire a large amount of bond information through one terminal node when performing the bond transaction, so that the user may acquire bond information more conveniently. And the user can refer to more bond information when carrying out bond transaction, so that the user can conveniently and efficiently carry out bond transaction, and the development of bond market is promoted.
In addition, after obtaining a large amount of bond information, the user may input a bond transaction instruction to the terminal node, where the bond transaction instruction includes target bond information, where the target bond information is newly generated bond information included in the bond transaction instruction newly input by the user, and the terminal node may generate a target block including the target bond information and add the target block to a bond block chain stored in the terminal node, and then send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond block chain stored in the terminal node, and thus each terminal node can obtain the newly generated target bond information, thereby ensuring that bond information recorded in the bond block chain stored in each terminal node remains synchronous with the current latest bond transaction situation. And, each terminal node can acquire the same bond information, so that the bond information is publicly transparent to each terminal node. The bond transaction party does not need to obtain bond information through an economic merchant serving as a transaction center, so the proposal provided by the embodiment of the invention can realize a decentralised bond transaction process.
The implementation main body of the scheme is each terminal node in a node network, the node network comprises a plurality of terminal nodes, and each terminal node is in communication connection with other terminal nodes except the terminal node in the node network. Each terminal node stores therein a bond blockchain, each block of the bond blockchain for recording bond information.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of a node network according to an embodiment of the present invention, where the node network in fig. 1A includes a first terminal node, a second terminal node, and a third terminal node, and a connection line between each terminal node indicates that two terminal nodes are connected to each other. The first terminal node is respectively connected with a second terminal node and a third terminal node in a communication way, the second terminal node is respectively connected with the first terminal node and the third terminal node in a communication way, and the third terminal node is respectively connected with the first terminal node and the second terminal node in a communication way.
In addition, fig. 1B is a schematic structural diagram of a bond block chain according to an embodiment of the present invention, where the bond block in fig. 1B includes: the lines of arrows between the bond blocks indicate that the two bond blocks are connected to each other. In fig. 1B, the first block is connected to the second block, and the first block is located before the second block, and the second block is connected to the third block, and the second block is located before the third block.
In addition, each block may be constituted by a block header in which the bond information is stored and a block body in which detailed information of the block is recorded, such as: the version number of the block, the memory address, the event stamp, the random number, the hash value of the block, the Merkle root, the status information indicating whether the block can be read, etc. of the block connected to the block preamble.
Fig. 2 is a flow chart of a first method for updating a bond blockchain according to an embodiment of the present invention, as shown in fig. 2, may include the following steps: step S201 to step S205.
Step S201: and traversing each block in the stored bond block chain to acquire bond information recorded in each block under the condition that the user is determined to have bond transaction requirements.
In particular, in the case where the user is a transaction party involved in the buying and selling of bonds, the above-mentioned bond transaction requirements may be: the requirements of the user for buying the bond and the requirements of the user for selling the bond, and in the case that the user is a controlling transaction party, the bond transaction requirements may be: controls the need to complete bond transactions between users, etc.
In addition, the bond blockchain may include: the block information recorded in the blocks in different block chains of the bond block chain is different, such as: and if the bond blockchain is a buying bond blockchain, recording buying information which is reported to a trading market server and used for representing the action of buying the bond by the user in each block in the buying bond blockchain, and if the bond blockchain is a selling bond blockchain, recording selling information which is reported to the trading market server and used for representing the action of selling the bond by the user in each block in the selling bond blockchain, and if the bond blockchain is a trading bond blockchain, recording transaction information which represents the condition of successfully completed bond transaction in each block in the trading bond blockchain.
Specifically, the terminal node may traverse the bond blockchain corresponding to the bond transaction requirement according to the bond transaction requirement existing by the user, for example: if the user wants to buy the bond, the terminal node can traverse the buying bond blockchain to acquire the buying information which is already recorded and reported to the trading market server, if the user wants to sell the bond, the terminal node can traverse the selling bond blockchain to acquire the selling information which is already recorded and reported to the trading market server, and if the user wants to trade the bond, the terminal node can traverse the trading bond blockchain to acquire the trading information which records the trading condition of the bond.
In one embodiment of the present invention, the step S201 may be implemented by the step S201A in fig. 3, or may be implemented by the step S201B in fig. 5, or may be implemented by the steps S201C-S201D in fig. 7, which is not described in detail herein.
Step S202: and obtaining a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a market server.
Specifically, since the obtained bond information is all the bond information in the bond blockchain, and the above-described individual bond information is all the bond information that has been reported to the market-for-exchange server. Accordingly, the user can refer to the respective bond information to determine the target bond information.
In addition, after determining the target bond information, the user may input a bond transaction instruction to the terminal node according to the target bond information, and then the terminal node inputs the target bond information to the terminal node according to the bond transaction instruction.
In one embodiment of the present invention, the step S202 may be implemented by the step S202A in fig. 3, or may be implemented by the step S202B in fig. 5, or may be implemented by the step S202C in fig. 7, which is not described in detail herein.
Step S203: and reporting the target bond information to a trading market server.
Specifically, after the terminal node reports the target bond information to the transaction market server, the target bond information will be stored in the transaction market server, and other users with bond transaction requirements can query the target bond information from the transaction market server.
In one embodiment of the present invention, the step S203 may be implemented by the step S203A in fig. 3, or may be implemented by the step S203B in fig. 5, or may be implemented by the step S203C in fig. 7, which is not described in detail herein.
Step S204: and generating a target block containing the target bond information, and adding the target block into a self-stored bond block chain.
Specifically, the terminal node generates a target block containing the target bond information, and adds the target block to the self-stored bond blockchain, so as to ensure that the bond information in the bond blockchain stored in the terminal node is kept synchronous with the current bond transaction condition.
In one embodiment of the present invention, when the terminal node obtains the bond transaction instruction, the terminal node may be used as a master node, and the master node may be capable of adding blocks to the stored bond blockchain.
In another embodiment of the present invention, a target block including the target bond information is first generated, and since the blocks in the bond block chain are sequentially connected to each other, a last block in the bond block chain can be determined, and the target block is added to the bond block chain such that the target block is connected to a last block in the bond block chain.
In one embodiment of the present invention, the step S204 may be implemented by the step S204A in fig. 3, or may be implemented by the step S204B in fig. 5, or may be implemented by the step S204C in fig. 7, which is not described in detail herein.
Step S205: the target block is transmitted to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond block chain.
Specifically, because each terminal node in the node network is in communication connection with other terminal nodes except the terminal node in the node network, the terminal node can send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond blockchain stored by itself, the bond information recorded in the bond blockchain stored in each terminal node can be ensured to be the same, and the synchronization with the current bond transaction condition can be maintained.
In one embodiment of the present invention, the terminal node sequentially transmits the target block to other terminal nodes in the node network, and each other terminal node adds the target block to the bond block chain stored in the other terminal node after receiving the target block, so that the target block is connected to the last block in the bond block chain stored in the other terminal node.
In addition, the terminal node may send the target block To other terminal nodes by using a P2P (Peer To Peer) transmission scheme.
In one embodiment of the present invention, the step S205 may be implemented by the step S205A in fig. 3, or may be implemented by the step S205B in fig. 5, or may be implemented by the step S205C in fig. 7, which is not described in detail herein.
In view of the above, in the case that it is determined that the user has a bond transaction requirement, the terminal node may first acquire bond information in each block in the bond block chain, and then the user may perform a bond transaction based on the bond information acquired by the terminal node, where the acquired bond information is bond information recorded in all blocks in the bond block chain, so that the user may acquire a large amount of bond information through one terminal node when performing the bond transaction, so that the user may acquire bond information more conveniently. And the user can refer to more bond information when carrying out bond transaction, so that the user can conveniently and efficiently carry out bond transaction, and the development of bond market is promoted.
In addition, after obtaining a large amount of bond information, the user may input a bond transaction instruction to the terminal node, where the bond transaction instruction includes target bond information, where the target bond information is newly generated bond information included in the bond transaction instruction newly input by the user, and the terminal node may generate a target block including the target bond information and add the target block to a bond block chain stored in the terminal node, and then send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond block chain stored in the terminal node, and thus each terminal node can obtain the newly generated target bond information, thereby ensuring that bond information recorded in the bond block chain stored in each terminal node remains synchronous with the current latest bond transaction situation. And, each terminal node can acquire the same bond information, so that the bond information is publicly transparent to each terminal node.
Fig. 3 is a flow chart of a second method for updating a bond blockchain according to an embodiment of the present invention, as shown in fig. 3, compared with the embodiment shown in fig. 2, the above step S201 may be implemented by the following step S201A; the step S202 may be implemented by the following step S202A; the above step S203 may be implemented by the following S203A; the step S204 may be implemented by the following step S204A; the above step S205 may be implemented by the following step S205A.
Step S201A: in the case that the user is determined to request to buy the bond, traversing each buying block in the stored buying bond block chain, and acquiring buying information recorded in each buying block.
Specifically, the buying information is used for indicating the historical behavior of the transaction party for requesting to buy the bond, and the buying information is reported to the transaction market server. Wherein, the history behavior includes all behaviors that all transaction parties request to buy the bond, including the behavior that the user requests to buy the bond but finally does not buy the bond successfully, and the behavior that the user buys the bond successfully.
The purchase information may include: the bond mark, the net price of the purchased bond, the full price of the purchased bond, the due rate of the bond, the number of the purchased bonds, the time of the request to purchase the bond, the identity of the request to purchase the bond, the digital signature of the request to purchase the bond, etc.
The buying information already reported to the trading server is stored in each buying block in the above-mentioned buying bond block chain, so that the terminal node can obtain the buying information of the buying bonds recorded in each buying block by traversing each buying block in the stored buying bond block chain, namely, can obtain all the buying information already reported to the trading server.
In one embodiment of the invention, the terminal node traverses each block in the stored bond blockchain to acquire the purchase information stored in each purchase block, namely, all the purchase information which is historically reported to the trading market server by each trading party can be acquired, and then all the purchase information can be displayed on a display of the terminal node for a user who has a demand for buying bonds to check, so that the user can determine the quotation of the bond purchased by the user according to the acquired purchase information, and the like, thereby carrying out the process of buying bonds subsequently.
In the case that the user is a bond buyer participating in bond buying and selling, and the terminal node provides services for the bond buyer, referring to fig. 4, fig. 4 is a flow chart of acquiring buying information according to an embodiment of the present invention.
Step S401: traversing each buying block in the buying bond block chain, and reading the state information of the buying block.
Step S402: judging whether the state information of the buying block is normal or not.
Specifically, if the status information of the purchase block is normal, it is indicated that the status information of the purchase block indicates that the purchase information in the purchase block can be read, step S403 is performed, otherwise step S404 is performed.
In addition, whether the state information is normal or not can be judged according to whether the state information is complete or not, for example: if a piece of information in the state information is missing, the state information is considered to be incomplete, and if no piece of information is missing, the state information is considered to be complete, the state information is considered to be normal.
Step S403: the buying information in the buying block is read and the buying information is displayed.
Step S404: the purchase information in the purchase block is not read.
Such as: the block chain of the buying bond contains 3 buying blocks in total: the first buying block, the second buying block and the third buying block. The terminal node firstly reads the state information in the first buying block, if the state information in the first buying block is normal, the state information indicates that the buying information in the first buying block can be read, and reads the buying information of the first buying block and displays the buying information on a display capable of being used by the terminal node; then reading the state information in the second buying block, if the state information in the second buying block is abnormal, indicating that the state information indicates that the buying information in the second buying block cannot be read, and not reading the buying information of the second buying block; and then reading the state information in the third buying block, if the state information in the third buying block is normal, indicating that the buying information in the third buying block can be read, reading the buying information of the third buying block, and displaying the buying information on a display capable of being used for terminal nodes, wherein the process of traversing the buying bond block chain is stopped because the state information of all blocks in the buying bond block chain is read.
Step S202A: and obtaining a bond buying command input by the user according to the buying information.
Wherein, the bond buying instruction comprises: target buying information to be reported to the market server, wherein the target buying information represents the behavior of the user for buying bonds.
Specifically, the act of requesting to buy the bond may include: the user determines the net price of the purchased bond, the user determines the full price of the purchased bond, the user determines the number of purchased bonds, etc.
In addition, since the terminal node obtains the buying information of all the buying bonds that have been reported to the market-exchanging server, the user who has a bond buying demand can determine target buying information according to the buying information of all the buying bonds, including the net price of the bond the user has requested to buy, the full price of the bond the user has bought this time, the number of bonds the user has bought this time, the identification code of the bond that has bought this time, the generation time of generating the target buying information, the offer of offer (international trade newspaper disc), bid (bid) offer, the short name of the bond that has bought, bid yield, bid full price, bid net price, information indicating whether the price of the bond that has bought can be negotiated, the trade identification of the bond that has bought, and the like.
Step S203A: and reporting the target buying information to a trading market server.
Step S204A: generating a target buying block containing the target buying information, and adding the target buying block into a buying bond block chain stored by the target buying block.
Specifically, the terminal node generates a target buying block containing the target buying information, and adds the target buying block to a buying bond block chain stored in the terminal node, so that the target buying information in the buying bond block chain stored in the terminal node is ensured to keep synchronous with the current buying bond transaction condition.
In one embodiment of the present invention, the generated target buying block is composed of a target buying block header and a target buying block body.
The information contained in the target buying block header is similar to the information contained in the block header, and will not be described again here. The target buying block is used for recording target buying information.
In one embodiment of the present invention, when the terminal node obtains the bond buying instruction, the terminal node may be used as a master node, and the master node may be capable of adding a target buying block to the stored buying bond blockchain.
Step S205A: the target purchase block is transmitted to each other terminal node in the node network, so that each other terminal node adds the target purchase block to a target purchase bond block chain stored by the terminal node.
Specifically, because each terminal node in the node network is in communication connection with other terminal nodes in the node network except for the terminal node, the terminal node can send the target buying block to each other terminal node in the node network, so that each other terminal node adds the target buying block to the self-stored buying bond block chain, the bond buying information recorded in the buying bond block chain stored in each terminal node can be ensured to be the same, and the transaction condition of the current buying bond is kept synchronous.
In one embodiment of the present invention, the terminal node sequentially transmits the target buying block to other terminal nodes in the node network, and each other terminal node adds the target buying block to the buying bond blockchain stored in the other terminal node after receiving the target buying block, so that the target buying block is connected to the last buying block in the buying bond blockchain stored in the other terminal node.
In addition, the terminal node may send the target purchase block to other terminal nodes by using a P2P transmission method.
In view of the above, when it is determined that the user has a demand for buying the bond transaction, the terminal node may first acquire the buying information in each buying block in the block chain of buying the bond, and then the user may perform the buying transaction of the bond based on the buying bond information acquired by the terminal node, where the acquired buying information is the buying information recorded in all the buying blocks in the block chain of buying the bond, so that the user may acquire a large amount of buying information through one terminal node when performing the buying transaction of the bond, so that the user may acquire the buying information more conveniently. And the buying information which can be referred by the user when buying the bond is more, so that the user can conveniently buy the bond.
In addition, after obtaining a large amount of buying information, the user may input a bond buying instruction to the terminal node, where the bond buying instruction includes target buying information, where the target buying information is newly generated buying information included in the bond transaction instruction that is newly input by the user, and the terminal node may generate a target buying block including the target buying information and add the target buying block to a self-stored buying bond block chain, and then send the target buying block to each other terminal node in the node network, so that each other terminal node adds the target buying block to the self-stored bond buying block chain, and each terminal node can obtain the newly generated target buying information, thereby ensuring that the buying information recorded in the buying bond block chain stored in each terminal node is kept synchronous with the current latest bond buying transaction situation. And, each terminal node can acquire the same buying information, so that the buying information is publicly transparent for each terminal node.
Fig. 5 is a schematic flow chart of a third method for updating a bond blockchain according to an embodiment of the present invention, as shown in fig. 5, compared with the embodiment shown in fig. 2, the above step S201 may be implemented by the following step S201B; the step S202 may be implemented by the following step S202B; the above step S203 may be implemented by the following step S203B; the step S204 may be implemented by the following step S204B; the above step S205 may be implemented by the following step S205B.
Step S201B: in the event that it is determined that the user requests to sell a bond, traversing each of the stored sell blobs in the chain of sell bonds, and obtaining the sell information recorded in each of the sell blobs.
Specifically, the selling information is used for indicating the historical behavior of the transaction party for requesting to sell the bond, and the selling information is reported to the transaction market server. Wherein, the historical actions include all actions of all transaction parties requesting to sell the bond, including actions of a user requesting to sell the bond but eventually unsuccessfully selling the bond, and actions of enabling the user to sell the bond successfully.
The sales information may include: the bond mark, the net price of the sold bond, the full price of the sold bond, the due rate of the bond, the number of bonds sold, the time the bond is requested to be sold, the identity of the bond requested to be sold, the digital signature of the bond requested to be sold, etc.
The selling information of the sold bonds recorded in each selling block can be obtained by traversing each selling block in the stored selling bond block chain, namely, all the selling information of the sold bonds reported to the trading market server can be obtained.
In one embodiment of the invention, the terminal node traverses each selling block in the stored bond block chain, acquires the selling information stored in each selling block, namely, acquires all the selling information which is historically reported to the trading market server by each trading party, and then displays all the selling information on a display of the terminal node for a user with the requirement of selling bonds to check, so that the user can determine the quotation of the bond sold by the user according to the acquired selling information, and the like, thereby carrying out the subsequent process of selling bonds.
In the case that the user is a bond seller participating in bond buying and selling, and the terminal node provides services for the bond seller, referring to fig. 6, fig. 6 is a schematic flow chart of acquiring sales information according to an embodiment of the present invention.
Step S601: traversing each sell chunk in the sell bond blockchain, and reading the status information of the sell chunk.
Step S602: judging whether the state information of the sold block is normal.
Specifically, if the status information of the sold block is normal, it is indicated that the status information of the sold block indicates that the sold information in the sold block can be read, step S603 is performed, otherwise step S604 is performed.
In addition, whether the state information is normal or not can be judged according to whether the state information is complete or not, for example: if a piece of information in the state information is missing, the state information is considered to be incomplete, and if no piece of information is missing, the state information is considered to be complete, the state information is considered to be normal.
Step S603: the sell information in the sell block is read and the sell information is displayed.
Step S604: the sell information in the sell block is not read.
Such as: the sell bond blockchain contains 3 sell blocks in total: the first sell block, the second sell block, and the third sell block. The terminal node firstly reads the state information in the first selling block, if the state information in the first selling block is normal, the state information indicates that the selling information in the first selling block can be read, and reads the selling information of the first selling block and displays the selling information on a display capable of being displayed on the terminal node; then reading the state information in the second selling block, if the state information in the second selling block is abnormal, indicating that the state information indicates that the selling information in the second selling block cannot be read, and not reading the selling information of the second selling block; and then reading the state information in the third selling block, if the state information in the third selling block is normal, indicating that the state information in the third selling block can be read, reading the selling information of the third selling block, and displaying the selling information on a display capable of being used for terminal nodes, wherein the process of traversing the selling bond block chain is stopped because the state information of all blocks in the selling bond block chain is read.
Step S202B: obtaining a bond selling instruction input by the user according to the selling information.
Wherein the bond selling instruction includes: target selling information to be reported to the market server, wherein the target selling information represents the behavior of the user for selling bonds.
Specifically, the act of requesting the sale of the bond may include: the user determines the net price of the sold bond, the user determines the full price of the sold bond, the user determines the number of bonds sold, etc.
In addition, since the terminal node obtains the selling information of all the sold bonds which are reported to the market-exchanging server, the user with the bond selling requirement can determine the target selling information according to the selling information of all the sold bonds, wherein the target selling information comprises the net price of the bond requested to be sold by the user, the full price of the bond requested to be sold by the user, the number of the bonds requested to be sold by the user, the identification code of the bond requested to be sold by the user, the generation time of the target selling information, the offer of the offer, bid offer, the short name of the bond requested to be sold, bid yield, bid full price, bid net price, information indicating whether the price of the bond requested to be sold can be negotiated, the transaction identification of the bond requested to be sold and the like.
Step S203B: and reporting the target selling information to a transaction market server.
Step S204B: generating a target selling block containing the target selling information, and adding the target selling block into a self-stored selling bond block chain.
Specifically, the terminal node generates a target selling block containing the target selling information, and adds the target selling block to the self-stored selling bond blockchain, so as to ensure that the target selling information in the selling bond blockchain stored in the terminal node is kept synchronous with the current selling bond transaction condition.
In one embodiment of the invention, the generated target sell block is composed of a target sell block header and a target sell block body.
The information contained in the target selling block header is similar to the information contained in the block header, and will not be described in detail herein. The target selling block body is used for recording target selling information.
In one embodiment of the present invention, when the terminal node obtains the bond selling instruction, the terminal node may be used as a master node, and the master node may be capable of adding a target selling block to the stored bond block chain.
Step 205B: and transmitting the target sell block to each other terminal node in the node network, so that each other terminal node adds the target sell block to a self-stored sell bond blockchain.
Specifically, because each terminal node in the node network is in communication connection with other terminal nodes in the node network except for the terminal node, the terminal node can send the target selling block to each other terminal node in the node network, so that each other terminal node adds the target selling block to the self-stored selling bond blockchain, the bond selling information recorded in the selling bond blockchain stored in each terminal node can be ensured to be the same, and the transaction condition of the current selling bond can be kept synchronous.
In one embodiment of the present invention, the terminal node sends the target selling blocks to other terminal nodes in the node network in turn, and each other terminal node adds the target selling block to the selling bond blockchain stored in the other terminal node after receiving the target selling block, so that the target selling block is connected to the last selling block in the selling bond blockchain stored in the other terminal node.
In addition, the terminal node may send the target selling block to other terminal nodes by means of P2P.
In view of the above, when it is determined that the user has a demand for selling a bond transaction, the terminal node may acquire the selling information in each selling block in the chain of selling bonds, and then the user may perform the bond selling transaction based on the selling bond information acquired by the terminal node, where the acquired selling information is the selling information recorded in all blocks in the chain of selling bonds, so that the user may acquire a large amount of selling information through one terminal node when performing the bond selling transaction, so that the user may acquire the selling information more conveniently. And the selling information which can be referred by the user when the user performs the selling transaction of the bonds is more, so that the user can conveniently perform the selling transaction of the bonds.
In addition, after obtaining a large amount of sales information, the user may input a bond sales instruction to the terminal node, where the bond sales instruction includes target sales information, where the target sales information is newly generated sales information included in a bond transaction instruction that is newly input by the user, and the terminal node may generate a target sales block including the target sales information and add the target sales block to a self-stored bond blockchain, and then send the target sales block to each other terminal node in the node network, so that each other terminal node adds the target sales block to the self-stored bond blockchain, and thus each terminal node can obtain the newly generated target sales information, and ensure that the sales information recorded in the bond blockchain stored in each terminal node remains synchronous with the current latest sales situation of the bond. And, each terminal node can acquire the same selling information, so that the selling information is publicly transparent to each terminal node.
In the case that the user is a controlling transaction party for controlling and completing the bond transaction between users, and the terminal node provides a service for controlling the transaction, fig. 7 is a schematic flow chart of a fourth method for updating a bond blockchain according to an embodiment of the present invention, as shown in fig. 7, and compared with the embodiment shown in fig. 2, the above step S201 may be implemented by the following steps S201C-S201D; the step S202 may be implemented by the following step S202C; the above step S203 may be implemented by the following step S203C; the step S204 may be implemented by the following step S204C; the above step S205 may be implemented by the following step S205C.
Step S201C: and under the condition that the user is determined to have a need of controlling the transaction party to complete the bond transaction, traversing each buying block in the stored buying bond block chain, and acquiring the buying information recorded in each buying block.
Specifically, when a user has a need for controlling a transaction party to complete a bond transaction, the terminal node may obtain all buying information from the buying blockchain, so that the controlling transaction party can select a bond buyer that can successfully buy a bond from among the bond buyers according to buying information of the bond requested by each bond buyer.
In an embodiment of the present invention, the specific implementation manner of the step S201C is already described in the step S201A, and will not be described herein.
Step S201D: traversing each sell block in the stored sell bond blockchain to obtain sell information recorded in each sell block.
Specifically, when a user has a need to control a transaction party to complete a bond transaction, the terminal node may obtain all sales information from the sales blockchain, so that the control transaction party can select a bond seller capable of successfully selling a bond from among the bond sellers according to the sales information of the bond required by each bond seller.
In an embodiment of the present invention, the specific implementation manner of the step S201D is already described in the step S201B, and will not be described herein.
Step S202C: and obtaining a bond transaction instruction input by the user according to the buying information and the selling information.
Wherein, the bond transaction instruction is used for: controlling the bond buyer and the bond seller to complete the bond transaction, wherein the bond transaction instruction comprises: target transaction information to be reported to the market server, wherein the target transaction information represents bond transactions completed by bond buyers and bond sellers.
Specifically, since the user can acquire all the purchase information and all the sale information that have been reported to the market server from the terminal node, the user can determine the bond buyer and the bond seller who can actually complete the bond transaction, the purchase price, the sale price, the number of bonds to conduct the transaction, and the like of the bond buyer and the bond seller, based on the purchase information and the sale information. The target transaction information may include: the identification of the buyer of the bond actually performing the transaction, the identification of the seller of the bond actually performing the transaction, the identification of the bond being transacted, the digital signature of the bond being transacted, the net price and the net price of the bond actually performing the transaction, the full price and the full price of the bond actually performing the transaction, the expiration rate of the bond actually performing the transaction, and the like.
In one embodiment of the present invention, after obtaining the purchase information and the sell information, the terminal node may determine the purchase information with the highest purchase complete price, then determine the sell information with the lowest sell complete price, and if the highest purchase complete price is higher than the lowest sell complete price, prompt the user to control the bond buyer corresponding to the purchase information with the highest purchase complete price and the bond seller corresponding to the sell information with the lowest sell complete price to conduct a transaction.
Step S203C: and reporting the target transaction information to a transaction market server.
Step S204C: and generating a target transaction block containing the target transaction information, and adding the target transaction block into a transaction bond block chain stored by the target transaction block.
Specifically, the terminal node generates a target transaction block containing the target transaction information, and adds the target transaction block to a transaction bond blockchain stored in the terminal node, so as to ensure that the target selling information in the transaction bond blockchain stored in the terminal node is kept synchronous with the current transaction bond transaction condition.
In one embodiment of the invention, the generated target transaction block is composed of a target transaction block header and a target transaction block body.
The information contained in the target transaction block header is similar to the information contained in the block header, and will not be described herein. The target transaction block is used for recording target transaction information.
In one embodiment of the present invention, when the terminal node obtains the bond transaction instruction, the terminal node may be used as a master node, and the master node may be capable of adding a target transaction block to the stored transaction bond blockchain.
Step S205C: the target transaction block is transmitted to each other terminal node in the node network such that each other terminal node adds the target transaction block to its own stored transaction bond blockchain.
Specifically, because each terminal node in the node network is in communication connection with other terminal nodes in the node network except for the terminal node, the terminal node can send the target transaction block to each other terminal node in the node network, so that each other terminal node adds the target transaction block to the bond block chain stored by itself, the bond transaction information recorded in the bond block chain stored in each terminal node can be ensured to be the same, and the transaction condition of the current transaction bond can be kept synchronous.
In one embodiment of the present invention, the terminal node transmits the target transaction block to other terminal nodes in the node network in turn, and each other terminal node adds the target transaction block to the transaction bond block chain stored in the other terminal node after receiving the target transaction block, so that the target transaction block is connected to the last transaction block in the transaction bond block chain stored in the other terminal node.
In addition, the terminal node may send the target transaction block to other terminal nodes by means of P2P.
From the above, when a user has a need to control a transaction party to complete a bond transaction, the terminal node may acquire the sales information in each sales block in the sales bond block chain and the purchase information in each purchase block in the purchase bond block chain, and then the user may control the bond transaction based on the sales information and the purchase information acquired by the terminal node, where the acquired sales information is the sales information recorded in all sales blocks in the sales bond block chain, and the acquired purchase information is the purchase information recorded in all purchase blocks in the purchase bond block chain, so that when the user controls the transaction party to conduct the bond transaction, all the sales information and all the purchase information can be referred to, and more sales information and purchase information can be referred to when the transaction party controls the transaction party to conduct the bond transaction, thereby being capable of conveniently controlling the transaction party to conduct the bond transaction.
Fig. 8 is a flowchart of a fifth method for updating a bond blockchain according to the embodiment of the present invention, as shown in fig. 8, before the step S205, the method further includes the following steps: step S206.
Step S206: and verifying whether the target bond information recorded in the target block is valid.
Specifically, if the target bond information is valid, it indicates that the bond corresponding to the target bond information can be normally used for transaction, so the target bond information may be sent to each terminal node in the node network, and the step S205 may be further performed; if the target bond information is invalid, it is indicated that the bond corresponding to the target bond information cannot be normally used for the transaction, and therefore the target bond information cannot be transmitted to each terminal node in the node network, and therefore the step S204 needs to be re-executed.
In one embodiment of the present invention, the terminal node may verify, in the target bond information, information indicating whether the bond is valid, where the information indicating whether the bond is valid includes: the target bond information is considered to be valid if the terminal node determines that all the information indicating whether the bond is valid, such as identification of the bond, digital signature of the bond, or the like, and is considered to be invalid if the terminal node determines that there is an invalid message in the information indicating whether the bond is valid.
In another embodiment of the present invention, the step S206 may be implemented by the steps S206A-S206D in fig. 9, which is not described in detail herein.
As can be seen from the above, in the embodiment of the present invention, before the target bond information is sent to each terminal node in the node network, whether the target bond information is valid or not may be verified, and if the target bond information is valid, the bonds represented in the target bond information may be normally used for transactions. Therefore, the embodiment of the invention can verify the validity of the target bond information, and ensures the reliability of the whole transaction environment.
Fig. 9 is a flowchart of a sixth method for updating a bond blockchain according to the embodiment of the present invention, as shown in fig. 8, in comparison with the embodiment shown in fig. 8, the step S206 may include the following steps: step S206A-step S206D.
Step S206A: and selecting a preset number of terminal nodes from the other terminal nodes to serve as consensus terminal nodes.
Specifically, in order to be able to verify whether the target bond information is valid, a preset number of terminal nodes may be selected from the node network as consensus terminal nodes, where the consensus terminal nodes are used to verify whether the target bond information is valid.
In one embodiment of the present invention, the preset number may be set to be an odd number, for example, 10 terminal nodes exist in total in the node network, and then 5, 7 or other terminal nodes may be randomly selected from the 10 terminal nodes to be used as the consensus terminal nodes.
The terminal nodes can randomly select a preset number of terminal nodes from the node network to serve as consensus terminal nodes.
Step S206B: and sending the target block to the consensus terminal node so that each consensus terminal node judges whether the target bond information recorded in the target block is valid or not.
In one embodiment of the present invention, the terminal node that has stored the target bond information may be set as a master node, and then the master node may send the target block to each consensus terminal node through a propagation manner such as P2P, and then each consensus terminal node may determine whether the target bond information is valid, and obtain a determination result.
Step S206C: and receiving a judgment result sent by each consensus terminal node.
Specifically, after each consensus terminal node determines the validity of the target bond information, a determination result is obtained, that is, the target bond information is valid or the target bond information is invalid, and then the terminal node storing the target bond information may receive the determination result sent by each consensus terminal node, and based on the determination result, finally determine whether the target bond information is valid.
In addition, each of the consensus terminal nodes may transmit a determination result to a terminal node storing the target bond information using a P2P propagation method.
Step S206D: and verifying whether the target bond information recorded in the target block is valid based on the first number and the second number.
Wherein the first number is: and determining the number of the consensus terminal nodes with valid target bond information recorded in the target block, wherein the second number is as follows: and judging the number of the consensus terminal nodes with invalid target bond information recorded in the target block.
Specifically, since the first number is the number of consensus terminal nodes that determine that the target bond information recorded in the target block is valid, and the second number is the number of consensus terminal nodes that determine that the target bond information recorded in the target block is invalid, if the first number is equal to or greater than the second number, it is described that a greater number of the consensus terminal nodes determine that the target bond information is valid, and therefore the terminal node that stores the target bond information can determine that the target bond information is valid; if the second number is greater than the first number, it is indicated that more of the respective consensus terminal nodes determine that the target bond information is invalid, the terminal node storing the target bond information may determine that the target bond information is invalid.
This process corresponds to whether each consensus terminal node votes for the target bond information effectively, and the terminal node having stored the target bond information determines whether the target bond information is effective based on the voting result, and may be referred to as a voting process.
In one embodiment of the present invention, the magnitude relation between the first number and the second number is first determined, and if the first number is greater than or equal to the second number, for example: a total of 7 consensus terminal nodes, wherein if the first number is 4 and the second number is 3, it is considered that a plurality of the consensus terminal nodes determine that the target bond information is valid, and therefore the terminal node storing the target bond information can determine that the target bond information is valid; if the first number is smaller than the second number, for example: in total, 7 consensus terminal nodes are provided, and if the first number is 3 and the second number is 4, it is considered that, of the respective consensus terminal nodes, a plurality of consensus terminal nodes determine that the target bond information is invalid, and therefore, the terminal node storing the target bond information can determine that the target bond information is invalid.
As can be seen from the foregoing, in the embodiment of the present invention, when verifying whether the target bond information is valid, a preset number of terminal nodes are selected from the node network as consensus terminal nodes, then the consensus terminal nodes jointly determine whether the target bond information is valid, and then the terminal nodes storing the target bond information can determine whether the target bond information is valid according to the first number and the second number.
In addition, when verifying whether the target bond information is valid, only the terminal node based on the consensus terminal node is required to judge, other terminal nodes are not required to be introduced, and the terminal node storing the target bond information in the process of verifying whether the target bond information is valid directly sends the target bond information to the consensus terminal node, and the consensus terminal node directly sends the judging result to the terminal node storing the target bond information, and data interaction is directly carried out between the terminal node and the terminal node, so that the complexity of network communication is lower, the time consumed on the network communication in the process of verifying is shorter, and therefore, whether the target bond information is valid can be verified in a shorter time.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a module for verifying target bond information according to an embodiment of the present invention, as shown in fig. 10, including: the system comprises a target bond information generation module 1001, a target bond information transmission module 1002, a consensus terminal node verification module 1003, a verification result receiving module 1004 and a blockchain updating module 1005.
Specifically, the terminal node generates target bond information through the target bond information generating module 1001, the terminal node generating the target bond information sends the target bond information to each of the consensus terminal nodes through the target bond information sending module 1002, each of the consensus terminal nodes verifies whether the target bond information is valid through the consensus terminal node verifying module 1003, the terminal node generating the target bond information receives the verification result sent by each of the consensus terminal nodes through the verification result receiving module 1004, the terminal node generating the target bond information generates a target block including the target bond information through the block chain updating module 1005, and in the case that the target bond information is judged to be valid, the target block is sent to each of the other terminal nodes so that each of the other terminal nodes adds the target block to the bond block chain stored by itself.
Fig. 11 is a schematic structural diagram of a first device for updating a bond blockchain according to an embodiment of the present invention, where, as shown in fig. 11, the device may include the following modules: 1101-1105.
Bond information acquisition module 1101: for in case it is determined that the user has a bond transaction requirement, traversing each block in the stored bond block chain to acquire bond information recorded in each block;
the bond transaction instruction acquisition module 1102: the method comprises the steps of obtaining a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a market server;
target bond information reporting module 1103: the target bond information is reported to a trading market server;
the target block generation module 1104: generating a target block containing the target bond information, and adding the target block into a self-stored bond block chain;
target block transmitting module 1105: for sending the target block to each other terminal node in the network of nodes such that each other terminal node adds the target block to its own stored bond blockchain.
In view of the above, in the case that it is determined that the user has a bond transaction requirement, the terminal node may first acquire bond information in each block in the bond block chain, and then the user may perform a bond transaction based on the bond information acquired by the terminal node, where the acquired bond information is bond information recorded in all blocks in the bond block chain, so that the user may acquire a large amount of bond information through one terminal node when performing the bond transaction, so that the user may acquire bond information more conveniently. And the user can refer to more bond information when carrying out bond transaction, so that the user can conveniently and efficiently carry out bond transaction, and the development of bond market is promoted.
In addition, after obtaining a large amount of bond information, the user may input a bond transaction instruction to the terminal node, where the bond transaction instruction includes target bond information, where the target bond information is newly generated bond information included in the bond transaction instruction newly input by the user, and the terminal node may generate a target block including the target bond information and add the target block to a bond block chain stored in the terminal node, and then send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond block chain stored in the terminal node, and thus each terminal node can obtain the newly generated target bond information, thereby ensuring that bond information recorded in the bond block chain stored in each terminal node remains synchronous with the current latest bond transaction situation. And, each terminal node can acquire the same bond information, so that the bond information is publicly transparent to each terminal node.
In one embodiment of the present invention, the bond information obtaining module 1101 is specifically configured to:
under the condition that the user requests to buy the bond is determined, traversing each buying block in the stored buying bond block chain, and acquiring buying information recorded in each buying block;
the bond transaction instruction acquisition module 1102 is specifically configured to:
obtaining a bond buying instruction input by the user according to the buying information, wherein the bond buying instruction comprises the following components: target buying information to be reported to a trading market server, wherein the target buying information represents the behavior of the user for buying bonds in the request;
the target bond information reporting module 1103 is specifically configured to:
reporting the target buying information to a trading market server;
the target block generating module 1104 is specifically configured to:
generating a target buying block containing the target buying information, and adding the target buying block into a buying bond block chain stored by the target buying block;
the target block sending module 1105 is specifically configured to:
the target purchase block is sent to each other terminal node in the node network such that each other terminal node adds the target purchase block to its own stored purchase bond blockchain.
In view of the above, when it is determined that the user has a demand for buying the bond transaction, the terminal node may first acquire the buying information in each buying block in the block chain of buying the bond, and then the user may perform the buying transaction of the bond based on the buying bond information acquired by the terminal node, where the acquired buying information is the buying information recorded in all the buying blocks in the block chain of buying the bond, so that the user may acquire a large amount of buying information through one terminal node when performing the buying transaction of the bond, so that the user may acquire the buying information more conveniently. And the buying information which can be referred by the user when buying the bond is more, so that the user can conveniently buy the bond.
In addition, after obtaining a large amount of buying information, the user may input a bond buying instruction to the terminal node, where the bond buying instruction includes target buying information, where the target buying information is newly generated buying information included in the bond transaction instruction that is newly input by the user, and the terminal node may generate a target buying block including the target buying information and add the target buying block to a self-stored buying bond block chain, and then send the target buying block to each other terminal node in the node network, so that each other terminal node adds the target buying block to the self-stored bond buying block chain, and each terminal node can obtain the newly generated target buying information, thereby ensuring that the buying information recorded in the buying bond block chain stored in each terminal node is kept synchronous with the current latest bond buying transaction situation. And, each terminal node can acquire the same buying information, so that the buying information is publicly transparent for each terminal node.
In another embodiment of the present invention, the bond information obtaining module 1101 is specifically configured to:
traversing each selling block in the stored chain of selling bonds under the condition that the user requests to sell bonds is determined, and acquiring selling messages recorded in each selling block;
the bond transaction instruction acquisition module 1102 is specifically configured to:
obtaining a bond selling instruction input by the user according to the selling information, wherein the bond selling instruction comprises the following steps: target selling information to be reported to a trading market server, wherein the target selling information represents the behavior that the user requests to sell bonds;
the target bond information reporting module 1103 is specifically configured to:
reporting the target selling information to a transaction market server;
the target block generating module 1104 is specifically configured to:
generating a target selling block containing the target selling information, and adding the target selling block into a self-stored selling bond block chain;
the target block sending module 1105 is specifically configured to:
the target sell block is sent to each other terminal node in the node network such that each other terminal node adds the target sell block to its own stored sell bond blockchain.
In view of the above, when it is determined that the user has a demand for selling a bond transaction, the terminal node may acquire the selling information in each selling block in the chain of selling bonds, and then the user may perform the bond selling transaction based on the selling bond information acquired by the terminal node, where the acquired selling information is the selling information recorded in all blocks in the chain of selling bonds, so that the user may acquire a large amount of selling information through one terminal node when performing the bond selling transaction, so that the user may acquire the selling information more conveniently. And the selling information which can be referred by the user when the user performs the selling transaction of the bonds is more, so that the user can conveniently perform the selling transaction of the bonds.
In addition, after obtaining a large amount of sales information, the user may input a bond sales instruction to the terminal node, where the bond sales instruction includes target sales information, where the target sales information is newly generated sales information included in a bond transaction instruction that is newly input by the user, and the terminal node may generate a target sales block including the target sales information and add the target sales block to a self-stored bond blockchain, and then send the target sales block to each other terminal node in the node network, so that each other terminal node adds the target sales block to the self-stored bond blockchain, and thus each terminal node can obtain the newly generated target sales information, and ensure that the sales information recorded in the bond blockchain stored in each terminal node remains synchronous with the current latest sales situation of the bond. And, each terminal node can acquire the same selling information, so that the selling information is publicly transparent to each terminal node.
In another embodiment of the present invention, the bond information obtaining module 1101 is specifically configured to:
under the condition that the user is determined to have the requirement of controlling the transaction party to complete the bond transaction, traversing each buying block in the stored buying bond block chain, and acquiring buying information recorded in each buying block;
traversing each selling block in the stored selling bond blockchain to obtain the selling information recorded in each selling block;
the bond transaction instruction acquisition module 1102 is specifically configured to:
obtaining a bond transaction instruction input by the user according to the buying information and the selling information, wherein the bond transaction instruction is used for: controlling the bond buyer to complete a bond transaction with the bond seller, the bond transaction instructions comprising: target transaction information to be reported to a market server, wherein the target transaction information represents bond transactions completed by bond buyers and bond sellers;
the target bond information reporting module 1103 is specifically configured to:
reporting the target transaction information to a transaction market server;
the target block generating module 1104 is specifically configured to:
generating a target transaction block containing the target transaction information, and adding the target transaction block into a transaction bond block chain stored by the target transaction block;
The target block sending module 1105 is specifically configured to:
the target transaction block is sent to each other terminal node in the network of nodes such that each other terminal node adds the target transaction block to its own stored transaction bond blockchain.
From the above, when a user has a need to control a transaction party to complete a bond transaction, the terminal node may acquire the sales information in each sales block in the sales bond block chain and the purchase information in each purchase block in the purchase bond block chain, and then the user may control the bond transaction based on the sales information and the purchase information acquired by the terminal node, where the acquired sales information is the sales information recorded in all sales blocks in the sales bond block chain, and the acquired purchase information is the purchase information recorded in all purchase blocks in the purchase bond block chain, so that when the user controls the transaction party to conduct the bond transaction, all the sales information and all the purchase information can be referred to, and more sales information and purchase information can be referred to when the transaction party controls the transaction party to conduct the bond transaction, thereby being capable of conveniently controlling the transaction party to conduct the bond transaction.
Fig. 12 is a schematic structural diagram of a second device for updating a block chain of bonds according to an embodiment of the present invention, where, as shown in fig. 12, the device further includes:
verification module 1106: for verifying whether the target bond information recorded in the target block is valid;
the sending module 1107: and the target block sending module is used for triggering and executing the target block if the target bond information recorded in the target block is valid.
As can be seen from the above, in the embodiment of the present invention, before the target bond information is sent to each terminal node in the node network, whether the target bond information is valid or not may be verified, and if the target bond information is valid, the bonds represented in the target bond information may be normally used for transactions. Therefore, the embodiment of the invention can verify the validity of the target bond information, and ensures the reliability of the whole transaction environment.
In one embodiment of the present invention, the verification module 1106 is specifically configured to:
selecting a preset number of terminal nodes from the other terminal nodes to serve as consensus terminal nodes;
sending the target block to the consensus terminal node so that each consensus terminal node judges whether target bond information recorded in the target block is valid or not;
Receiving a judgment result sent by each consensus terminal node;
verifying whether the target bond information recorded in the target block is valid based on a first number and a second number, wherein the first number is: determining the number of the consensus terminal nodes with valid target bond information recorded in the target block, wherein the second number is as follows: and judging the number of the consensus terminal nodes with invalid target bond information recorded in the target block.
As can be seen from the foregoing, in the embodiment of the present invention, when verifying whether the target bond information is valid, a preset number of terminal nodes are selected from the node network as consensus terminal nodes, then the consensus terminal nodes jointly determine whether the target bond information is valid, and then the terminal nodes storing the target bond information can determine whether the target bond information is valid according to the first number and the second number.
In addition, when verifying whether the target bond information is valid, only the terminal node based on the consensus terminal node is required to judge, other terminal nodes are not required to be introduced, and the terminal node storing the target bond information in the process of verifying whether the target bond information is valid directly sends the target bond information to the consensus terminal node, and the consensus terminal node directly sends the judging result to the terminal node storing the target bond information, and data interaction is directly carried out between the terminal node and the terminal node, so that the complexity of network communication is lower, the time consumed on the network communication in the process of verifying is shorter, and therefore, whether the target bond information is valid can be verified in a shorter time.
The embodiment of the present invention further provides an electronic device, as shown in fig. 13, including a processor 1301, a communication interface 1302, a memory 1303 and a communication bus 1304, where the processor 1301, the communication interface 1302, and the memory 1303 complete communication with each other through the communication bus 1304,
a memory 1303 for storing a computer program;
processor 1301 is configured to implement the steps of any of the bond blockchain updating methods in the method embodiments described above when executing the program stored in memory 1303.
When the electronic equipment provided by the embodiment of the invention is used for conveniently obtaining the bond information, under the condition that the user is determined to have the bond transaction requirement, the terminal node can firstly obtain the bond information in each block in the bond block chain, then the user can conduct bond transaction based on the bond information obtained by the terminal node, and the obtained bond information is the bond information recorded in all the blocks in the bond block chain, so that the user can obtain a large amount of bond information through one terminal node when conducting bond transaction, and the user can obtain the bond information more conveniently. And the user can refer to more bond information when carrying out bond transaction, so that the user can conveniently and efficiently carry out bond transaction, and the development of bond market is promoted.
In addition, after obtaining a large amount of bond information, the user may input a bond transaction instruction to the terminal node, where the bond transaction instruction includes target bond information, where the target bond information is newly generated bond information included in the bond transaction instruction newly input by the user, and the terminal node may generate a target block including the target bond information and add the target block to a bond block chain stored in the terminal node, and then send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond block chain stored in the terminal node, and thus each terminal node can obtain the newly generated target bond information, thereby ensuring that bond information recorded in the bond block chain stored in each terminal node remains synchronous with the current latest bond transaction situation. And, each terminal node can acquire the same bond information, so that the bond information is publicly transparent to each terminal node.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the steps of any of the bond blockchain updating methods described above.
When the computer readable storage medium provided by the embodiment of the invention is applied to conveniently obtain the bond information, under the condition that the user is determined to have the bond transaction requirement, the terminal node can firstly obtain the bond information in each block in the bond block chain, then the user can conduct bond transaction based on the bond information obtained by the terminal node, and the obtained bond information is the bond information recorded in all blocks in the bond block chain, so that the user can obtain a large amount of bond information through one terminal node when conducting bond transaction, and the user can obtain the bond information more conveniently. And the user can refer to more bond information when carrying out bond transaction, so that the user can conveniently and efficiently carry out bond transaction, and the development of bond market is promoted.
In addition, after obtaining a large amount of bond information, the user may input a bond transaction instruction to the terminal node, where the bond transaction instruction includes target bond information, where the target bond information is newly generated bond information included in the bond transaction instruction newly input by the user, and the terminal node may generate a target block including the target bond information and add the target block to a bond block chain stored in the terminal node, and then send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond block chain stored in the terminal node, and thus each terminal node can obtain the newly generated target bond information, thereby ensuring that bond information recorded in the bond block chain stored in each terminal node remains synchronous with the current latest bond transaction situation. And, each terminal node can acquire the same bond information, so that the bond information is publicly transparent to each terminal node.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the bond blockchain updating methods of the above embodiments.
When the computer program product provided by the embodiment of the invention is applied to conveniently obtain the bond information, under the condition that the user is determined to have the bond transaction requirement, the terminal node can firstly obtain the bond information in each block in the bond block chain, then the user can conduct bond transaction based on the bond information obtained by the terminal node, and the obtained bond information is the bond information recorded in all the blocks in the bond block chain, so that the user can obtain a large amount of bond information through one terminal node when conducting bond transaction, and the user can obtain the bond information more conveniently. And the user can refer to more bond information when carrying out bond transaction, so that the user can conveniently and efficiently carry out bond transaction, and the development of bond market is promoted.
In addition, after obtaining a large amount of bond information, the user may input a bond transaction instruction to the terminal node, where the bond transaction instruction includes target bond information, where the target bond information is newly generated bond information included in the bond transaction instruction newly input by the user, and the terminal node may generate a target block including the target bond information and add the target block to a bond block chain stored in the terminal node, and then send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to the bond block chain stored in the terminal node, and thus each terminal node can obtain the newly generated target bond information, thereby ensuring that bond information recorded in the bond block chain stored in each terminal node remains synchronous with the current latest bond transaction situation. And, each terminal node can acquire the same bond information, so that the bond information is publicly transparent to each terminal node.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for an apparatus, an electronic device, a computer readable storage medium, a computer program product embodiment, the description is relatively simple, as it is substantially similar to the method embodiment, as relevant see the partial description of the method embodiment.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (7)

1. A bond blockchain updating method applied to each terminal node in a node network, the node network including a plurality of terminal nodes, each terminal node being communicatively connected to other terminal nodes in the node network than the terminal node, and each terminal node having stored therein a bond blockchain, each block in the bond blockchain for recording bond information, the method comprising:
traversing each block in the stored bond block chain under the condition that the user is determined to have bond transaction requirements, and acquiring bond information recorded in each block;
obtaining a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a trading market server;
reporting the target bond information to a trading market server;
generating a target block containing the target bond information, and adding the target block into a self-stored bond block chain;
Sending the target block to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond blockchain;
before said sending the target block to each other terminal node in the node network, further comprising:
verifying whether the target bond information recorded in the target block is valid; if so, sending the target block to each other terminal node in the node network;
the verifying whether the target bond information recorded in the target block is valid includes:
selecting a preset number of terminal nodes from the other terminal nodes to serve as consensus terminal nodes; sending the target block to the consensus terminal node so that each consensus terminal node judges whether target bond information recorded in the target block is valid or not; receiving a judgment result sent by each consensus terminal node; verifying whether the target bond information recorded in the target block is valid based on a first number and a second number, wherein the first number is: determining the number of the consensus terminal nodes with valid target bond information recorded in the target block, wherein the second number is as follows: determining the number of consensus terminal nodes in which the target bond information recorded in the target block is invalid;
The verifying whether the target bond information recorded in the target block is valid based on the first number and the second number includes:
judging the size relation between the first quantity and the second quantity, and if the first quantity is larger than or equal to the second quantity, enabling the target bond information to be effective; if the first quantity is smaller than the second quantity, the target bond information is invalid;
traversing each block in the stored bond blockchain to acquire bond information recorded in each block, wherein the traversing comprises the following steps:
traversing each buying block in the buying bond block chain, and reading the state information of the buying block; judging whether the state information of the buying block is normal or not; if the state information of the buying block is normal, the buying information in the buying block is read, and the buying information is displayed; if the state information of the buying block is abnormal, not reading the buying information in the buying block;
and/or
Traversing each sell block in the sell bond blockchain, and reading the state information of the sell block; judging whether the state information of the sold block is normal or not; if the state information of the selling block is normal, reading the selling information in the selling block and displaying the selling information; if the state information of the selling block is abnormal, not reading the selling information in the selling block;
The purchase information includes: the method comprises the steps of (1) a bond mark, a net price of a purchased bond, a full price of the purchased bond, an expiration rate of the bond, a number of the purchased bond, a time for requesting the purchased bond, an identification of the bond for requesting the purchase, and a digital signature of the bond for requesting the purchase;
the sales information includes: the method comprises the steps of (1) selecting a bond mark, selling a net price of the bond, selling a full price of the bond, expiration rate of the bond, selling the number of the bonds, requesting time of selling the bond, requesting identification of the bond to be sold, requesting digital signature of the bond to be sold;
the obtaining the bond transaction instruction input by the user according to the bond information comprises the following steps:
obtaining a bond buying instruction input by the user according to the buying information under the condition of obtaining the buying information, wherein the bond buying instruction comprises the following components: target buying information to be reported to a trading market server, wherein the target buying information represents the behavior of the user for buying bonds in the request; the target purchase information includes: international trade newspaper-plate quotation and bidding quotation;
obtaining a bond selling instruction input by the user according to the selling information under the condition of obtaining the selling information, wherein the bond selling instruction comprises the following components: target selling information to be reported to a trading market server, wherein the target selling information represents the behavior that the user requests to sell bonds; the target sales information includes: international trade newspaper-out quotation and bid quotation.
2. The method of claim 1, wherein the bond blockchain is a buy bond blockchain, each buy block in the buy bond blockchain for recording buy information representing historical behavior of a transacting party requesting to buy a bond;
and traversing each block in the stored bond block chain to acquire bond information recorded in each block under the condition that the user is determined to have bond transaction requirements, wherein the method comprises the following steps of:
under the condition that the user requests to buy the bond is determined, traversing each buying block in the stored buying bond block chain, and acquiring buying information recorded in each buying block;
the reporting the target bond information to the trading market server includes:
reporting the target buying information to a trading market server;
the generating a target block containing the target bond information and adding the target block to a self-stored bond block chain comprises:
generating a target buying block containing the target buying information, and adding the target buying block into a buying bond block chain stored by the target buying block;
the sending the target block to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond blockchain, comprising:
The target purchase block is sent to each other terminal node in the node network such that each other terminal node adds the target purchase block to its own stored purchase bond blockchain.
3. The method of claim 1, wherein the bond blockchain is a sell bond blockchain, each sell blockin the sell bond blockchain for recording sell information representing historical behavior of a transaction party requesting a sell bond;
and traversing each block in the stored bond block chain to acquire bond information recorded in each block under the condition that the user is determined to have bond transaction requirements, wherein the method comprises the following steps of:
traversing each selling block in the stored selling bond blockchain to acquire selling information recorded in each selling block under the condition that the user requests to sell bonds;
the reporting the target bond information to the trading market server includes:
reporting the target selling information to a transaction market server;
the generating a target block containing the target bond information and adding the target block to a self-stored bond block chain comprises:
Generating a target selling block containing the target selling information, and adding the target selling block into a self-stored selling bond block chain;
the sending the target block to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond blockchain, comprising:
the target sell block is sent to each other terminal node in the node network such that each other terminal node adds the target sell block to its own stored sell bond blockchain.
4. The method of claim 1, wherein the bond blockchain is: a transaction bond blockchain, the terminal node further storing a buy bond blockchain and a sell bond blockchain;
each transaction block in the transaction bond blockchain is used for recording transaction information, wherein the transaction information is used for representing historical bond transactions completed by bond buyers and bond sellers;
each buying block in the buying bond block chain is used for recording buying information, and the buying information is used for representing historical behaviors of a trading party for requesting to buy bonds;
Each sell block in the sell bond blockchain is used for recording sell information, and the sell information is used for representing historical behaviors of a transaction party for requesting to sell bonds;
and traversing each block in the stored bond block chain to acquire bond information recorded in each block under the condition that the user is determined to have bond transaction requirements, wherein the method comprises the following steps of:
under the condition that the user is determined to have the requirement of controlling the transaction party to complete the bond transaction, traversing each buying block in the stored buying bond block chain, and acquiring buying information recorded in each buying block;
traversing each selling block in the stored selling bond blockchain to obtain the selling information recorded in each selling block;
the obtaining the bond transaction instruction input by the user according to the bond information comprises the following steps:
obtaining a bond transaction instruction input by the user according to the buying information and the selling information, wherein the bond transaction instruction is used for: controlling the bond buyer to complete a bond transaction with the bond seller, the bond transaction instructions comprising: target transaction information to be reported to a market server, wherein the target transaction information represents bond transactions completed by bond buyers and bond sellers;
The reporting the target bond information to the trading market server includes:
reporting the target transaction information to a transaction market server;
the generating a target block containing the target bond information and adding the target block to a self-stored bond block chain comprises:
generating a target transaction block containing the target transaction information, and adding the target transaction block into a transaction bond block chain stored by the target transaction block;
the sending the target block to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond blockchain, comprising:
the target transaction block is sent to each other terminal node in the network of nodes such that each other terminal node adds the target transaction block to its own stored transaction bond blockchain.
5. A bond blockchain updating device for each terminal node in a node network, the node network comprising a plurality of terminal nodes, each terminal node being communicatively connected to other terminal nodes in the node network than the terminal node, and each terminal node having stored therein a bond blockchain, each block in the bond blockchain for recording bond information, the device comprising:
The bond information acquisition module is used for traversing each block in the stored bond block chain to acquire bond information recorded in each block under the condition that the user is determined to have a bond transaction requirement;
the bond transaction instruction acquisition module is used for acquiring a bond transaction instruction input by the user according to the bond information, wherein the bond transaction instruction comprises target bond information to be reported to a trading market server; the obtaining the bond transaction instruction input by the user according to the bond information comprises the following steps: obtaining a bond buying instruction input by the user according to the buying information under the condition of obtaining buying information, wherein the bond buying instruction comprises the following components: target buying information to be reported to a trading market server, wherein the target buying information represents the behavior of the user for buying bonds in the request; the target purchase information includes: international trade newspaper-plate quotation and bidding quotation; in the case of obtaining sales information, obtaining a bond sales instruction input by the user according to the sales information, the bond sales instruction including: target selling information to be reported to a trading market server, wherein the target selling information represents the behavior that the user requests to sell bonds; the target sales information includes: international trade newspaper-plate quotation and bidding quotation;
The target bond information reporting module is used for reporting the target bond information to the trading market server;
the target block generation module is used for generating a target block containing the target bond information and adding the target block into a self-stored bond block chain;
a target block sending module, configured to send the target block to each other terminal node in the node network, so that each other terminal node adds the target block to a self-stored bond block chain;
the apparatus further comprises:
the verification module is used for verifying whether the target bond information recorded in the target block is valid or not;
the sending module is used for triggering and executing the target block sending module if the target bond information recorded in the target block is valid;
the verification module is specifically configured to:
selecting a preset number of terminal nodes from the other terminal nodes to serve as consensus terminal nodes; sending the target block to the consensus terminal node so that each consensus terminal node judges whether target bond information recorded in the target block is valid or not; receiving a judgment result sent by each consensus terminal node; verifying whether the target bond information recorded in the target block is valid based on a first number and a second number, wherein the first number is: determining the number of the consensus terminal nodes with valid target bond information recorded in the target block, wherein the second number is as follows: determining the number of consensus terminal nodes in which the target bond information recorded in the target block is invalid;
The verification module verifies whether the target bond information recorded in the target block is valid according to the following mode:
judging the size relation between the first quantity and the second quantity, and if the first quantity is larger than or equal to the second quantity, enabling the target bond information to be effective; if the first quantity is smaller than the second quantity, the target bond information is invalid;
the bond information acquisition module is specifically configured to:
under the condition that the user is determined to have a bond transaction requirement, traversing each buying block in the buying bond block chain, and reading the state information of the buying block; judging whether the state information of the buying block is normal or not; if the state information of the buying block is normal, the buying information in the buying block is read, and the buying information is displayed; if the state information of the buying block is abnormal, not reading the buying information in the buying block;
and/or
Under the condition that the user is determined to have the bond transaction requirement, traversing each selling block in the chain of selling bonds, and reading the state information of the selling block; judging whether the state information of the sold block is normal or not; if the state information of the selling block is normal, reading the selling information in the selling block and displaying the selling information; if the state information of the selling block is abnormal, not reading the selling information in the selling block;
The purchase information includes: the method comprises the steps of (1) a bond mark, a net price of a purchased bond, a full price of the purchased bond, an expiration rate of the bond, a number of the purchased bond, a time for requesting the purchased bond, an identification of the bond for requesting the purchase, and a digital signature of the bond for requesting the purchase;
the sales information includes: the bond mark, the net price of the sold bond, the full price of the sold bond, the due rate of the bond, the number of bonds sold, the time of the request to sell the bond, the identity of the request to sell the bond, the digital signature of the request to sell the bond.
6. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-4 when executing a program stored on a memory.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-4.
CN202211067724.9A 2022-09-01 2022-09-01 Bond block chain updating method and device Active CN115456778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211067724.9A CN115456778B (en) 2022-09-01 2022-09-01 Bond block chain updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211067724.9A CN115456778B (en) 2022-09-01 2022-09-01 Bond block chain updating method and device

Publications (2)

Publication Number Publication Date
CN115456778A CN115456778A (en) 2022-12-09
CN115456778B true CN115456778B (en) 2024-02-02

Family

ID=84301421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211067724.9A Active CN115456778B (en) 2022-09-01 2022-09-01 Bond block chain updating method and device

Country Status (1)

Country Link
CN (1) CN115456778B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685655A (en) * 2018-12-07 2019-04-26 深圳投时科技有限公司 A kind of generation method of securities trading suggestion, device, system and block chain node
CN110443709A (en) * 2019-07-30 2019-11-12 杭州趣链科技有限公司 A kind of over-the-counter bond transaction system of the interbank based on block chain
CN110599182A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Resource management method and device
CN111125786A (en) * 2019-12-26 2020-05-08 中国银行股份有限公司 Bond distribution data storage method, device and system based on block chain
CN112651833A (en) * 2020-12-23 2021-04-13 远光软件股份有限公司 Securities processing method, computer equipment and storage device
CN112712420A (en) * 2021-03-29 2021-04-27 国网电子商务有限公司 Green certificate transaction system based on block chain
CN114581225A (en) * 2020-10-23 2022-06-03 湖南微步信息科技有限责任公司 Method, system, computer equipment and storage medium for placing order in securities

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685655A (en) * 2018-12-07 2019-04-26 深圳投时科技有限公司 A kind of generation method of securities trading suggestion, device, system and block chain node
CN110443709A (en) * 2019-07-30 2019-11-12 杭州趣链科技有限公司 A kind of over-the-counter bond transaction system of the interbank based on block chain
CN110599182A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Resource management method and device
CN111125786A (en) * 2019-12-26 2020-05-08 中国银行股份有限公司 Bond distribution data storage method, device and system based on block chain
CN114581225A (en) * 2020-10-23 2022-06-03 湖南微步信息科技有限责任公司 Method, system, computer equipment and storage medium for placing order in securities
CN112651833A (en) * 2020-12-23 2021-04-13 远光软件股份有限公司 Securities processing method, computer equipment and storage device
CN112712420A (en) * 2021-03-29 2021-04-27 国网电子商务有限公司 Green certificate transaction system based on block chain

Also Published As

Publication number Publication date
CN115456778A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
US20220198447A1 (en) Target object management method, smart contract, and management device
CN110599182B (en) Resource management method and device
CN109118219B (en) Transaction data processing method and device
US8160938B2 (en) Systems and methods for automatic bid solicitation during transaction process
CN101025812A (en) Apparatus and method for performing secure financial transactions in an instant messaging environment
MX2010010514A (en) System and method for facilitating online transactions.
CN110648204A (en) Method and apparatus for arbitration
CN112381645A (en) Information processing method and device for bill transaction
US11170378B2 (en) Methods for payment and merchant systems
US20120011057A1 (en) Publication system initiated value transfer
CN115456778B (en) Bond block chain updating method and device
CA3110785C (en) Network transaction information processing method and system
CA2995865A1 (en) Electronic-certificate-based transaction method and system
KR20200068377A (en) Standard linkage system for private real estate transaction information network and integrated real estate trade support sysyem of ministry of land, infrastructure and transport and the operation method thereof
CN111582865B (en) Data processing method and system for information verification
CN112990811A (en) Block chain-based warehouse receipt processing method and warehouse receipt processing system
US20110313875A1 (en) System and method of organizing secured purchasing groups for buyers of similar interests
JP3829788B2 (en) Electronic commerce method
CN110675260A (en) Agricultural product transaction data processing method and device based on block chain
CN114600435A (en) User interface for managing listings in a secondary marketplace
CN111144977A (en) Stock order processing method and device
JP2019071097A (en) System for transfer of dispute data in distributed electronic trading system
CN113468059B (en) Information acquisition method and device, terminal and server
CN114638678B (en) Block chain-based clearing method, device, equipment and readable storage medium

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