Summary of the invention
For the problems of the prior art, the application provides a kind of bilateral business accounting method and node based on block chain
Device can effectively optimize bilateral business processing step, improve the efficiency of business processing and message transmission.
In order to solve the above technical problems, the application the following technical schemes are provided:
In a first aspect, the application provides a kind of bilateral business accounting method based on block chain, comprising:
Receive the first business accounting request of the first business participant transmission;
First business accounting is requested to other node apparatus that block chain is synchronized to by block chain network, so that money
Gold clearing node apparatus and bond clearing node apparatus carry out the judgement of capital settlement feasibility respectively and bond clearing feasibility is sentenced
It is disconnected, and the judging result of capital settlement feasibility judgement and bond clearing feasibility judgement is passed through into block chain network
Other node apparatus are synchronized to, so that the capital settlement node apparatus and bond clearing node apparatus are in the fund knot
When the judging result of the judgement of calculation feasibility and bond clearing feasibility judgement is all feasible, first business is joined respectively
And person and the fund account and bond account progress business that corresponding second business participant is requested with first business accounting
Settlement process;
Receive the capital settlement node apparatus business accounting processing result synchronous with bond clearing node apparatus.
Further, described other sections that first business accounting request is synchronized to block chain by block chain network
Point device, comprising:
The first solicited message that first business accounting is requested is stored to corresponding first business and is participated in account book;
By block chain network by first business participate in account book in the first solicited message be synchronized to block chain its
In the account book of his node apparatus.
Second aspect, the application provide a kind of bilateral business accounting method based on block chain, comprising:
It receives the first business and participates in the first business accounting request that node apparatus is sent, first business accounting is requested
The judgement of capital settlement feasibility is carried out, capital settlement feasibility judging result is obtained and judges to tie by the capital settlement feasibility
Fruit is synchronized to other node apparatus by block chain network, so that bond settles accounts node apparatus according to the capital settlement feasibility
Judging result and bond clearing feasibility judging result request first business accounting debt of corresponding second business participant
Certificate account carries out bond settlement process;
It receives the bond that bond clearing node apparatus is sent and settles accounts feasibility judging result, wherein the bond clearing can
Row judging result is the first industry that the bond settles accounts that node apparatus receives the first business participation node apparatus transmission
After settlement request of being engaged in, the bond for requesting progress bond clearing feasibility to judge first business accounting settles accounts feasibility
Judging result;
Feasibility judging result is settled accounts according to the capital settlement feasibility judging result and the bond, to described first
Business participant and the fund account progress capital settlement that corresponding second business participant is requested with first business accounting
Capital settlement processing result, is synchronized to other node apparatus of block chain by processing by block chain network.
Further, described that first business accounting is requested to carry out the judgement of capital settlement feasibility, obtain fund knot
Calculate feasibility judging result, comprising:
Compliance inspection and funds checking are carried out to the first solicited message of first business accounting request, wherein institute
Stating compliance inspection is the inspection of message format compliance, weight account inspection, rightness of business inspection and digital signature validity checking
At least one of, if compliance inspection and funds checking are qualified, capital settlement feasibility judging result is feasible.
Further, funds checking is carried out to the first solicited message of first business accounting request to specifically include:
Judge to request the account balance of fund account of corresponding first business participant to be with first business accounting
The no transaction amount greater than in first solicited message;
If so, funds checking is qualified, and by the fund account of the first business participant with the transaction amount
Corresponding account balance is freezed.
Further, described that the capital settlement feasibility judging result is synchronized to other nodes by block chain network
Device, comprising:
The capital settlement feasibility judging result is stored into corresponding capital settlement account book;
The capital settlement feasibility judging result in the capital settlement account book is synchronized to block by block chain network
In the account book of other node apparatus of chain.
Further, described according to the capital settlement feasibility judging result and bond clearing feasibility judgement knot
Fruit requests the fund account of corresponding second business participant to the first business participant and with first business accounting
Carry out capital settlement processing, comprising:
It is feasible to judge that the capital settlement feasibility judging result and the bond in the capital settlement account book are settled accounts
Property judging result whether all to be feasible;
If so, transferring the account balance being frozen in the fund account of the first business participant to described second
The fund account of business participant.
The third aspect, the application provide a kind of bilateral business accounting method based on block chain, comprising:
It receives the first business and participates in the first business accounting request that node apparatus is sent, first business accounting is requested
Bond clearing feasibility judgement is carried out, bond clearing feasibility judging result is obtained and the bond is settled accounts into feasibility judgement knot
Fruit is synchronized to other node apparatus by block chain network, so that capital settlement node apparatus settles accounts feasibility according to the bond
Judging result and capital settlement feasibility judging result request first business accounting money of corresponding first business participant
Golden account carries out capital settlement processing;
Receive the capital settlement feasibility judging result that capital settlement node apparatus is sent, wherein the capital settlement can
Row judging result is the first industry that the capital settlement node apparatus receives that first business participates in node apparatus transmission
After settlement request of being engaged in, the capital settlement feasibility that capital settlement feasibility judges is carried out to first business accounting request
Judging result;
Feasibility judging result and the capital settlement feasibility judging result are settled accounts according to the bond, to described first
Business participant and the bond account progress bond knot that corresponding second business participant is requested with first business accounting
Bond settlement process result, is synchronized to other node apparatus of block chain by calculation processing by block chain network.
Further, described that first business accounting is requested to carry out bond clearing feasibility judgement, obtain bond knot
Calculate feasibility judging result, comprising:
To the payment information and the progress payment information verification of bond Transaction Information and debt in first business accounting request
The verification of certificate information, if payment information and the verification of bond Transaction Information are accurate, it is feasible that bond, which settles accounts feasibility judging result,.
Further, the payment information and bond Transaction Information in first business accounting request carries out bond
Information verification, comprising:
The bond outstanding of the bond account of corresponding second business participant is requested in judgement with first business accounting
The number of deals whether being greater than in the bond Transaction Information;
If so, by bond outstanding corresponding with the number of deals in the bond account of the second business participant
Freezed.
Further, described that bond clearing feasibility judging result is synchronized to other nodes by block chain network
Device, comprising:
Bond clearing feasibility judging result is stored into corresponding bond clearing account book;
The bond is settled accounts into the bond clearing feasibility judging result in account book by block chain network and is synchronized to block
In the account book of other node apparatus of chain.
Further, described that feasibility judging result and capital settlement feasibility judgement knot are settled accounts according to the bond
Fruit requests the finance account of corresponding second business participant to the first business participant and with first business accounting
Carry out bond settlement process, comprising:
Judge that the bond in the bond clearing account book settles accounts feasibility judging result and the capital settlement is feasible
Property judging result whether all to be feasible;
If so, transferring the bond outstanding being frozen in the bond account of the second business participant to described the
The bond account of one business participant.
Fourth aspect, the application provide a kind of bilateral business accounting method based on block chain, comprising:
It receives the first business and participates in the first business accounting request that node apparatus is sent, wherein first business accounting
Request goes back while being synchronized to other node apparatus of block chain by block chain network, so that capital settlement node apparatus and bond
Clearing node apparatus carries out the judgement of capital settlement feasibility and bond clearing feasibility judgement respectively, and can by the capital settlement
The judging result of row judgement and bond clearing feasibility judgement is synchronized to other node apparatus by block chain network, with
The capital settlement node apparatus and the bond is set to settle accounts node apparatus in capital settlement feasibility judgement and the debt
Certificate settles accounts the judging result of feasibility judgement when being all feasible, respectively to the first business participant and with the first business knot
It calculates the fund account for requesting corresponding second business participant and bond account carries out business accounting processing;
Receive the capital settlement node apparatus business accounting processing result synchronous with bond clearing node apparatus.
5th aspect, the application provide a kind of bilateral business accounting node apparatus based on block chain, comprising:
First business accounting request receiving module, the first business accounting for receiving the first business participant transmission are asked
It asks;
Synchronization module is requested in first business accounting, for first business accounting request is synchronous by block chain network
To other node apparatus of block chain, so that capital settlement node apparatus and bond clearing node apparatus carry out capital settlement respectively
Feasibility judgement and bond clearing feasibility judgement, and feasibility is settled accounts into capital settlement feasibility judgement and the bond
The judging result of judgement is synchronized to other node apparatus by block chain network, so that the capital settlement node apparatus and described
Bond clearing node apparatus judges in the capital settlement feasibility and the bond settles accounts the judging result of feasibility judgement all
When being feasible, request corresponding second business participant's to the first business participant and with first business accounting respectively
Fund account and bond account carry out business accounting processing;
First business accounting processing result receiving module, for receiving the capital settlement node apparatus and the bond knot
The synchronous business accounting processing result of operator node device.
6th aspect, the application provide a kind of bilateral business accounting node apparatus based on block chain, comprising:
Capital settlement feasibility judgment module participates in the first business accounting that node apparatus is sent for receiving the first business
Request requests first business accounting to carry out the judgement of capital settlement feasibility, obtains capital settlement feasibility judging result
And the capital settlement feasibility judging result is synchronized to other node apparatus by block chain network, so that bond clearing section
Point device is according to the capital settlement feasibility judging result and bond clearing feasibility judging result to first business accounting
The bond account of corresponding second business participant is requested to carry out bond settlement process;
Bond settles accounts feasibility judging result receiving module, the bond clearing sent for receiving bond clearing node apparatus
Feasibility judging result, wherein the bond clearing feasibility judging result settles accounts node apparatus for the bond and receives institute
After stating the first business accounting request that the first business participates in node apparatus transmission, first business accounting is requested to carry out bond
The bond clearing feasibility judging result that clearing feasibility judges;
Capital settlement processing module, for feasible according to the capital settlement feasibility judging result and bond clearing
Property judging result, requests corresponding second business participant's to the first business participant and with first business accounting
Fund account carries out capital settlement processing, and capital settlement processing result is synchronized to other sections of block chain by block chain network
Point device.
7th aspect, the application provide a kind of bilateral business accounting node apparatus based on block chain, comprising:
Bond settles accounts feasibility judgment module, participates in the first business accounting that node apparatus is sent for receiving the first business
Request requests first business accounting to carry out bond clearing feasibility judgement, obtains bond clearing feasibility judging result
And bond clearing feasibility judging result is synchronized to other node apparatus by block chain network, so that capital settlement section
Point device settles accounts feasibility judging result and capital settlement feasibility judging result to first business accounting according to the bond
The fund account of corresponding first business participant is requested to carry out capital settlement processing;
Capital settlement feasibility judging result receiving module, for receiving the capital settlement of capital settlement node apparatus transmission
Feasibility judging result, wherein the capital settlement feasibility judging result receives institute for the capital settlement node apparatus
After stating the first business accounting request that the first business participates in node apparatus transmission, carry out fund is requested to first business accounting
The capital settlement feasibility judging result that clearing feasibility judges;
Bond settlement handler module, for feasible according to bond clearing feasibility judging result and the capital settlement
Property judging result, requests corresponding second business participant's to the first business participant and with first business accounting
Bond account carries out bond settlement process, and bond settlement process result is synchronized to other sections of block chain by block chain network
Point device.
Eighth aspect, the application provide a kind of bilateral business accounting node apparatus based on block chain, comprising:
Second business accounting request receiving module participates in the first business knot that node apparatus is sent for receiving the first business
Calculate request, wherein the first business accounting request also while by other nodes that block chain network is synchronized to block chain fills
It sets, so that capital settlement node apparatus and bond clearing node apparatus carry out the judgement of capital settlement feasibility and bond clearing respectively
Feasibility judgement, and the judging result of capital settlement feasibility judgement and bond clearing feasibility judgement is passed through into area
Block chain network is synchronized to other node apparatus, so that the capital settlement node apparatus and bond clearing node apparatus are in institute
The judging result of the judgement of capital settlement feasibility and bond clearing feasibility judgement is stated when being all feasible, respectively to described the
One business participant and with first business accounting request corresponding second business participant fund account and bond account into
Industry business settlement process;
Second business accounting processing result receiving module, for receiving the capital settlement node apparatus and the bond knot
The synchronous business accounting processing result of operator node device.
9th aspect, the application provides a kind of electronic equipment, including memory, processor and storage are on a memory and can
The computer program run on a processor, based on the bilateral of block chain described in realization when the processor executes described program
The step of business accounting method.
Tenth aspect, the application provide a kind of computer readable storage medium, are stored thereon with computer program, the calculating
The step of bilateral business accounting method based on block chain is realized when machine program is executed by processor.
As shown from the above technical solution, the application provides a kind of bilateral business accounting method based on block chain and node dress
Set, participate in node apparatus by the first business and receive the first business accounting that the first business participant sends requesting, and by this
One business accounting request is synchronized to other node apparatus in block chain by block chain network, so that with first business accounting
Request relevant capital settlement node apparatus and bond settle accounts node apparatus can synchronize receive first business accounting request simultaneously
It is parallel to carry out feasibility judgement, and the result that feasibility judges is passed through into other nodes that block chain network is synchronized to block chain again
Device, and then capital settlement node apparatus and bond is enable to settle accounts the feasibility that node apparatus is synchronously received other side's transmission
Judging result, so that the capital settlement node apparatus and bond clearing node apparatus are sentenced in the capital settlement feasibility
When the judging result of the disconnected and described bond clearing feasibility judgement is all feasible, respectively to the first business participant and with this
First business accounting requests the fund account of corresponding second business participant and bond account to carry out business accounting processing, fastly
Fast, the efficient and reliable bilateral business accounting processing of completion, improves the efficiency of business accounting processing and message transmission;Meanwhile
Since block chain network is that can be led to the network architecture of decentralization without the network of cross-border network or financial transaction dedicated network
Letter limitation, therefore cross-border bilateral business accounting processing can be easily carried out, and by the distributed nature of block chain network, hand over
Easy business datum is stored in a distributed fashion on multiple node apparatus of block chain network, improves the safety of data,
Data are encrypted further through specific block chain Encryption Algorithm, ensure that only related participant just may browse through industry
Business message content, irrelevant side can't see sensitive information, improve privacy when business processing.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, technical solutions in the embodiments of the present application carries out clear, complete description, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
In view of bilateral business model in the prior art is the mode of a serial business processing and message transmission, only
Have after the completion of a upper link processing, just can be carried out the processing of next link, increase trading processing time, business processing
Efficiency is lower;Simultaneously as the reason of cross-border internet security limits, CIPS only supports connecing for domestic directly participant at present
Enter, overseas participant can only rely on SWIFT (Society for Worldwide Interbank Financial
Telecommunications, global cooperative bank's Financial Telecommunication association) dedicated financial message network and domestic direct ginseng
Message transmission is carried out with person, therefore the problem of overseas participant can not directly participate in the bilateral business of CIPS, the application provides one
Bilateral business accounting method and node apparatus of the kind based on block chain pass through the first business and participate in node apparatus the first business of reception
The first business accounting request that participant sends, and first business accounting is requested to be synchronized to block chain by block chain network
In other node apparatus so that capital settlement node apparatus relevant to the first business accounting request and bond settle accounts node
Device, which can synchronize, to be received first business accounting request and carries out feasibility judgement parallel, and again by the result of feasibility judgement
It is synchronized to other node apparatus of block chain by block chain network, and then capital settlement node apparatus and bond is made to settle accounts node
Device can be synchronously received the feasibility judging result of other side's transmission, so that the capital settlement node apparatus and the debt
Certificate settles accounts node apparatus in the judging result that the capital settlement feasibility judges and bond clearing feasibility judges
When feasible, the money of corresponding second business participant is requested to the first business participant and with first business accounting respectively
Golden account and bond account carry out business accounting processing, and quick, the efficient and reliable bilateral business accounting processing of completion improves
The efficiency of business accounting processing and message transmission;Simultaneously as block chain network is can not have with the network architecture of decentralization
The network communication of cross-border network or financial transaction dedicated network limits, therefore can easily carry out at cross-border bilateral business accounting
Reason, and by the distributed nature of block chain network, transaction business data are stored in block chain network in a distributed fashion
On multiple node apparatus, the safety of data is improved, data are carried out at encryption further through specific block chain Encryption Algorithm
Reason ensure that only related participant just may browse through service message content, and irrelevant side can't see sensitive information, improve industry
Privacy when business processing.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The application provides a kind of embodiment of bilateral business accounting method based on block chain, and executing subject is the in block chain network
One business participates in node apparatus, and referring to Fig. 1, the bilateral business accounting method based on block chain specifically includes to have the following steps
S101 to step S103:
Step S101: the first business accounting request that the first business participant sends is received.
It is understood that disposing peer node apparatus (account book node in block chain network for the first business participant
Device includes an account book and intelligent contract), the corresponding intelligent contract energy of the peer node apparatus of the first business participant
Enough realize the bilateral business accounting method based on block chain described in the present embodiment, and the peer node apparatus is connected to clearance always
The orderer node apparatus at center receives the first business accounting request of the first business participant transmission, first industry with this
Business participant can show for financial market certificate buy and sell in bilateral business accounting initiation bank, the first business participant can be with
Node apparatus communication connection is participated in by the terminal device and the first business that itself have been already configured with corresponding CA certificate.
It is understood that the first business accounting request can be to include the cash settled amount of money, clearing bond number
The service message of amount and second business participant's information, the second business participant can be corresponding receiving bank.
Step S102: first business accounting request is filled by other nodes that block chain network is synchronized to block chain
It sets, so that capital settlement node apparatus and bond clearing node apparatus carry out the judgement of capital settlement feasibility and bond clearing respectively
Feasibility judgement, and the judging result of capital settlement feasibility judgement and bond clearing feasibility judgement is passed through into area
Block chain network is synchronized to other node apparatus, so that the capital settlement node apparatus and bond clearing node apparatus are in institute
The judging result of the judgement of capital settlement feasibility and bond clearing feasibility judgement is stated when being all feasible, respectively to described the
One business participant and with first business accounting request corresponding second business participant fund account and bond account into
Industry business settlement process.
It is understood that kafka/zookeeper cluster, orderer can be disposed for CIPS in block chain network
Node apparatus (ordering joint device, for being ranked up to task) and peer node apparatus, so that first business participates in
Node apparatus requests first business accounting to be synchronized to the corresponding capital settlement node apparatus of CIPS by block chain network
Bond corresponding with SSS settles accounts node apparatus, since the mode of the message transmission in block chain network can be that the formula that floods is propagated,
Therefore the capital settlement node apparatus and bond clearing node apparatus can be synchronously received first business accounting request,
And concurrently first business accounting is requested to carry out feasibility judgement and business accounting is handled.
Step S103: the capital settlement node apparatus business accounting synchronous with bond clearing node apparatus is received
Processing result.
It is understood that the capital settlement node apparatus and bond clearing node apparatus are executing feasibility
After judgement or business accounting processing, at the same it is by block chain network that feasibility judging result is synchronous with business accounting processing result
Node apparatus is participated in the first business.
As can be seen from the above description, the bilateral business accounting method provided by the embodiments of the present application based on block chain, Neng Goutong
It crosses the first business and participates in node apparatus and receive the first business accounting request that the first business participant sends, and by first business
Settlement request is synchronized to other node apparatus in block chain by block chain network, so as to request phase with first business accounting
The capital settlement node apparatus of pass synchronize can receive first business accounting request and and advance with bond clearing node apparatus
The judgement of row feasibility, and the result that feasibility judges is passed through into other node apparatus that block chain network is synchronized to block chain again,
And then capital settlement node apparatus and bond is enable to settle accounts the feasibility judgement that node apparatus is synchronously received other side's transmission
As a result, so that the capital settlement node apparatus and the bond clearing node apparatus the capital settlement feasibility judgement and
When the judging result of bond clearing feasibility judgement is all feasible, respectively to the first business participant and with this first
The fund account of corresponding second business participant is requested in business accounting and bond account carries out business accounting processing, quick, high
Bilateral business accounting processing is imitated and reliably completed, the efficiency of business accounting processing and message transmission is improved.
In order to improve the efficiency of information transmitting, make all node apparatus relevant to the first business accounting request can
It synchronizes and receives the request and handled, in an embodiment of the bilateral business accounting method based on block chain of the application
In, it can also specifically include the first business accounting request to be stored in account book, and pass through block chain network for account book information
The step of being synchronized to other node apparatus, referring to fig. 2, which specifically includes following content:
Step 104: the first solicited message that first business accounting is requested being stored to corresponding first business and is participated in
In account book.
It is understood that the first business, which participates in node apparatus, is deployed with peer node apparatus, wherein including the first industry
Business participates in account book and corresponding intelligent contract, and first business participates in node apparatus and receiving the first business participant transmission
First business accounting request after by the first solicited message in the request store to corresponding first business participate in account book
In.
Step 105: first business being participated in by the first solicited message in account book by block chain network and is synchronized to area
In the account book of other node apparatus of block chain.
It is understood that since the mode of the message transmission in block chain network can be that the formula that floods is propagated, institute
The first solicited message stated in the first business participation account book can be by the account book of other node apparatus of parallel synchronous to block chain
In.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The embodiment of bilateral business accounting method this application provides another kind based on block chain, executing subject are in block chain network
Capital settlement node apparatus, referring to Fig. 3, the bilateral business accounting method based on block chain specifically includes to have the following steps
S201 to step S203:
Step S201: first business that receives participates in the first business accounting request that node apparatus is sent, to first industry
Settlement request of being engaged in carries out the judgement of capital settlement feasibility, obtains capital settlement feasibility judging result and can by the capital settlement
Row judging result is synchronized to other node apparatus by block chain network, so that bond settles accounts node apparatus according to the fund
It settles accounts feasibility judging result and bond clearing feasibility judging result requests corresponding second business to first business accounting
The bond account of participant carries out bond settlement process.
It is understood that the capital settlement node apparatus in block chain network can be CIPS operator, in block
For CIPS deployment kafka/zookeeper cluster, (kafka cluster is used to realize the transaction sequence clothes in fabric in chain network
Business, zookeeper cluster are used to manage kafka cluster), orderer node apparatus and peer node apparatus so that described first
Business, which participates in node apparatus, requests first business accounting to be synchronized to the corresponding capital settlement of CIPS by block chain network
Node apparatus, the capital settlement node apparatus are requested first business accounting to carry out the judgement of capital settlement feasibility, be obtained
It is synchronized to by block chain network to capital settlement feasibility judging result, and by the capital settlement feasibility judging result
His node apparatus, it is preferable that capital settlement feasibility judging result can be synchronized to correspondence by the capital settlement node apparatus
Bond settle accounts node apparatus so that bond settle accounts node apparatus according to the capital settlement feasibility judging result and bond knot
It calculates feasibility judging result and requests the bond account of corresponding second business participant to carry out bond knot first business accounting
Calculation processing.
Step S202: it receives the bond that bond clearing node apparatus is sent and settles accounts feasibility judging result, wherein the debt
Certificate clearing feasibility judging result is that bond clearing node apparatus receives the first business participation node apparatus transmission
The first business accounting request after, first business accounting is requested to carry out the bond knot that judges of bond clearing feasibility
Calculate feasibility judging result.
It is understood that capital settlement node apparatus described in above-mentioned steps S201, which receives the first business, participates in node
When the first synchronous business accounting of device is requested, the bond clearing node apparatus in same block chain network also has received described
First business participates in the first business accounting request that node apparatus is sent, and requests first business accounting to carry out bond knot
The bond clearing feasibility judging result that feasibility judges is calculated, then passes through bond clearing feasibility judging result
Block chain network is synchronized to the capital settlement node apparatus.
Step S203: settling accounts feasibility judging result according to the capital settlement feasibility judging result and the bond,
To the first business participant and with first business accounting request the fund account of corresponding second business participant into
Capital settlement processing result, is synchronized to other node apparatus of block chain by the processing of row capital settlement by block chain network.
It can it is understood that at this time including capital settlement in the capital settlement account book of the capital settlement node apparatus
Row judging result and bond settle accounts feasibility judging result, and the intelligent contract of the capital settlement node apparatus is to the fund knot
It calculates feasibility judging result and bond clearing feasibility judging result is judged, if all having feasibility, the intelligence contract
Judgement can carry out capital settlement processing, and notify corresponding CIPS to the first business participant and with first business
The finance account of the corresponding second business participant of settlement request carries out capital settlement processing, then by capital settlement processing result
Other node apparatus of block chain are synchronized to by block chain network.
As can be seen from the above description, the bilateral business accounting method provided by the embodiments of the present application based on block chain, Neng Goutong
It crosses block chain network and receives synchronous the first business accounting request of the first business participation node apparatus, and to the first business knot
It calculates request and carries out the judgement of capital settlement feasibility, obtain capital settlement feasibility judging result, while passing through block chain network again
The capital settlement feasibility judging result is synchronized to other node apparatus of block chain, so that bond settles accounts node apparatus root
First business accounting is requested to correspond to according to the capital settlement feasibility judging result and bond clearing feasibility judging result
The second business participant finance account carry out bond settlement process, receive bond clearing node apparatus send bond
After settling accounts feasibility judging result, according to the capital settlement feasibility judging result and bond clearing feasibility judgement knot
Fruit requests the finance account of corresponding second business participant to the first business participant and with first business accounting
Capital settlement processing is carried out, and capital settlement processing result is filled by other nodes that block chain network is synchronized to block chain
It sets, improves the efficiency of business accounting processing and message transmission.
In order to ensure the legitimacy and feasibility of business accounting, in the bilateral business knot based on block chain of the application
It can also specifically include to request phase to the first business accounting before carrying out capital settlement in one embodiment of calculation method
The step of corresponding first solicited message is checked, which specifically includes following content:
Compliance inspection and funds checking are carried out to the first solicited message of first business accounting request, wherein institute
Stating compliance inspection is the inspection of message format compliance, weight account inspection, rightness of business inspection and digital signature validity checking
At least one of, if compliance inspection and funds checking are qualified, capital settlement feasibility judging result is feasible.
It is understood that being executed after the capital settlement node apparatus receives the first business accounting request
It before capital settlement processing, needs that first business accounting is requested to check, inspection includes: in the first business accounting request
The first solicited message compliance inspection and funds checking to the first business participant, specifically, the compliance inspection
Including but not limited to: the inspection of message format compliance, weight account inspection, rightness of business inspection and digital signature validity checking,
The message format compliance inspection is to check whether the format of service message meets preset requirement, and whether the heavy account inspection is
In the presence of weight account, whether the rightness of business inspection is is the type of service for having permission execution, the digital signature legitimacy inspection
It looks into be verified to the digital signature in first business accounting request;The funds checking to the first business participant can
Think whether the closing balance judged in its finance account meets number of deals.
It is understood that the corresponding CIPS of the capital settlement node apparatus can execute the compliance inspection and institute
Funds checking is stated, and inspection result is stored in the capital settlement account book of the capital settlement node apparatus, if in the fund knot
Compliance inspection and funds checking in sheet of doing accounts all are qualification, then can determine that the capital settlement of the first business accounting request
Feasibility judging result is feasible.
In order to ensure the legitimacy and feasibility of business accounting, in the bilateral business knot based on block chain of the application
It can also specifically include to request phase to the first business accounting before carrying out capital settlement in one embodiment of calculation method
The step of finance account of corresponding first business participant checks, referring to fig. 4, the step specifically include in following
Hold:
Step S204: the account of the fund account of corresponding first business participant is requested in judgement with first business accounting
Whether family remaining sum is greater than the transaction amount in first solicited message.
Step S205: if so, funds checking is qualified, and by the fund account of the first business participant with it is described
The corresponding account balance of transaction amount is freezed.
The finance account of the first business participant is looked into it is understood that the capital settlement node apparatus has
Inquiry, modification, deletion and increased permission, specifically, the capital settlement node apparatus can inquire first business and participate in
Whether the closing balance in the finance account of person is greater than the amount of money to be transacted contained in the first business accounting request received, if
It is then to determine that the first business participant has enough abilities to pay, while to ensure that subsequent transaction is normally carried out, by described the
Closing balance corresponding with the transaction amount is freezed in the finance account of one business participant.That is the first business participant
Closing balance of the fund account before defrosting need to be more than or equal to transaction amount, the amount of cash of transaction amount quantity is not at this time
Can stateful transaction, the partial cash amount of money is unusable before defrosting.
Result in order to enable capital settlement feasibility to judge is synchronized to relevant every other node apparatus,
It can also specifically include to pass through capital settlement in one embodiment of the bilateral business accounting method based on block chain of the application
Capital settlement feasibility judging result is synchronized to relevant every other node in block chain network and filled by the account book of node apparatus
The step of setting, referring to Fig. 5, which specifically includes following content:
Step S206: the capital settlement feasibility judging result is stored into corresponding capital settlement account book.
It is understood that disposing kafka/zookeeper cluster, orderer node in block chain network for CIPS
Device and peer node apparatus (account book node apparatus includes an account book and intelligent contract), when the capital settlement node fills
It sets corresponding CIPS operator and executes the compliance inspection and the funds checking, and inspection result is stored in the fund
In the capital settlement account book for settling accounts node apparatus, if the compliance inspection and funds checking in the capital settlement account book are all conjunction
Lattice then can determine that the capital settlement feasibility judging result of the first business accounting request is feasible.
Step S207: by block chain network that the capital settlement feasibility judging result in the capital settlement account book is same
Step is into the account book of other node apparatus of block chain.
It is understood that since the mode of the message transmission in block chain network can be that the formula that floods is propagated, institute
The capital settlement feasibility judging result stated in capital settlement account book can be by other node apparatus of parallel synchronous to block chain
Account book in.
In order to improve the reliability of capital settlement, in the bilateral business accounting method based on block chain of the application
It can also specifically include that capital settlement node apparatus is receiving the synchronous bond of bond clearing node apparatus in one embodiment
After settling accounts feasibility judging result, provided according to capital settlement feasibility judging result and bond clearing feasibility judging result
The step of gold clearing, referring to Fig. 6, which specifically includes following content:
Step S208: judge the capital settlement feasibility judging result and the bond in the capital settlement account book
Settle accounts whether feasibility judging result is all feasible.
Step S209: if so, the account balance being frozen in the finance account of the first business participant is transferred
To the fund account of the second business participant.
It is understood that increasing the synchronous debt of bond clearing node apparatus in the capital settlement account book when listening to
When certificate settles accounts feasibility judging result, the intelligent contract of the capital settlement node apparatus judges that the capital settlement feasibility judges
As a result and whether bond clearing feasibility judging result is all feasible, if so, showing the first business accounting request
The feasibility judgement for having been passed through all respective nodes devices, has the condition for performing the next step business accounting, then the fund
Settle accounts node apparatus intelligent contract notice GIPS by the finance account of the first business participant be frozen account more than
Volume is transferred to the finance account of the second business participant, i.e., subtracts the quilt in the finance account of the first business participant
The account balance freezed increases the frozen account balance in the finance account of the second business participant.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The embodiment of bilateral business accounting method this application provides another kind based on block chain, executing subject are in block chain network
Bond settle accounts node apparatus, referring to Fig. 7, the bilateral business accounting method based on block chain specifically includes to have the following steps
S301 to step S303:
Step S301: first business that receives participates in the first business accounting request that node apparatus is sent, to first industry
Be engaged in settlement request carry out bond clearing feasibility judgement, obtain bond clearing feasibility judging result and by the bond clearing can
Row judging result is synchronized to other node apparatus by block chain network, so that capital settlement node apparatus is according to the bond
It settles accounts feasibility judging result and capital settlement feasibility judging result and corresponding first business is requested to first business accounting
The fund account of participant carries out capital settlement processing.
It is understood that the bond clearing node apparatus in block chain network can be SSS, it is in block chain network
SSS disposes orderer node apparatus and peer node apparatus, so that first business participates in node apparatus for first industry
Business settlement request is synchronized to the corresponding bond of SSS by block chain network and settles accounts node apparatus, and the bond settles accounts node apparatus
First business accounting is requested to carry out bond clearing feasibility judgement, obtains bond clearing feasibility judging result, and will
The bond clearing feasibility judging result is synchronized to other node apparatus by block chain network, it is preferable that the bond knot
Bond can be settled accounts feasibility judging result and be synchronized to corresponding capital settlement node apparatus by operator node device, so that fund knot
Operator node device settles accounts feasibility judging result and capital settlement feasibility judging result to first business according to the bond
The finance account of the corresponding first business participant of settlement request carries out capital settlement processing.
Step S302: the capital settlement feasibility judging result that capital settlement node apparatus is sent is received, wherein the money
Gold clearing feasibility judging result is that the capital settlement node apparatus receives the first business participation node apparatus transmission
The first business accounting request after, first business accounting is requested to carry out the fund knot that judges of capital settlement feasibility
Calculate feasibility judging result.
It is understood that the clearing node apparatus of bond described in above-mentioned steps S301 receives the first business and participates in node
When the first synchronous business accounting of device is requested, the capital settlement node apparatus in same block chain network also has received described
First business participates in the first business accounting request that node apparatus is sent, and requests carry out fund knot to first business accounting
The capital settlement feasibility judging result that feasibility judges is calculated, then passes through the capital settlement feasibility judging result
Block chain network is synchronized to the bond clearing node apparatus.
Step S303: settling accounts feasibility judging result and the capital settlement feasibility judging result according to the bond,
To the first business participant and with first business accounting request the bond account of corresponding second business participant into
Bond settlement process result is synchronized to other node apparatus of block chain by row bond settlement process by block chain network.
It can it is understood that at this time including bond clearing in the bond clearing account book of the bond clearing node apparatus
Row judging result and capital settlement feasibility judging result, the intelligent contract of the bond clearing node apparatus is to the bond knot
It calculates feasibility judging result and capital settlement feasibility judging result is judged, if all having feasibility, the intelligence contract
Judgement can carry out bond settlement process, and notify corresponding SSS to the first business participant and with first business
The finance account of the corresponding second business participant of settlement request carries out bond settlement process, then by bond settlement process result
Other node apparatus of block chain are synchronized to by block chain network.
As can be seen from the above description, the bilateral business accounting method provided by the embodiments of the present application based on block chain, Neng Goutong
It crosses block chain network and receives synchronous the first business accounting request of the first business participation node apparatus, and to the first business knot
It calculates request and carries out bond clearing feasibility judgement, obtain bond clearing feasibility judging result, while passing through block chain network again
Bond clearing feasibility judging result is synchronized to other node apparatus of block chain, so that capital settlement node apparatus root
It settles accounts feasibility judging result and capital settlement feasibility judging result according to the bond first business accounting is requested to correspond to
The first business participant finance account carry out capital settlement processing, receive capital settlement node apparatus transmission fund
After settling accounts feasibility judging result, feasibility judging result and capital settlement feasibility judgement knot are settled accounts according to the bond
Fruit requests the finance account of corresponding second business participant to the first business participant and with first business accounting
Bond settlement process is carried out, and bond settlement process result is filled by other nodes that block chain network is synchronized to block chain
It sets, improves the efficiency of business accounting processing and message transmission.
In order to ensure the legitimacy and feasibility of business accounting, in the bilateral business knot based on block chain of the application
It can also specifically include to request phase to the first business accounting before carrying out bond clearing in one embodiment of calculation method
The step of corresponding first solicited message is checked, which specifically includes following content:
To the payment information and the progress payment information verification of bond Transaction Information and debt in first business accounting request
The verification of certificate information, if payment information and the verification of bond Transaction Information are accurate, it is feasible that bond, which settles accounts feasibility judging result,.
It is understood that first business accounting request in payment information and bond Transaction Information pay the bill
Information verification and the verification of bond information, i.e., to the payment information and the progress of bond Transaction Information in first business accounting request
Matching and verifying, for example, being bought and sold to the bond in the bank settlement side's information and the bond Transaction Information in the payment information
Square information is matched.
In order to ensure the legitimacy and feasibility of business accounting, in the bilateral business knot based on block chain of the application
It can also specifically include to request phase to the first business accounting before carrying out bond clearing in one embodiment of calculation method
The step of finance account of corresponding second business participant checks, referring to Fig. 8, which specifically includes in following
Hold:
Step 304: the debt of the bond account of corresponding second business participant is requested in judgement with first business accounting
Whether certificate remaining sum is greater than the number of deals in the bond Transaction Information.
Step 305: if so, by debt corresponding with the number of deals in the bond account of the second business participant
Certificate remaining sum is freezed.
The finance account of the second business participant is looked into it is understood that the bond clearing node apparatus has
Inquiry, modification, deletion and increased permission, specifically, the bond clearing node apparatus can inquire second business and participate in
Whether the bond outstanding in the finance account of person is greater than the number to be transacted contained in the first business accounting request received, if
It is then to determine that the second business participant has enough abilities to pay, while to ensure that subsequent transaction is normally carried out, by described the
Bond outstanding corresponding with the number of deals freezes in the finance account of two business participants.
In order to enable the result of bond clearing feasibility judgement to be synchronized to relevant every other node apparatus,
It can also specifically include to be settled accounts by bond in one embodiment of the bilateral business accounting method based on block chain of the application
Bond clearing feasibility judging result is synchronized to relevant every other node in block chain network and filled by the account book of node apparatus
The step of setting, referring to Fig. 9, which specifically includes following content:
Step 306: bond clearing feasibility judging result is stored into corresponding bond clearing account book.
It is understood that disposing orderer node apparatus and peer node apparatus (account in block chain network for SSS
This node apparatus includes an account book and intelligent contract), when the corresponding SSS of bond clearing node apparatus executes described pay
The verification of money information and the verification of bond Transaction Information, and the bond that checked result is stored in bond clearing node apparatus is settled accounts into account
In this, if the payment information and bond Transaction Information in bond clearing account book are all checked correctly, described first can determine that
The bond clearing feasibility judging result of business accounting request is feasible.
Step 307: by block chain network that the bond clearing feasibility judging result in bond clearing account book is same
Step is into the account book of other node apparatus of block chain.
It is understood that since the mode of the message transmission in block chain network can be that the formula that floods is propagated, institute
The bond clearing feasibility judging result stated in bond clearing account book can be by other node apparatus of parallel synchronous to block chain
Account book in.
In order to improve the reliability of bond clearing, in the bilateral business accounting method based on block chain of the application
It can also specifically include that bond clearing node apparatus is receiving the synchronous fund of capital settlement node apparatus in one embodiment
After settling accounts feasibility judging result, debt is carried out according to capital settlement feasibility judging result and bond clearing feasibility judging result
The step of certificate is settled accounts, referring to Figure 10, which specifically includes following content:
Step 308: judging the bond clearing feasibility judging result and the fund in the bond clearing account book
Settle accounts whether feasibility judging result is all feasible.
Step 309: if so, by the bond account of the second business participant be frozen bond outstanding transfer to
The bond account of the first business participant.
It is understood that increasing the synchronous money of capital settlement node apparatus when listening in the bond clearing account book
When gold clearing feasibility judging result, the intelligent contract of the bond clearing node apparatus judges that the capital settlement feasibility judges
As a result and whether bond clearing feasibility judging result is all feasible, if so, showing the first business accounting request
The feasibility judgement for having been passed through all respective nodes devices, has the condition for performing the next step business accounting, then the bond
Settle accounts the bond outstanding that the intelligent contract notice SSS of node apparatus will be frozen in the finance account of the second business participant
It transfers to the finance account of the first business participant, i.e., subtracts described be frozen in the finance account of the second business participant
The bond outstanding of knot increases the frozen bond outstanding in the finance account of the first business participant.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The embodiment of bilateral business accounting method this application provides another kind based on block chain, executing subject are in block chain network
The second business participate in node apparatus, referring to Figure 11, the bilateral business accounting method based on block chain specifically include just like
Lower step S401 to step S402:
Step S401: first business that receives participates in the first business accounting request that node apparatus is sent, wherein described first
Other node apparatus of block chain are gone back while being synchronized to by block chain network in business accounting request, so that capital settlement node fills
It sets and carries out the judgement of capital settlement feasibility and bond clearing feasibility judgement respectively with bond clearing node apparatus, and by the money
The judging result of gold clearing feasibility judgement and bond clearing feasibility judgement is synchronized to other sections by block chain network
Point device, so that the capital settlement node apparatus and bond clearing node apparatus judge in the capital settlement feasibility
When judging result with bond clearing feasibility judgement is all feasible, respectively to the first business participant and with this
One business accounting requests the fund account of corresponding second business participant and bond account to carry out business accounting processing.
It is understood that disposing peer node apparatus (account book node in block chain network for the second business participant
Device includes an account book and intelligent contract), and the peer node apparatus is connected to the orderer node dress of clearance head center
It sets, the first business in block chain network is received with this and participates in the first business accounting request that node apparatus is sent, second industry
Business participant can show for financial market certificate buy and sell in bilateral business accounting receiving bank, the second business participant can be with
Node apparatus communication connection is participated in by the terminal device and the second business that itself have been already configured with corresponding CA certificate.
It is understood that the first business accounting request can be to include the cash settled amount of money, clearing bond number
The service message of amount and first business participant's information, the first business participant can be corresponding initiation bank.
Step S402: the capital settlement node apparatus business accounting synchronous with bond clearing node apparatus is received
Processing result.
It is understood that the capital settlement node apparatus and bond clearing node apparatus are executing feasibility
After judgement or business accounting processing, at the same it is by block chain network that feasibility judging result is synchronous with business accounting processing result
Node apparatus is participated in the second business.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The application provide a kind of all or part of the content of bilateral business accounting method for realizing described based on block chain based on
The embodiment of the bilateral business accounting node apparatus of block chain, referring to Figure 12, the bilateral business accounting section based on block chain
Point device specifically includes following content:
First business accounting request receiving module 11, the first business accounting for receiving the first business participant transmission are asked
It asks.
Synchronization module 12 is requested in first business accounting, for first business accounting request is same by block chain network
It walks to other node apparatus of block chain, so that capital settlement node apparatus and bond clearing node apparatus carry out fund knot respectively
Feasibility judgement and bond clearing feasibility judgement are calculated, and capital settlement feasibility judgement and bond clearing is feasible
Property judgement judging result other node apparatus are synchronized to by block chain network so that the capital settlement node apparatus and institute
Bond clearing node apparatus is stated in the judging result of capital settlement feasibility judgement and bond clearing feasibility judgement
When being all feasible, respectively to the first business participant and the second business participant corresponding with the first business accounting request
Fund account and bond account carry out business accounting processing.
First business accounting processing result receiving module 13, for receiving the capital settlement node apparatus and the bond
Settle accounts the synchronous business accounting processing result of node apparatus.
As can be seen from the above description, the bilateral business accounting node apparatus provided by the embodiments of the present application based on block chain, energy
The first business is enough received by block chain network and participates in synchronous the first business accounting request of node apparatus, and to first industry
Settlement request of being engaged in carries out the judgement of capital settlement feasibility, obtains capital settlement feasibility judging result, while passing through block chain again
The capital settlement feasibility judging result is synchronized to other node apparatus of block chain by network, so that bond clearing node dress
It sets and first business accounting is requested according to the capital settlement feasibility judging result and bond clearing feasibility judging result
The finance account of corresponding second business participant carries out bond settlement process, is receiving what bond clearing node apparatus was sent
After bond settles accounts feasibility judging result, sentenced according to the capital settlement feasibility judging result and bond clearing feasibility
Break as a result, requesting the finance of corresponding second business participant to the first business participant and with first business accounting
Account carries out capital settlement processing, and capital settlement processing result is synchronized to other nodes of block chain by block chain network
Device improves the efficiency of business accounting processing and message transmission.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The application also provides another all or part of the content for realizing the bilateral business accounting method based on block chain
The embodiment of bilateral business accounting node apparatus based on block chain, referring to Figure 13, the bilateral business knot based on block chain
Operator node device specifically includes following content:
Capital settlement feasibility judgment module 21 participates in the first business knot that node apparatus is sent for receiving the first business
Request is calculated, first business accounting is requested to carry out the judgement of capital settlement feasibility, obtains capital settlement feasibility judgement knot
The capital settlement feasibility judging result is simultaneously synchronized to other node apparatus by block chain network by fruit, so that bond is settled accounts
Node apparatus is according to the capital settlement feasibility judging result and bond clearing feasibility judging result to the first business knot
It calculates and the bond account of corresponding second business participant is requested to carry out bond settlement process.
Bond settles accounts feasibility judging result receiving module 22, the bond knot sent for receiving bond clearing node apparatus
Calculate feasibility judging result, wherein the bond clearing feasibility judging result is that bond clearing node apparatus receives
After first business participates in the first business accounting request that node apparatus is sent, first business accounting is requested to carry out debt
The bond clearing feasibility judging result that certificate clearing feasibility judges.
Capital settlement processing module 23, can for being settled accounts according to the capital settlement feasibility judging result and the bond
Row judging result, to the first business participant and the second business participant corresponding with the first business accounting request
Fund account carry out capital settlement processing, by capital settlement processing result by block chain network be synchronized to block chain other
Node apparatus.
As can be seen from the above description, the bilateral business accounting node apparatus provided by the embodiments of the present application based on block chain, energy
The first business is enough received by block chain network and participates in synchronous the first business accounting request of node apparatus, and to first industry
Settlement request of being engaged in carries out the judgement of capital settlement feasibility, obtains capital settlement feasibility judging result, while passing through block chain again
The capital settlement feasibility judging result is synchronized to other node apparatus of block chain by network, so that bond clearing node dress
It sets and first business accounting is requested according to the capital settlement feasibility judging result and bond clearing feasibility judging result
The finance account of corresponding second business participant carries out bond settlement process, is receiving what bond clearing node apparatus was sent
After bond settles accounts feasibility judging result, sentenced according to the capital settlement feasibility judging result and bond clearing feasibility
Break as a result, requesting the finance of corresponding second business participant to the first business participant and with first business accounting
Account carries out capital settlement processing, and capital settlement processing result is synchronized to other nodes of block chain by block chain network
Device improves the efficiency of business accounting processing and message transmission.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The application also provides another all or part of the content for realizing the bilateral business accounting method based on block chain
The embodiment of bilateral business accounting node apparatus based on block chain, referring to Figure 14, the bilateral business knot based on block chain
Operator node device specifically includes following content:
Bond settles accounts feasibility judgment module 31, participates in the first business knot that node apparatus is sent for receiving the first business
Request is calculated, first business accounting is requested to carry out bond clearing feasibility judgement, obtains bond clearing feasibility judgement knot
Bond clearing feasibility judging result is simultaneously synchronized to other node apparatus by block chain network by fruit, so that capital settlement
Node apparatus settles accounts feasibility judging result and capital settlement feasibility judging result to the first business knot according to the bond
It calculates and the fund account of corresponding first business participant is requested to carry out capital settlement processing.
Capital settlement feasibility judging result receiving module 32, for receiving the fund knot of capital settlement node apparatus transmission
Calculate feasibility judging result, wherein the capital settlement feasibility judging result is that the capital settlement node apparatus receives
After first business participates in the first business accounting request that node apparatus is sent, first business accounting request is provided
The capital settlement feasibility judging result that gold clearing feasibility judges.
Bond settlement handler module 33 is used to settle accounts feasibility judging result according to the bond and the capital settlement can
Row judging result, to the first business participant and the second business participant corresponding with the first business accounting request
Bond account carry out bond settlement process, by bond settlement process result by block chain network be synchronized to block chain other
Node apparatus.
As can be seen from the above description, the bilateral business accounting node apparatus provided by the embodiments of the present application based on block chain, energy
The first business is enough received by block chain network and participates in synchronous the first business accounting request of node apparatus, and to first industry
Settlement request of being engaged in carries out bond clearing feasibility judgement, obtains bond clearing feasibility judging result, while passing through block chain again
Bond clearing feasibility judging result is synchronized to other node apparatus of block chain by network, so that capital settlement node fills
It sets and feasibility judging result and capital settlement feasibility judging result is settled accounts to first business accounting request according to the bond
The finance account of corresponding first business participant carries out capital settlement processing, is receiving the transmission of capital settlement node apparatus
After capital settlement feasibility judging result, feasibility judging result is settled accounts according to the bond and the capital settlement feasibility is sentenced
Break as a result, requesting the finance of corresponding second business participant to the first business participant and with first business accounting
Account carries out bond settlement process, and bond settlement process result is synchronized to other nodes of block chain by block chain network
Device improves the efficiency of business accounting processing and message transmission.
In order to effectively be optimized to bilateral business processing step, the efficiency of raising business processing and message transmission,
The application also provides another all or part of the content for realizing the bilateral business accounting method based on block chain
The embodiment of bilateral business accounting node apparatus based on block chain, referring to Figure 15, the bilateral business knot based on block chain
Operator node device specifically includes following content:
Second business accounting request receiving module 41 participates in the first business that node apparatus is sent for receiving the first business
Settlement request, wherein the first business accounting request goes back while being synchronized to other nodes of block chain by block chain network
Device, so that capital settlement node apparatus and bond clearing node apparatus carry out the judgement of capital settlement feasibility and bond knot respectively
Feasibility judgement is calculated, and the judging result of capital settlement feasibility judgement and bond clearing feasibility judgement is passed through
Block chain network is synchronized to other node apparatus, so that the capital settlement node apparatus and bond clearing node apparatus exist
When the judging result of the capital settlement feasibility judgement and bond clearing feasibility judgement is all feasible, respectively to described
First business participant and the fund account and bond account that corresponding second business participant is requested with first business accounting
Carry out business accounting processing.
Second business accounting processing result receiving module 42, for receiving the capital settlement node apparatus and the bond
Settle accounts the synchronous business accounting processing result of node apparatus.
In order to further explain this programme, the application also provides a kind of bilateral business knot using above-mentioned based on block chain
Calculation system realizes that the specific application example of the bilateral business accounting method based on block chain, the system of the specific application example are overall
Framework is referring to Figure 16, and system layer framework is referring to Figure 17, and for system integrated framework referring to Figure 18, network disposes framework referring to Figure 19,
Specific includes to have the following steps:
1) transaction is initiated: according to financial market transactions agreement, direct participant A sends bilateral business report to block chain network
Text;
2) CIPS, SSS and direct participant B receive the bilateral service message of block chain network push simultaneously;
3) CIPS and SSS carries out business feasibility processing parallel, wherein
CIPS business processing includes: (1) message audit: after CIPS receives message, carrying out message format, weight account, business and closes
Method and digital signature legitimacy etc. check;(2) account balance inspection and the amount of money freeze: check the account balance of participant A, it is remaining
In the case that volume is sufficient, settlement amounts are frozen in the account of direct participant A;CIPS service processing result returns to block chain
Network;
SSS business processing includes: that SSS carries out payment information and bond transaction information match, it is errorless after by participant's B bond
It carries out freezing to handle, and is returned the result to block chain network;
4) block chain network collects the business feasibility processing result of CIPS and SSS, judges whether CIPS and SSS all agrees to
Clearing, and push and determine result to CIPS, SSS, direct participant A and direct participant B;
5) in the case where determining that result is all agreement, CIPS carries out settlement process, and settlement process result is returned to block
Chain network;
6) the settlement process result of block chain network push CIPS is to SSS, direct participant A and direct participant B.
The system general frame also specifically includes following content referring to Figure 16:
CIPS operator: be deployed with kafka/zookeeper cluster, orderer node apparatus (ordering joint device,
Task is ranked up) and peer node apparatus (account book node apparatus includes an account book and contract);
SSS and the direct participant of core: peer node apparatus and orderer node apparatus are deployed with;
Common direct participant: being deployed with peer node apparatus, and node apparatus is connected to the orderer of clearance head center
Node apparatus;
CA certificate: for establishing certificate management system, user certificate is mapped to, specifically, mapping refers to true mechanism
It is bound with the certificate or public key of mechanism.Effect is: the interaction between mechanism, by certificate (or public key)/private key to verifying, demonstrate,proves
Book or public key are considered as the account of true mechanism.
The network deployment framework also specifically includes following content referring to Figure 19:
All common node devices of block chain network, are deployed in the area each participant DMZ, are opened by VPN and interior firewall
Logical white list authorizes mutual access;
Build a kafka cluster (be deployed in clearance head center), SSS with core participant is distributed builds one
2 or more peer build in orderer organization and peer organization, each mechanism, and common participant builds 2 or more
Peer, and the peer for participating in mechanism with core constitutes a peer organization.
Embodiments herein also provides the bilateral business accounting side based on block chain that can be realized in above-described embodiment
The specific embodiment of a kind of electronic equipment of Overall Steps in method, referring to fig. 20, the electronic equipment specifically includes in following
Hold:
Processor (processor) A01, memory (memory) A02, communication interface (Communications
Interface) A03 and bus A04;
Wherein, the processor A01, memory A02, communication interface A03 complete mutual lead to by the bus A04
Letter;The communication interface A03 sets for realizing bilateral business accounting system, online operation system, client based on block chain
Information transmission between standby and other participation mechanisms;
The processor A01 is used to call the computer program in the memory A02, and the processor executes the meter
The Overall Steps in the bilateral business accounting method based on block chain in above-described embodiment are realized when calculation machine program, for example, institute
It states when processor executes the computer program and realizes following step:
Step S101: the first business accounting request that the first business participant sends is received.
Step S102: first business accounting request is filled by other nodes that block chain network is synchronized to block chain
It sets, so that capital settlement node apparatus and bond clearing node apparatus carry out the judgement of capital settlement feasibility and bond clearing respectively
Feasibility judgement, and the judging result of capital settlement feasibility judgement and bond clearing feasibility judgement is passed through into area
Block chain network is synchronized to other node apparatus, so that the capital settlement node apparatus and bond clearing node apparatus are in institute
The judging result of the judgement of capital settlement feasibility and bond clearing feasibility judgement is stated when being all feasible, respectively to described the
One business participant and with first business accounting request corresponding second business participant fund account and bond account into
Industry business settlement process.
Step S103: the capital settlement node apparatus business accounting synchronous with bond clearing node apparatus is received
Processing result.
As can be seen from the above description, electronic equipment provided by the embodiments of the present application, can participate in node dress by the first business
It sets and receives the first business accounting request that the first business participant sends, and first business accounting request is passed through into block link network
Network is synchronized to other node apparatus in block chain, so that capital settlement node apparatus relevant to the first business accounting request
Synchronize first business accounting request can be received and carry out feasibility judgement parallel with bond clearing node apparatus, and will be feasible
Property judgement result pass through other node apparatus that block chain network is synchronized to block chain again, and then make capital settlement node apparatus
The feasibility judging result of other side's transmission can be synchronously received with bond clearing node apparatus, so that the capital settlement section
Point device and bond clearing node apparatus are in capital settlement feasibility judgement and bond clearing feasibility judgement
Judging result when being all feasible, respectively to the first business participant and with the first business accounting request corresponding second
The finance account of business participant carries out business accounting processing, and quick, the efficient and reliable bilateral business accounting processing of completion mentions
The high efficiency of business accounting processing and message transmission.
Embodiments herein is also provided in the bilateral business accounting based on block chain that can be realized in above-described embodiment
A kind of computer readable storage medium of Overall Steps is stored with computer program on the computer readable storage medium, should
The Overall Steps of the bilateral business accounting based on block chain in above-described embodiment are realized when computer program is executed by processor,
For example, the processor realizes following step when executing the computer program:
Step S101: the first business accounting request that the first business participant sends is received.
Step S102: first business accounting request is filled by other nodes that block chain network is synchronized to block chain
It sets, so that capital settlement node apparatus and bond clearing node apparatus carry out the judgement of capital settlement feasibility and bond clearing respectively
Feasibility judgement, and the judging result of capital settlement feasibility judgement and bond clearing feasibility judgement is passed through into area
Block chain network is synchronized to other node apparatus, so that the capital settlement node apparatus and bond clearing node apparatus are in institute
The judging result of the judgement of capital settlement feasibility and bond clearing feasibility judgement is stated when being all feasible, respectively to described the
One business participant and with first business accounting request corresponding second business participant fund account and bond account into
Industry business settlement process.
Step S103: the capital settlement node apparatus business accounting synchronous with bond clearing node apparatus is received
Processing result.
As can be seen from the above description, computer readable storage medium provided by the embodiments of the present application, can pass through the first business
It participates in node apparatus and receives the first business accounting request that the first business participant sends, and first business accounting request is logical
Other node apparatus that block chain network is synchronized in block chain are crossed, so that fund knot relevant to the first business accounting request
Operator node device and bond clearing node apparatus can synchronize receive first business accounting and request and carry out feasibility parallel to sentence
It is disconnected, and the result that feasibility judges is passed through into other node apparatus that block chain network is synchronized to block chain again, and then make fund
Clearing node apparatus and bond clearing node apparatus can be synchronously received the feasibility judging result of other side's transmission, so that institute
Capital settlement node apparatus and bond clearing node apparatus are stated in capital settlement feasibility judgement and the bond knot
When the judging result for calculating feasibility judgement is all feasible, asked respectively to the first business participant and with first business accounting
The finance account of corresponding second business participant is asked to carry out business accounting processing, the bilateral industry of quick, efficient and reliable completion
Business settlement process, improves the efficiency of business accounting processing and message transmission.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for hardware+
For program class embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side
The part of method embodiment illustrates.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or noninvasive
The labour for the property made may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous steps
One of execution sequence mode, does not represent and unique executes sequence.It, can when device or client production in practice executes
To execute or parallel execute (such as at parallel processor or multithreading according to embodiment or method shown in the drawings sequence
The environment of reason).
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, vehicle-mounted human-computer interaction device, cellular phone, camera phone, smart phone, individual
Digital assistants, media player, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or
The combination of any equipment in these equipment of person.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program
Product.Therefore, in terms of this specification embodiment can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.
This specification embodiment can describe in the general context of computer-executable instructions executed by a computer,
Such as program module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, journey
Sequence, object, component, data structure etc..This specification embodiment can also be practiced in a distributed computing environment, in these points
Cloth calculates in environment, by executing task by the connected remote processing devices of communication network.In distributed computing ring
In border, program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ",
The description of " specific example " or " some examples " etc. means specific features described in conjunction with this embodiment or example, structure, material
Or feature is contained at least one embodiment or example of this specification embodiment.In the present specification, to above-mentioned term
Schematic representation be necessarily directed to identical embodiment or example.Moreover, description specific features, structure, material or
Person's feature may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, in not conflicting feelings
Under condition, those skilled in the art by different embodiments or examples described in this specification and different embodiment or can show
The feature of example is combined.
The foregoing is merely the embodiments of this specification, are not limited to this specification embodiment.For ability
For field technique personnel, this specification embodiment can have various modifications and variations.It is all this specification embodiment spirit and
Any modification, equivalent replacement, improvement and so within principle should be included in the scope of the claims of this specification embodiment
Within.