Summary of the invention
A kind of electronic bill delivery 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 electronic bill delivery method based on block chain, institute
The method of stating includes:
It receives and transaction is got by the electronic bill that operation system is submitted;Wherein, the electronic bill get transaction for based on
Client-initiated is got request for the electronic bill of target service and is assembled, and the electronic bill gets transaction comprising described
The service identification of the user information of user and the target service;
Transaction is got in response to the electronic bill, calls the service identification of the publication on the block chain corresponding
The electronic bill stated in intelligent contract issues logic, determines whether the user information meets the condition of issuing, and described
User information meets described when issuing condition, and Xiang Zhihang system issues the corresponding electronics of the service identification for the user
Bill.
Optionally, the method also includes:
It will be distributed to for the result that issues of the target electronic bill and carry out depositing card on the block chain.
Optionally, the corresponding electronic bill of the service identification passes through the industry by the provider for initiating the target service
Business system is stored in the block chain;And/or
The corresponding intelligent contract of the service identification passes through the operation system by the provider for initiating the target service
Creation is in the block chain.
Optionally, the storage of the corresponding electronic bill of the service identification, comprising:
The creation for receiving the electronic bill submitted by the operation system is traded;Wherein, the creation transaction includes electricity
Sub- bill and the corresponding service identification of the electronic bill;
It trades in response to the creation, the electronic bill wound for calling publication to state in the intelligent contract on the block chain
Logic is built, the corresponding relationship between the electronic bill and service identification is established, the electronic bill is stored in the block
On chain.
Optionally, the creation of the corresponding intelligent contract of the service identification, comprising:
The creation for receiving the intelligent contract submitted by the operation system is traded;Wherein, the creation transaction includes electricity
Sub- bill issues logic and the electronic bill issues the corresponding service identification of logic;
It trades in response to the creation, calling is published on the creation logic stated in the intelligent contract of the block chain, will
The corresponding intelligent contract of the service identification is stored in the block chain;
The contract audit logic for being published on and stating in the intelligent contract of the block chain is called, one is written in transaction log
A ballot event that logic is issued for the electronic bill, the audit node of the block chain listen to the ballot event
Afterwards, vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains the business
The auditing result of the intelligent contract of mark determines whether the corresponding intelligent contract of the service identification gives birth to according to the auditing result
Effect.
Optionally, the method also includes:
Receive the networking request that the provider of block chain is added in application;Wherein, the networking request packet contains the offer
The qualification information of side;
The networking audit logic stated in the intelligent contract being published on the block chain is called, is written in transaction log
One is directed to the ballot event of the qualification information, after the audit node of the block chain listens to the ballot event, to institute
It states intelligent contract and submits vote trading;The intelligence contract carries out vote trading to summarize arrangement, obtains networking auditing result.
According to the second aspect of this specification embodiment, a kind of electronic bill delivery method based on block chain, institute are provided
The method of stating includes:
Receive the electronics for getting request assembling for the electronic bill of target service based on Client-initiated by operation system
Bill gets transaction;Wherein, the electronic bill gets the user information and the target service that request includes the user
Service identification, and the operation system is when the user information meets electronic bill and issues condition, submits to block chain
The electronic bill gets transaction;
Transaction is got in response to the electronic bill, the electricity for calling publication to state in the intelligent contract on the block chain
Sub- bill issues logic, and Xiang Zhihang system issues the corresponding electronic bill of the service identification for the user.
According to the third aspect of this specification embodiment, transmitting apparatus under a kind of electronic bill based on block chain, institute are provided
Stating device includes:
Receiving unit receives and gets transaction by the electronic bill that operation system is submitted;Wherein, the electronic bill gets friendship
Easily assemble to get request for the electronic bill of target service based on Client-initiated, the electronic bill gets transaction
The service identification of user information comprising the user and the target service;
Issuance unit gets transaction in response to the electronic bill, calls the business of the publication on the block chain
It identifies the electronic bill stated in corresponding intelligent contract and issues logic, determine whether the user information meets the condition of issuing,
And the user information meet it is described issue condition when, Xiang Zhihang system issues the service identification for the user
Corresponding electronic bill.
Optionally, described device further include:
Card unit is deposited, will be distributed to for the result that issues of the target electronic bill and carry out depositing card on the block chain.
Optionally, the corresponding electronic bill of the service identification passes through the industry by the provider for initiating the target service
Business system is stored in the block chain;And/or
The corresponding intelligent contract of the service identification passes through the operation system by the provider for initiating the target service
Creation is in the block chain.
Optionally, the storage of the corresponding electronic bill of the service identification, comprising:
Receiving subelement, the creation for receiving the electronic bill submitted by the operation system are traded;Wherein, the creation is handed over
It include easily electronic bill and the corresponding service identification of the electronic bill;
Storing sub-units are traded in response to the creation, and publication is called to state in the intelligent contract on the block chain
Electronic bill create logic, establish the corresponding relationship between the electronic bill and service identification, the electronic bill deposited
Storage is on the block chain.
Optionally, the creation of the corresponding intelligent contract of the service identification, comprising:
Receiving subelement, the creation for receiving the intelligent contract submitted by the operation system are traded;Wherein, the creation is handed over
It easily include that electronic bill issues logic and the electronic bill issues the corresponding service identification of logic;
Storing sub-units are traded in response to the creation, are called to be published on and be stated in the intelligent contract of the block chain
Logic is created, the corresponding intelligent contract of the service identification is stored in the block chain;
Subelement is audited, the contract audit logic for being published on and stating in the intelligent contract of the block chain is called, is trading
The ballot event that logic is issued for the electronic bill is written in log, the audit node of the block chain listens to institute
After stating ballot event, vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains
The auditing result of the intelligent contract of the service identification out determines that the corresponding intelligence of the service identification is closed according to the auditing result
About whether come into force.
Optionally, described device further include:
Receiving subelement receives the networking request that the provider of block chain is added in application;Wherein, networking request includes
There is the qualification information of the provider;
Subelement is audited, the networking audit logic stated in the intelligent contract being published on the block chain is called, is handing over
Write-in one is directed to the ballot event of the qualification information in easy log, and the audit node of the block chain listens to the ballot
After event, vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains networking
Auditing result.
According to the fourth aspect of this specification embodiment, transmitting apparatus under a kind of electronic bill based on block chain, institute are provided
Stating device includes:
Receiving unit receives the electronic bill by operation system based on Client-initiated for target service and gets request group
The electronic bill of dress gets transaction;Wherein, the electronic bill gets request and includes the user information of the user and described
The service identification of target service, and when the user information meets electronic bill and issues condition, electronics is submitted to block chain
Bill gets transaction;
Issuance unit gets transaction in response to the electronic bill, calls intelligent contract of the publication on the block chain
The electronic bill of middle statement issues logic, and Xiang Zhihang system issues the corresponding electronic ticket of the service identification for the user
According to.
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 electronic bill delivery method of any of the above-described based on block chain.
This specification embodiment provides a kind of electronic bill issuance scheme based on block chain, can not using block chain
The characteristics of distorting is that user issues electronic bill by block chain, so that it is guaranteed that the reliability for the target service that user participates in, raising
The credibility of target service.
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 ".
Fig. 1 is that a kind of overall architecture for electronic bill sending system based on block chain that an exemplary embodiment provides is shown
It is intended to.As shown in Figure 1, the system may include client 11, operation system 12, block catenary system 13 and execute system 14.
Wherein, operation has block chain program in operation system 12, so that the operation system 12 is configured as a block chain link
Point.User 10 can first pass through client 11 in advance and carry out account registration at operation system 12, obtain unique corresponding with itself
Registered account.Then, user 10 can be by logging in the registered account in client 11, and operation system 12 is based on being somebody's turn to do
Log-on message of the registered account in client 11 determines between the registered account (corresponding to the user) and client 11
Establish binding relationship.The binding relationship of required foundation is between the user information of user 10 and the facility information of client 11
Binding relationship.Based on the binding relationship so that operation system 12 receive the subsequent transmission of client 11 for target service
Electronic bill when getting request, the user information of user 10 can be confirmed.
User 10 can log in registered account in client 11, to include to the transmission of operation system 12 by client 11
The electronic bill of the service identification of own user information and target service gets request.Electricity of the operation system 12 based on user 10
Sub- bill gets request assembling electronic bill and gets transaction;Wherein, it includes the user information that the electronic bill, which gets transaction,
And service identification;And the electronic bill is submitted to get transaction to block catenary system 13.
Any node in block catenary system 13 calls the service identification corresponding after receiving electronic bill and getting transaction
Intelligent contract, to realize the corresponding electronic bill of the service identification issued to execution system 14 for user 10.
The electronic bill delivery method based on block chain is introduced from block catenary system side below, Fig. 2 institute can be referred to below
The example introduction shown, the method may include following steps:
Step 210: receiving and transaction is got by the electronic bill that operation system is submitted;Wherein, the electronic bill gets friendship
Easily assemble to get request for the electronic bill of target service based on Client-initiated, the electronic bill gets transaction
The service identification of user information comprising the user and the target service;
Step 220: getting transaction in response to the electronic bill, call the business mark of the publication on the block chain
Know the electronic bill stated in corresponding intelligent contract and issue logic, determines whether the user information meets the condition of issuing, with
And the user information meet it is described issue condition when, Xiang Zhihang system issues the service identification pair for the user
The electronic bill answered.
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 each service node and form as allied member
Alliance's chain;The operator of alliance's chain can rely on alliance's chain, to dispose corresponding business.Each service node
Can by produced by itself or receive and business datum issued in alliance's chain in the form traded, and in the friendship
Easily after the common recognition processing of the common recognition node in alliance's chain, the distributed data base in alliance's chain is stored, and is completed
" cochain " of above-mentioned Transaction Information deposits card.
Wherein, it should be noted that transaction (Transact ion) 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
Unrelated other types of at line service (for example, the cochain of electronic bill or issue) of value Transfer, and in this kind of alliance's chain
In, transaction can be the service request being intended to business that user issues in alliance's chain via operation system.
In block chain technology, block chain interior joint carries out operation to block and usually requires to rely on corresponding intelligent contract
(Smart contract).Such as the operations such as storage, modification, deletion are required to rely on intelligent contract in block chain.The intelligence
Can contract can be it is a kind of be intended to apply contract is propagated, verified or executed in a manner of information-based can be deployed on block chain
Computer protocol.By stating that service logic may be implemented to execute corresponding operating in intelligent contract.Intelligent contract allows
Do not have to carry out credible transaction in third-party situation.These transaction are traceable and irreversible.Intelligent contract, which is capable of providing, to be better than
The safety of traditional contracts method, and reduce other transaction costs relevant to contract.In general, intelligent contract can be and be deployed in area
Block chain node is local, can call corresponding intelligent contract when node needs to be implemented some movement, run intelligent contract with
The service logic stated in intelligent contract is executed, to obtain implementing result.
In one embodiment, electronic bill gets the user information that transaction includes user, and the user information is for determining this
Whether user has the qualification for getting the movable electronic bill of target service.The particular content of user information depends on electronic bill
It provides electronic bill specified in rule and issues condition.For example, the electronic bill activity of getting can be sent out by market operator
It rises, provides a user the discount coupon of consumption deduction.Wherein, electronic bill issue rule can be can be with if user is recruit
Get 100 yuan of shopping deduction certificate;80 yuan of shopping deduction certificate can be got if user is old member.So, in the situation
Lower user information may include account of the user in market registered members, the consumer record etc. of history.
In one embodiment, electronic bill can be understood as that user participates in target service and to obtain the target service corresponding
Voucher or bill.
It applies in this specification when discount coupon is provided in scene, the electronic bill can refer to electronic coupons.
For example, in one case, when the provider of electronic bill be marketing platform when (at this time with electronic bill phase
Associated target service can be marketing activity), which can be the " excellent for marketing activity of marketing platform offer
Favour certificate ".For example, the electronic coupons that market provides, user can get electricity by the channels such as market APP or market public platform
Sub- discount coupon, then subsequent user can use the electronic coupons received to deduct in market shopping.
Similar, electronic bill can also be the virtual resource such as red packet, integral, article convertible note.It needs to illustrate
It is that the concrete form of electronic bill can flexibly be set according to the type of provider, such as can also be shopping subsidy, game body
Stage property, the pet etc. completing task in system and obtaining, this specification one or more embodiment are limited not to this.
In one embodiment, the corresponding electronic bill of the service identification is passed through by the provider for initiating the target service
The operation system is stored in the block chain.
Specifically, the storage of the corresponding electronic bill of the service identification, comprising:
Direction operation system is provided and initiates the request to create for being directed to target service;The request packet contains electronic bill and institute
State the corresponding service identification of electronic bill;
Operation system submits the creation transaction of electronic bill to block chain;Wherein, the creation transaction includes electronic ticket
Accordingly and the corresponding service identification of the electronic bill;
The creation that the node of block chain receives the electronic bill submitted by the operation system is traded;In response to the creation
Transaction, the electronic bill creation logic for calling publication to state in the intelligent contract on the block chain, establishes the electronic ticket
According to the corresponding relationship between service identification, the electronic bill is stored on the block chain.
As previously mentioned, the electronic bill of target service is to pass through the business system by the provider for initiating the target service
System is stored in the block chain.Electronic bill can not be distorted once cochain deposits card, ensure that the electronics for being handed down to user
Bill is believable.It is noted that different business has corresponded to different electronic bills;By establishing electronics on block chain
The corresponding relationship of bill and service identification, since service identification ensures that electronic bill will not be by mistake with uniqueness
It issues.
In one embodiment, the corresponding intelligent contract of the service identification is passed through by the provider for initiating the target service
The operation system creation is in the block chain.
Specifically, the creation of the corresponding intelligent contract of the service identification, comprising:
The request to create for the intelligent contract that direction operation system is initiated for target service is provided;The request packet contains electronics
Bill issues logic and the electronic bill issues the corresponding service identification of logic;
Operation system submits the creation transaction of intelligent contract to block chain;Wherein, the creation transaction includes electronic ticket
According to issuing logic and the electronic bill issues the corresponding service identification of logic;
The creation that the node of block chain receives the intelligent contract submitted by the operation system is traded;
It trades in response to the creation, calling is published on the creation logic stated in the intelligent contract of the block chain, will
The corresponding intelligent contract of the service identification is stored in the block chain;
The contract audit logic for being published on and stating in the intelligent contract of the block chain is called, one is written in transaction log
A ballot event that logic is issued for the electronic bill, the audit node of the block chain listen to the ballot event
Afterwards, vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains the business
The auditing result of the intelligent contract of mark determines whether the corresponding intelligent contract of the service identification gives birth to according to the auditing result
Effect.
In practical applications, regular can be by the provider of electronic bill that issue of electronic bill is formulated.For this purpose, mentioning
The logic for issuing rule can be written as intelligent contract by supplier, and the intelligent contract cochain write is deposited card.
In general, doing evil in order to avoid malicious node, can not directly use the intelligent contract of new cochain, but need
Intelligent contract is audited by the audit node of block chain, only in the case where audit passes through, which just may be used
To come into force and be called on block chain.
In general, issue rule or electronic bill issue logic can be based on the practical business flexible setting of provider.
For example, it may be choosing one from electronic bill at random is handed down to user;For another example can be the business number according to user
According to the electronic bill that selection meets the business datum is handed down to user.
In one embodiment, the provider of aforementioned electronic bill needs before uploading electronic bill or intelligent contract
Block chain is added, this is related to the networking application of provider;The process of the application introduced below that networks:
The node of block chain receives the networking request that the provider of block chain is added in application;Wherein, the networking request packet
Qualification information containing the provider;
The networking audit logic stated in the intelligent contract being published on the block chain is called, is written in transaction log
One is directed to the ballot event of the qualification information, after the audit node of the block chain listens to the ballot event, to institute
It states intelligent contract and submits vote trading;The intelligence contract carries out vote trading to summarize arrangement, obtains networking auditing result.
In general, need to carry out aptitude checking to the provider that application networks in order to avoid malicious node is added in block chain, by
Provider uploads qualification information;The qualification information may include corporate licence, business scope qualification etc.;Equally by block chain
In audit node qualification information is audited, only auditing when provider meets qualification requirement can just pass through, to make
Card electronic bill can be deposited with cochain, create the operations such as intelligent contract by obtaining provider.
Open and clear in order to ensure business, block catenary system can also be using tools such as block browsers to target service
Carry out publicity.
In one embodiment, the node of block chain can also by for the electronic bill issue result be distributed to it is described
It carries out depositing card on block chain.
Wherein, it deposits the trigger condition of card by the result that issues of electronic bill and may include:
The node of block chain, will be under electronic bill after receiving the implementing result of electronic bill of execution system return
Hair result deposits card.
The embodiment, by the way that the result that issues of electronic bill is carried out publicity, so that each electronic ticket of target service
According to that there can be mark that can follow, situation is issued convenient for the subsequent electronic bill to target service and is audited or is inquired.
This specification embodiment provides a kind of electronic bill issuance scheme based on block chain, can not using block chain
The characteristics of distorting is that user issues electronic bill by block chain, so that it is guaranteed that the reliability for the target service that user participates in, raising
The credibility of target service.On the other hand, using block chain intelligence contract, it is credible to supervise the preparatory cochain of electronic bill provider
Electronic bill and electronic bill issue rule (electronic bill stated in i.e. intelligent contract issues logic), can be to avoid mentioning
Supplier intervenes business at midway, is promised to undertake with forming a kind of business to the credible guarantee of user.
Above-described embodiment to the audit of user information is executed by intelligent contract, in practical applications, can also be by industry
Business system executes, and please refers to scheme below:
Receive the electronics for getting request assembling for the electronic bill of target service based on Client-initiated by operation system
Bill gets transaction;Wherein, the electronic bill gets the user information and the target service that request includes the user
Service identification submit electronic bill to get to block chain and when the user information meets electronic bill and issues condition
Transaction;
Transaction is got in response to the electronic bill, the electricity for calling publication to state in the intelligent contract on the block chain
Sub- bill issues logic, and Xiang Zhihang system issues the corresponding electronic bill of the service identification for the user.
The node that the program equally can be block catenary system executes.Unlike aforementioned:
For user after initiating to get request for the electronic bill of target service to operation system, which can be straight
It connects and determines whether the user information meets equity and provide condition, and provide condition meeting the equity in the user information
When, submit electronic bill to get transaction to block chain.
Other optional embodiments are identical as previous embodiment, please refer to the embodiment of scheme shown in earlier figures 2, herein not
It is repeated again.
Corresponding with the aforementioned electronic bill delivery method embodiment based on block chain, this specification is additionally provided based on area
The embodiment of transmitting apparatus under the electronic bill of block chain.Described device embodiment can also pass through hardware by software realization
Or the mode of software and hardware combining is realized.It taking software implementation as an example, is by 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 the processor of equipment.
For hardware view, as shown in figure 3, for one kind of equipment where transmitting apparatus under electronic bill of this specification based on block chain
Hardware structure diagram fills in embodiment other than processor shown in Fig. 3, network interface, memory and nonvolatile memory
Equipment where setting issues actual functional capability generally according to the electronic bill based on block chain, can also include other hardware, to this
It repeats no more.
Fig. 4 is referred to, the module of transmitting apparatus under the electronic bill based on block chain provided for one embodiment of this specification
Figure, described device have corresponded to embodiment illustrated in fig. 2, and described device includes:
Receiving unit 310 receives and gets transaction by the electronic bill that operation system is submitted;Wherein, the electronic bill neck
Transaction is taken to assemble to get request for the electronic bill of target service based on Client-initiated, the electronic bill is got
The service identification of user information of the transaction comprising the user and the target service;
Issuance unit 320 gets transaction in response to the electronic bill, calls the industry of the publication on the block chain
The electronic bill stated in the corresponding intelligent contract of business mark issues logic, determines whether the user information meets lower clockwork spring
Part, and the user information meet it is described issue condition when, Xiang Zhihang system issues the business for the user
Identify corresponding electronic bill.
Optionally, described device further include:
Card unit is deposited, will be distributed to for the result that issues of the target electronic bill and carry out depositing card on the block chain.
Optionally, the corresponding electronic bill of the service identification passes through the industry by the provider for initiating the target service
Business system is stored in the block chain;And/or
The corresponding intelligent contract of the service identification passes through the operation system by the provider for initiating the target service
Creation is in the block chain.
Optionally, the storage of the corresponding electronic bill of the service identification, comprising:
Receiving subelement, the creation for receiving the electronic bill submitted by the operation system are traded;Wherein, the creation is handed over
It include easily electronic bill and the corresponding service identification of the electronic bill;
Storing sub-units are traded in response to the creation, and publication is called to state in the intelligent contract on the block chain
Electronic bill create logic, establish the corresponding relationship between the electronic bill and service identification, the electronic bill deposited
Storage is on the block chain.
Optionally, the creation of the corresponding intelligent contract of the service identification, comprising:
Receiving subelement, the creation for receiving the intelligent contract submitted by the operation system are traded;Wherein, the creation is handed over
It easily include that electronic bill issues logic and the electronic bill issues the corresponding service identification of logic;
Storing sub-units are traded in response to the creation, are called to be published on and be stated in the intelligent contract of the block chain
Logic is created, the corresponding intelligent contract of the service identification is stored in the block chain;
Subelement is audited, the contract audit logic for being published on and stating in the intelligent contract of the block chain is called, is trading
The ballot event that logic is issued for the electronic bill is written in log, the audit node of the block chain listens to institute
After stating ballot event, vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains
The auditing result of the intelligent contract of the service identification out determines that the corresponding intelligence of the service identification is closed according to the auditing result
About whether come into force.
Optionally, described device further include:
Receiving subelement receives the networking request that the provider of block chain is added in application;Wherein, networking request includes
There is the qualification information of the provider;
Subelement is audited, the networking audit logic stated in the intelligent contract being published on the block chain is called, is handing over
Write-in one is directed to the ballot event of the qualification information in easy log, and the audit node of the block chain listens to the ballot
After event, vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains networking
Auditing result.
The embodiment of transmitting apparatus, institute under another electronic bill based on block chain that one embodiment of this specification also provides
Stating device includes:
Receiving unit receives the electronic bill by operation system based on Client-initiated for target service and gets request group
The electronic bill of dress gets transaction;Wherein, the electronic bill gets request and includes the user information of the user and described
The service identification of target service, and when the user information meets electronic bill and issues condition, electronics is submitted to block chain
Bill gets transaction;
Issuance unit gets transaction in response to the electronic bill, calls intelligent contract of the publication on the block chain
The electronic bill of middle statement issues logic, and Xiang Zhihang system issues the corresponding electronic ticket of the service identification for the user
According to.
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 4 above describes the inner function module of transmitting apparatus and structural representation under the electronic bill 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:
It receives and transaction is got by the electronic bill that operation system is submitted;Wherein, the electronic bill get transaction for based on
Client-initiated is got request for the electronic bill of target service and is assembled, and the electronic bill gets transaction comprising described
The service identification of the user information of user and the target service;
Transaction is got in response to the electronic bill, calls the service identification of the publication on the block chain corresponding
The electronic bill stated in intelligent contract issues logic, determines whether the user information meets the condition of issuing, and described
User information meets described when issuing condition, and Xiang Zhihang system issues the corresponding electronics of the service identification for the user
Bill.
Optionally, further includes:
It will be distributed to for the result that issues of the target electronic bill and carry out depositing card on the block chain.
Optionally, the corresponding electronic bill of the service identification passes through the industry by the provider for initiating the target service
Business system is stored in the block chain;And/or
The corresponding intelligent contract of the service identification passes through the operation system by the provider for initiating the target service
Creation is in the block chain.
Optionally, the storage of the corresponding electronic bill of the service identification, comprising:
The creation for receiving the electronic bill submitted by the operation system is traded;Wherein, the creation transaction includes electricity
Sub- bill and the corresponding service identification of the electronic bill;
It trades in response to the creation, the electronic bill wound for calling publication to state in the intelligent contract on the block chain
Logic is built, the corresponding relationship between the electronic bill and service identification is established, the electronic bill is stored in the block
On chain.
Optionally, the creation of the corresponding intelligent contract of the service identification, comprising:
The creation for receiving the intelligent contract submitted by the operation system is traded;Wherein, the creation transaction includes electricity
Sub- bill issues logic and the electronic bill issues the corresponding service identification of logic;
It trades in response to the creation, calling is published on the creation logic stated in the intelligent contract of the block chain, will
The corresponding intelligent contract of the service identification is stored in the block chain;
The contract audit logic for being published on and stating in the intelligent contract of the block chain is called, one is written in transaction log
A ballot event that logic is issued for the electronic bill, the audit node of the block chain listen to the ballot event
Afterwards, vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains the business
The auditing result of the intelligent contract of mark determines whether the corresponding intelligent contract of the service identification gives birth to according to the auditing result
Effect.
Optionally, further includes:
Receive the networking request that the provider of block chain is added in application;Wherein, the networking request packet contains the offer
The qualification information of side;
The networking audit logic stated in the intelligent contract being published on the block chain is called, is written in transaction log
One is directed to the ballot event of the qualification information, after the audit node of the block chain listens to the ballot event, to institute
It states intelligent contract and submits vote trading;The intelligence contract carries out vote trading to summarize arrangement, obtains networking auditing result.
The inner function module of transmitting apparatus and structural representation, essence under above electronic bill of the another kind based on block chain
On executing subject can be a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the electronics for getting request assembling for the electronic bill of target service based on Client-initiated by operation system
Bill gets transaction;Wherein, the electronic bill gets the user information and the target service that request includes the user
Service identification submit electronic bill to get to block chain and when the user information meets electronic bill and issues condition
Transaction;
Transaction is got in response to the electronic bill, the electricity for calling publication to state in the intelligent contract on the block chain
Sub- bill issues logic, and Xiang Zhihang system issues the corresponding electronic bill of the service identification for the user.
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.