Summary of the invention
A kind of fee payment method and device and electronic equipment based on block chain that this specification embodiment provides:
According to this specification embodiment in a first aspect, providing a kind of fee payment method based on block chain, the method is answered
For payment platform, which comprises
Monitor the arrearage information that the newest block of the block chain is distributed to by charge platform;
After the payment information generated after receiving the arrearage amount of money being directed in the arrearage information and being paid, it is based on institute
State payment information construction payment transaction;Wherein, the Hash pointer for having the arrearage information is recorded in the payment information;
The node device that the payment transaction is sent in the block chain, so as to be paid described in node device response
Take transaction, the payment information is stored in the block chain.
Optionally, it is distributed in the monitoring by charge platform after the arrearage information of newest block of the block chain,
The method also includes:
In the index that the arrearage information is locally created;Wherein, described to index by the defaulting subscriber's of the arrearage information
Information is constituted, and the index maintenance has the chained list for recording the arrearage information.
Optionally, the payment information generated after receiving the arrearage amount of money being directed in the arrearage information and being paid
Afterwards, the method also includes:
The payment information is added in the chained list of the index maintenance of the arrearage information.
Optionally, the method also includes:
Monitor the payment affirmation information that the newest block of the block chain is distributed to by charge platform;
According to the corresponding arrearage information of the payment affirmation information, the payment affirmation information is added to the arrearage and is believed
In the chained list of the index maintenance of breath.
Optionally, the method also includes:
The index that arrearage information is corresponded to according to the payment affirmation information, returning to payment to defaulting subscriber, successfully notice disappears
Breath.
Optionally, described according to the corresponding arrearage information of payment affirmation information, it specifically includes:
According to the Hash pointer recorded in payment affirmation information, corresponding payment information is determined;
According to the Hash pointer recorded in the payment information, corresponding arrearage information is determined.
Optionally, the Hash pointer of the arrearage information include for arrearage information content carry out hash be calculated
Cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
According to the second aspect of this specification embodiment, a kind of fee payment method based on block chain is provided, the method is answered
For charge platform, which comprises
By the node device for being sent to the block chain wait transaction of paying the fees based on arrearage information structuring, so that the node
The arrearage information, wait transaction of paying the fees, is stored in the block chain in response to described by equipment;
Monitor the payment information that the newest block of the block chain is distributed to by payment platform;Wherein, the payment information
It is middle to record the Hash pointer for having arrearage information;
Corresponding target arrearage information is determined according to the Hash pointer recorded in the payment information, and is directed to the target
Arrearage information executes payment affirmation processing;
The payment affirmation transaction of the payment affirmation information structuring generated based on payment affirmation processing is sent to described
Node device in block chain, so that the node device is traded in response to the payment affirmation, by the payment affirmation information
It is stored in the block chain;Wherein, the Hash pointer for having the payment information is recorded in the payment affirmation information.
Optionally, the Hash pointer of the arrearage information include for arrearage information content carry out hash be calculated
Cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
According to the third aspect of this specification embodiment, a kind of paying device based on block chain is provided, described device is answered
For payment platform, described device includes:
Monitoring unit monitors the arrearage information that the newest block of the block chain is distributed to by charge platform;
Structural unit, the payment information generated after receiving the arrearage amount of money being directed in the arrearage information and being paid
Afterwards, based on payment information construction payment transaction;Wherein, record has the Hash of the arrearage information to refer in the payment information
Needle;
Transmission unit, the node device that the payment transaction is sent in the block chain, so that the node device
The payment transaction is responded, the payment information is stored in the block chain.
Optionally, in the monitoring unit, further includes:
In the index that the arrearage information is locally created;Wherein, described to index by the defaulting subscriber's of the arrearage information
Information is constituted, and the index maintenance has the chained list for recording the arrearage information.
Optionally, in the structural unit, further includes:
The payment information is added in the chained list of the index maintenance of the arrearage information.
Optionally, described device further include:
Second monitoring unit monitors the payment affirmation information that the newest block of the block chain is distributed to by charge platform;
The payment affirmation information is added to by adding unit according to the corresponding arrearage information of the payment affirmation information
In the chained list of the index maintenance of the arrearage information.
Optionally, described device further include:
Notification unit corresponds to the index of arrearage information according to the payment affirmation information, to defaulting subscriber return payment at
The notification message of function.
Optionally, described according to the corresponding arrearage information of payment affirmation information, it specifically includes:
According to the Hash pointer recorded in payment affirmation information, corresponding payment information is determined;
According to the Hash pointer recorded in the payment information, corresponding arrearage information is determined.
Optionally, the Hash pointer of the arrearage information include for arrearage information content carry out hash be calculated
Cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
According to the fourth aspect of this specification embodiment, a kind of paying device based on block chain is provided, the method is answered
For charge platform, described device includes:
First transmission unit sets the node for being sent to the block chain wait transaction of paying the fees based on arrearage information structuring
It is standby, so that the node device is traded in response to described wait pay the fees, the arrearage information is stored in the block chain;
Monitoring unit monitors the payment information that the newest block of the block chain is distributed to by payment platform;Wherein, described
Record has the Hash pointer of arrearage information in payment information;
Confirmation unit determines corresponding target arrearage information, and needle according to the Hash pointer recorded in the payment information
Payment affirmation processing is executed to the target arrearage information;
Second transmission unit hands over the payment affirmation of the payment affirmation information structuring generated based on payment affirmation processing
The node device being easily sent in the block chain, so that the node device is traded in response to the payment affirmation, it will be described
Payment affirmation information is stored in the block chain;Wherein, the Hash for having the payment information is recorded in the payment affirmation information
Pointer.
Optionally, the Hash pointer of the arrearage information include for arrearage information content carry out hash be calculated
Cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
According to the 5th of this specification embodiment the aspect, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to fee payment method of any of the above-described based on block chain.
This specification embodiment provides a kind of payment scheme based on block chain, (provides the clothes of service by charge platform
Business side) it carries out the arrearage information batch cochain generated in a period of time to deposit card.Payment platform listens to after arrearage information can be with
Provide a user the inquiry of arrearage information and paying service;After user pays arrearage, payment information cochain is carried out to deposit card.Charge
Platform determines target arrearage information after listening to payment information, based on the Hash pointer recorded in payment information, thus to mesh
Mark arrearage information is confirmed (such as the processing that writes off), and payment affirmation information cochain is deposited card;Payment platform is listening to branch
After paying confirmation message, target payment information is determined based on the Hash pointer recorded in payment affirmation information, and then be based on target branch
It pays the Hash pointer in information and determines target arrearage information, confirm the arrearage amount of money of target arrearage information to be received by charge platform
It takes.Whole process payment platform unbinds completely with charge platform, to realize offline payment, and due to data tool in block chain
There is feature that is open and clear, can not distorting, without additionally increasing the supervision to payment platform, entire paying process is open and clear,
It will not be tampered, solve the trust problem to payment platform.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
With the continuous development of mobile payment, very to traditional services Fang Douyu mobile payment institution cooperation, to increase itself
The coverage rate of business.Such as tap water, electric power, the natural gas that must be used in life.The required service of the life such as coal gas,
It can pay the fees in Third-party payment platform.
Specifically, in traditional scheme, arrearage information batch can be imported payment platform by charge platform, and flat by payment
The offline payment of platform realization user.However, in this scheme, there are the following problems:
1. arrearage information lacks tamper-proof mechanisms, after arrearage information is imported payment platform by charge platform, completely by propping up
Platform is paid to safeguard arrearage information.Lack the supervision to payment platform, is easy to appear user and payment is distrusted.
2. payment state lacks believable open mechanism, after subscriber payment, due to being to pay the fees offline, user is at one section
It is interior not know whether really complete payment;User is equally easy to appear to distrust payment.
For this purpose, (providing the service of service by charge platform this description presents a kind of payment scheme based on block chain
Side) it carries out the arrearage information batch cochain generated in a period of time to deposit card.Payment platform listens to after arrearage information can be to
User provides the inquiry of arrearage information and paying service;After user pays arrearage, payment information cochain is carried out to deposit card.Charge is flat
Platform determines target arrearage information after listening to payment information, based on the Hash pointer recorded in payment information, thus to target
Arrearage information is confirmed (such as the processing that writes off), and payment affirmation information cochain is deposited card;Payment platform is listening to payment
After confirmation message, target payment information is determined based on the Hash pointer recorded in payment affirmation information, and then pay based on target
Hash pointer in information determines target arrearage information, confirms the arrearage amount of money of target arrearage information to be collected by charge platform.
Whole process payment platform unbinds completely with charge platform, to realize offline payment, and due in block chain data have
Feature that is open and clear, can not distorting, without additionally increasing the supervision to payment platform, entire paying process is open and clear, no
It can be tampered, solve the trust problem to payment platform.
The block chain described in this specification can specifically include privately owned chain, shared chain and alliance's chain etc., in this theory
Without being particularly limited in bright book.
For example, in one scenario, above-mentioned block chain specifically can be by charge mechanism, payment mechanism etc. as alliance at
One alliance's chain of member's composition;The operator of alliance's chain can rely on alliance's chain, to dispose corresponding business;More than and
It is described as the charge mechanism of allied member, payment mechanism all can serve as a service node of above-mentioned business.It is each
Service node can by produced by itself or the information relevant to payment that receives with the form traded in alliance's chain into
Row publication, and the distributed data in the transaction after the common recognition processing of the common recognition node in alliance's chain, in alliance's chain
Library is stored, and " cochain " for completing above-mentioned Transaction Information deposits card.
Wherein, it should be noted that transaction (Transaction) described in this specification refers to and passes through block
The client of chain creates, and a data for needing finally to be distributed in the distributed data base of block chain.
Usually there is point of the transaction of narrow sense and the transaction of broad sense in the transaction in block chain.The transaction of narrow sense refers to use
The value Transfer that family is issued to block chain;For example, transaction can be user and exist in traditional bit coin block chain network
One initiated in block chain transfers accounts.And the transaction of broad sense refers to the industry being intended to business that user issues to block chain
Business data;For example, operator can build alliance's chain based on actual business demand, rely on the deployment of alliance's chain it is some with
The unrelated other types of online or offline business (for example, arrearage inquiry business, fee payment service etc.) of value Transfer, and this kind of
In alliance's chain, transaction can be one that user issues in alliance's chain service message or business with business intention and ask
It asks.
Above-mentioned client may include any type of underlying services data stored using in block chain as data branch
Support, to realize the upper layer application of specific business function.
Below in conjunction with the schematic diagram for the fare payment system based on block chain that this specification of Fig. 1 provides.
The charge platform can refer to the corresponding platform of each service provider.For example, the corresponding water rate of water utilities company
Charge platform;Corresponding electricity charge charge platform of Utilities Electric Co. etc..
The payment platform can be the platform of each offer ability to pay.For example, Third-party payment mechanism, mobile phone are silver-colored
Row, Web bank etc..
1, charge platform acquires the arrearage information of each service type under each user generated in a period of time;And it will collect
Arrearage information cochain carry out depositing card.
Specifically, charge platform sets the node for being sent to the block chain wait transaction of paying the fees based on arrearage information structuring
It is standby so that the node device in response to it is described wait pay the fees transaction, the arrearage information is stored in the block chain.
Wherein, the arrearage information can refer to the corresponding arrearage information of each service type, i.e. charge platform under each user
Arrearage information cochain can be deposited into card in batches.
2, payment platform can monitor the Block message newly gone out in block chain, and the arrearage information of new cochain is handled,
In the index that every arrearage information is locally created.
Wherein, the index is made of the information of the defaulting subscriber of the arrearage information, and the index maintenance has note
Record the chained list of the arrearage information.In this way, arrearage information can be associated by payment platform with defaulting subscriber.
In one embodiment, the unique identification content for including in the arrearage information.
And user using payment platform before being paid the fees, it usually needs binding relevant user information.User's letter
Unique identification content is also included in breath.
Therefore, when the unique identification content in arrearage information is identical as the unique identification content that user binds, so that it may
Illustrate that the arrearage information is the user, and using the unique identification content as index and the arrearage information association, that is to say, that
Establish the incidence relation of the user Yu the arrearage information.
For example, usually can also include unique knowledge in the arrearage information other than the arrearage amount of money in charges for water and electricity business
Other content, such as mechanism number (representing charge mechanism), family number (address for representing arrearage), account phase (period for representing arrearage).
Can be positioned by unique identification content is which user (i.e. family number) what introversive (mechanism, mechanism of section (account phase) at what time
Number) arrearage is how many (the arrearage amount of money).
In one embodiment, payment platform is based on the index, can provide a variety of payment related services of user.For example,
It can be for the query function of user query arrearage information;The payment function of arrearage is paid for user;Prompt subscriber payment result
Prompting function.
3, user can inquire associated arrearage information on chain at any time by payment platform, and user can be based on inquiry
To arrearage information pay the fees.
Charge platform by arrearage information cochain and payment platform by establishing index so that the process of user query with
It is decoupled between charge platform, inquiry arrearage information is not necessarily to carry out by charge platform, to reduce the calculating energy of charge platform
Power.
Specifically, the payment inquiry request for destination service type that payment platform response target user initiates, is based on
Index inquires the arrearage information of destination service type under the target user in the arrearage information that payment platform locally records.
There is the arrearage of destination service type under the target user to believe if inquiring record in the chained list of the index maintenance
Breath, and there is no payment information, payment affirmation information, then the arrearage information inquired can be returned to the target user.
4, after user pays successfully, payment platform is traded based on the payment information construction payment generated after payment, and will
The node device that the payment transaction is sent in the block chain, so that the node device responds the payment transaction, it will
The payment information is stored in the block chain.
The payment information indicates that user pays the arrearage amount of money to payment platform, such as can refer to evidence for payment.
Wherein, the Hash pointer for having the arrearage information is recorded in the payment information.
5, charge platform can monitor the Block message newly gone out in block chain, arrearage corresponding to the payment information of new cochain
Information does payment affirmation processing.Wherein, the Hash pointer for having arrearage information is recorded in the payment information.
Charge platform determines corresponding target arrearage information according to the Hash pointer recorded in the payment information, and is directed to
The target arrearage information executes payment affirmation processing.The payment affirmation for example can be the processing that writes off.
6, the payment affirmation information cochain generated after charge platform handles payment affirmation deposits card.
The payment affirmation information indicates that charge platform has collected the arrearage amount of money of user's payment;The payment affirmation information
For example including the voucher that writes off.
Specifically, charge platform, will be based on the payment affirmation of the payment affirmation processing generation after the completion of writing off processing
The node device that the payment affirmation transaction of information structuring is sent in the block chain, so that the node device is in response to described
Payment affirmation transaction, is stored in the block chain for the payment affirmation information;Wherein, recording in the payment affirmation information has
The Hash pointer of the payment information.
7, payment platform can monitor the Block message newly gone out in block chain, according to the payment affirmation information pair of newest block
The arrearage information answered returns to successful notification message of paying the fees to defaulting subscriber.
Specifically, the payment affirmation that payment platform monitors the newest block for being distributed to the block chain by charge platform is believed
Breath;
The index that arrearage information is corresponded to according to the payment affirmation information, returning to payment to defaulting subscriber, successfully notice disappears
Breath.
In addition, the payment affirmation information can also be added to the chain of the index maintenance of the arrearage information by payment platform
In table.
In this way, entire payment be related to enter an item of expenditure in the accounts, inquire, paying the fees, confirmation process terminates.
It is introduced as shown in Figure 2 using payment platform as the method flow diagram of executing subject below, it is real that this method corresponds to earlier figures 1
Example is applied, this method may include:
Step 110: monitoring the arrearage information that the newest block of the block chain is distributed to by charge platform;
Step 120: the payment information generated after receiving the arrearage amount of money being directed in the arrearage information and being paid
Afterwards, based on payment information construction payment transaction;Wherein, record has the Hash of the arrearage information to refer in the payment information
Needle;
Step 130: the node device that the payment transaction is sent in the block chain, so that the node device is rung
It answers the payment to trade, the payment information is stored in the block chain.
In one embodiment, the arrearage information of the newest block of the block chain is distributed to by charge platform in the monitoring
Later, the method also includes:
In the index that the arrearage information is locally created;Wherein, described to index by the defaulting subscriber's of the arrearage information
Information is constituted, and the index maintenance has the chained list for recording the arrearage information.
In one embodiment, the payment generated after receiving the arrearage amount of money being directed in the arrearage information and being paid
After information, the method also includes:
The payment information is added in the chained list of the index maintenance of the arrearage information.
In one embodiment, the method also includes:
Monitor the payment affirmation information that the newest block of the block chain is distributed to by charge platform;
According to the corresponding arrearage information of the payment affirmation information, the payment affirmation information is added to the arrearage and is believed
In the chained list of the index maintenance of breath.
In one embodiment, the method also includes:
The index that arrearage information is corresponded to according to the payment affirmation information, returning to payment to defaulting subscriber, successfully notice disappears
Breath.
Optionally, described according to the corresponding arrearage information of payment affirmation information, it specifically includes:
According to the Hash pointer recorded in payment affirmation information, corresponding payment information is determined;
According to the Hash pointer recorded in the payment information, corresponding arrearage information is determined.
Optionally, the Hash pointer of the arrearage information include for arrearage information content carry out hash be calculated
Cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
In one embodiment, if inquiring the arrearage information of destination service type under the target user, and it is described
Arrearage information does not have the arrearage information that associated evidence for payment, write off voucher, and Xiang Suoshu target user return inquires;
If after the target user had paid the arrearage amount of money for the arrearage information, the node of Xiang Suoshu block chain
Equipment initiates payment request;Wherein, the payment request is comprising corresponding to arrearage information for destination service type under target user
Evidence for payment.
In one embodiment, further includes:
If inquiring the arrearage information of destination service type under the target user, and the arrearage information association branch
Exchange order, but the not associated voucher that writes off, Xiang Suoshu target user return to the notification message not kept accounts of having paid the fees.
In one embodiment, further includes:
If inquiring the arrearage information of destination service type under the target user, and the arrearage information association branch
Exchange order, write off voucher, and Xiang Suoshu target user returns to the notification message to have kept accounts of having paid the fees.
It is introduced as shown in Figure 3 using charge platform as the method flow diagram of executing subject below, it is real that this method corresponds to earlier figures 1
Example is applied, this method may include:
Step 210: by the node device for being sent to the block chain wait transaction of paying the fees based on arrearage information structuring, so that
The arrearage information, wait transaction of paying the fees, is stored in the block chain in response to described by the node device;
Step 220: monitoring the payment information that the newest block of the block chain is distributed to by payment platform;Wherein, described
Record has the Hash pointer of arrearage information in payment information;
Step 230: corresponding target arrearage information being determined according to the Hash pointer recorded in the payment information, and is directed to
The target arrearage information executes payment affirmation processing;
Step 240: the payment affirmation of the payment affirmation information structuring generated based on payment affirmation processing being traded and is sent out
The node device in the block chain is given, so that the node device is traded in response to the payment affirmation, by the payment
Confirmation message is stored in the block chain;Wherein, the Hash pointer for having the payment information is recorded in the payment affirmation information.
In one embodiment, the Hash pointer of the arrearage information includes the content progress hash calculating for arrearage information
Obtained cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
In conclusion (providing service by charge platform present description provides a kind of payment scheme based on block chain
Service side) it carries out the arrearage information batch cochain generated in a period of time to deposit card.Payment platform can after listening to arrearage information
To provide a user the inquiry of arrearage information and paying service;After user pays arrearage, payment information cochain is carried out to deposit card.It receives
Take platform after listening to payment information, target arrearage information is determined based on the Hash pointer recorded in payment information, thus right
Target arrearage information is confirmed (such as the processing that writes off), and payment affirmation information cochain is deposited card;Payment platform is listening to
After payment affirmation information, target payment information is determined based on the Hash pointer recorded in payment affirmation information, and then be based on target
Hash pointer in payment information determines target arrearage information, confirms the arrearage amount of money of target arrearage information to be received by charge platform
It takes.Whole process payment platform unbinds completely with charge platform, to realize offline payment, and due to data tool in block chain
There is feature that is open and clear, can not distorting, without additionally increasing the supervision to payment platform, entire paying process is open and clear,
It will not be tampered, solve the trust problem to payment platform.
Corresponding with the fee payment method embodiment shown in earlier figures 2 based on block chain, this specification is additionally provided based on area
The embodiment of the paying device of block chain.Described device embodiment can be by software realization, can also be by hardware or soft or hard
The mode that part combines is realized.It taking software implementation as an example, is the place by equipment where it as the device on a logical meaning
Computer business program instruction corresponding in nonvolatile memory is read into memory what operation was formed by reason device.From hardware layer
For face, as shown in figure 4, a kind of hardware structure diagram for this specification based on equipment where the paying device of block chain, in addition to
Except processor shown in Fig. 4, network interface, memory and nonvolatile memory, the equipment in embodiment where device is logical
Often according to the payment actual functional capability based on block chain, it can also include other hardware, this is repeated no more.
Fig. 5 is referred to, for the module map for the paying device based on block chain that one embodiment of this specification provides, the dress
It sets and has corresponded to embodiment illustrated in fig. 2, described device includes:
Monitoring unit 310 monitors the arrearage information that the newest block of the block chain is distributed to by charge platform;
Structural unit 320, the payment generated after receiving the arrearage amount of money being directed in the arrearage information and being paid
After information, based on payment information construction payment transaction;Wherein, the Kazakhstan for having the arrearage information is recorded in the payment information
Uncommon pointer;
Transmission unit 330, the node device that the payment transaction is sent in the block chain, so that the node is set
It is standby to respond the payment transaction, the payment information is stored in the block chain.
Optionally, in the monitoring unit 310, further includes:
In the index that the arrearage information is locally created;Wherein, described to index by the defaulting subscriber's of the arrearage information
Information is constituted, and the index maintenance has the chained list for recording the arrearage information.
Optionally, in the structural unit 320, further includes:
The payment information is added in the chained list of the index maintenance of the arrearage information.
Optionally, described device further include:
Second monitoring unit monitors the payment affirmation information that the newest block of the block chain is distributed to by charge platform;
The payment affirmation information is added to by adding unit according to the corresponding arrearage information of the payment affirmation information
In the chained list of the index maintenance of the arrearage information.
Optionally, described device further include:
Notification unit corresponds to the index of arrearage information according to the payment affirmation information, to defaulting subscriber return payment at
The notification message of function.
Optionally, described according to the corresponding arrearage information of payment affirmation information, it specifically includes:
According to the Hash pointer recorded in payment affirmation information, corresponding payment information is determined;
According to the Hash pointer recorded in the payment information, corresponding arrearage information is determined.
Optionally, the Hash pointer of the arrearage information include for arrearage information content carry out hash be calculated
Cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
Corresponding with the fee payment method embodiment shown in earlier figures 3 based on block chain, this specification is additionally provided based on area
The embodiment of the paying device of block chain.Described device embodiment can be by software realization, can also be by hardware or soft or hard
The mode that part combines is realized.It taking software implementation as an example, is the place by equipment where it as the device on a logical meaning
Computer business program instruction corresponding in nonvolatile memory is read into memory what operation was formed by reason device.From hardware layer
For face, as shown in fig. 6, a kind of hardware structure diagram for this specification based on equipment where the paying device of block chain, in addition to
Except processor shown in fig. 6, network interface, memory and nonvolatile memory, the equipment in embodiment where device is logical
Often according to the payment actual functional capability based on block chain, it can also include other hardware, this is repeated no more.
Fig. 5 is referred to, for the module map for the paying device based on block chain that one embodiment of this specification provides, the dress
It sets and has corresponded to embodiment illustrated in fig. 2, described device includes:
First transmission unit 410, by the node for being sent to the block chain wait transaction of paying the fees based on arrearage information structuring
The arrearage information is stored in the block chain so that the node device is traded in response to described wait pay the fees by equipment;
Monitoring unit 420 monitors the payment information that the newest block of the block chain is distributed to by payment platform;Wherein,
Record has the Hash pointer of arrearage information in the payment information;
Confirmation unit 430 determines corresponding target arrearage information according to the Hash pointer recorded in the payment information, and
Payment affirmation processing is executed for the target arrearage information;
Second transmission unit 440, the payment of the payment affirmation information structuring generated based on payment affirmation processing is true
Recognize the node device that transaction is sent in the block chain, so that the node device is traded in response to the payment affirmation, it will
The payment affirmation information is stored in the block chain;Wherein, record has the payment information in the payment affirmation information
Hash pointer.
Optionally, the Hash pointer of the arrearage information include for arrearage information content carry out hash be calculated
Cryptographic Hash;
The Hash pointer of the payment information includes the cryptographic Hash being calculated for the content progress hash of payment information.
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.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
Figure 5 above describes inner function module and the structural representation of the paying device based on block chain, substantial
Executing subject can be a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Monitor the arrearage information that the newest block of the block chain is distributed to by charge platform;
After the payment information generated after receiving the arrearage amount of money being directed in the arrearage information and being paid, it is based on institute
State payment information construction payment transaction;Wherein, the Hash pointer for having the arrearage information is recorded in the payment information;
The node device that the payment transaction is sent in the block chain, so as to be paid described in node device response
Take transaction, the payment information is stored in the block chain.
Figure 7 above describes inner function module and the structural representation of the paying device based on block chain, substantial
Executing subject can be a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
By the node device for being sent to the block chain wait transaction of paying the fees based on arrearage information structuring, so that the node
The arrearage information, wait transaction of paying the fees, is stored in the block chain in response to described by equipment;
Monitor the payment information that the newest block of the block chain is distributed to by payment platform;Wherein, the payment information
It is middle to record the Hash pointer for having arrearage information;
Corresponding target arrearage information is determined according to the Hash pointer recorded in the payment information, and is directed to the target
Arrearage information executes payment affirmation processing;
The payment affirmation transaction of the payment affirmation information structuring generated based on payment affirmation processing is sent to described
Node device in block chain, so that the node device is traded in response to the payment affirmation, by the payment affirmation information
It is stored in the block chain;Wherein, the Hash pointer for having the payment information is recorded in the payment affirmation information.
In the embodiment of above-mentioned electronic equipment, it should be appreciated that the processor can be central processing unit (English:
Central Processing Unit, referred to as: CPU), can also be other general processors, digital signal processor (English:
Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific
Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to
Any conventional processor etc., and memory above-mentioned can be read-only memory (English: read-only memory, abbreviation:
ROM), random access memory (English: random access memory, abbreviation: RAM), flash memory, hard disk or solid
State hard disk.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and execute completion, or
Hardware and software module combination in person's processor execute completion.
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.It is set especially for electronics
For standby embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method reality
Apply the part explanation of example.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to this specification
Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications,
Purposes or adaptive change follow the general principle of this specification and undocumented in the art including this specification
Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and
Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precise structure that has been described above and shown in the drawings,
And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims
System.