Summary of the invention
This specification provides a kind of invoice creation method based on block chain, which comprises
Receive the invoice request to create that user is initiated by client;Wherein, the invoice request to create includes that user is defeated
The invoice creation information entered;
In response to the invoice request to create, the invoice wound of invoice issuing side corresponding with the invoice request to create is determined
Whether sufficient build amount;Wherein, the invoice creation amount is carried out based on the invoice creation record for the invoice issuing side
The credit scoring for the invoice issuing side that credit evaluation obtains determines;
If the invoice creation amount of the invoice issuing side is sufficient, the invoice stated in preset intelligent contract is called
Logic is created, information creating target invoice is created based on the invoice.
Optionally, whether the invoice creation amount of determination invoice issuing side corresponding with the invoice request to create fills
Foot, comprising:
It calls the amount stated in the intelligent contract to check logic, determines invoice corresponding with the invoice request to create
Whether the invoice creation amount for the side of issuing is sufficient;Alternatively,
Third-party trusted service is called, the invoice request to create is sent to the third-party trusted service, with
Determine whether the invoice of invoice issuing side corresponding with the invoice request to create creates amount by third party's trusted service
Abundance, and receive the invoice issuing side that third party's trusted service returns invoice creation amount whether Chong Zu determination
As a result.
Optionally, the invoice creation record for the invoice issuing side carries out credit evaluation and obtains the invoice issuing side
Credit scoring, comprising:
Third-party trusted service is called, invoice creation record is sent to the third-party trusted service, with
Invoice creation record is based on by the third-party trusted service, letter is obtained to invoice issuing side progress credit evaluation
With scoring.
Optionally, the method also includes:
Receive the credit scoring for the invoice issuing side that the third-party trusted service returns;
It calls the amount stated in the intelligent contract to determine logic, the invoice issuing is determined based on the credit scoring
The invoice of side creates amount.
Optionally, the method also includes:
Receive the hair that the credit scoring based on invoice issuing side that the third-party trusted service returns is determined
The invoice of the ticket side of issuing creates amount.
Optionally, the method also includes:
After creating the target invoice, the invoice creation record for corresponding to the target invoice is generated, and be based on institute
It states invoice creation record and credit scoring is obtained to invoice issuing side progress credit evaluation, to be based on the credit scoring to institute
The invoice creation amount for stating invoice issuing side carries out dynamic update.
Optionally, the third-party trusted service, including the engineering being deployed in third-party trusted service equipment
Practise model.
This specification also provides a kind of invoice creating device based on block chain, and described device includes:
First receiving module, the invoice request to create initiated for receiving user by client;Wherein, the invoice wound
Build the invoice creation information that request includes user's input;
First determining module, in response to the invoice request to create, determination to be corresponding with the invoice request to create
Whether the invoice creation amount of invoice issuing side is sufficient;Wherein, the invoice creation amount is based on being directed to the invoice issuing side
Invoice creation record carry out the credit scoring of the invoice issuing side that credit evaluation obtains and determine;
Creation module calls preset intelligence to close if the invoice creation amount for the invoice issuing side is sufficient
The invoice stated in about creates logic, creates information creating target invoice based on the invoice.
Optionally, first determining module is specifically used for:
It calls the amount stated in the intelligent contract to check logic, determines invoice corresponding with the invoice request to create
Whether the invoice creation amount for the side of issuing is sufficient;Alternatively,
Third-party trusted service is called, the invoice request to create is sent to the third-party trusted service, with
Determine whether the invoice of invoice issuing side corresponding with the invoice request to create creates amount by third party's trusted service
Abundance, and receive the invoice issuing side that third party's trusted service returns invoice creation amount whether Chong Zu determination
As a result.
Optionally, first determining module is specifically used for:
Third-party trusted service is called, invoice creation record is sent to the third-party trusted service, with
Invoice creation record is based on by the third-party trusted service, letter is obtained to invoice issuing side progress credit evaluation
With scoring.
Optionally, described device further include:
Second receiving module, the credit for receiving the invoice issuing side that the third-party trusted service returns are commented
Point;
Second determining module is commented for calling the amount stated in the intelligent contract to determine logic based on the credit
The invoice for determining the invoice issuing side is divided to create amount.
Optionally, described device further include:
Third receiving module is commented for receiving the credit based on invoice issuing side that the third-party trusted service returns
Divide the invoice creation amount of the invoice issuing side determined.
Optionally, described device further include:
Evaluation module, for after creating the target invoice, generating the invoice creation for corresponding to the target invoice
Record, and credit evaluation is carried out to the invoice issuing side based on invoice creation record and obtains credit scoring, to be based on institute
It states credit scoring and dynamic update is carried out to the invoice creation amount of the invoice issuing side.
Optionally, the third-party trusted service, including the engineering being deployed in third-party trusted service equipment
Practise model.
This specification also provides a kind of electronic equipment, and the electronic equipment includes:
Processor;
For storing the memory of machine-executable instruction;
Wherein, the control logic pair with the invoice creation based on block chain stored by reading and executing the memory
The machine-executable instruction answered, the processor are prompted to:
Receive the invoice request to create that user is initiated by client;Wherein, the invoice request to create includes that user is defeated
The invoice creation information entered;
In response to the invoice request to create, the invoice wound of invoice issuing side corresponding with the invoice request to create is determined
Whether sufficient build amount;Wherein, the invoice creation amount is carried out based on the invoice creation record for the invoice issuing side
The credit scoring for the invoice issuing side that credit evaluation obtains determines;
If the invoice creation amount of the invoice issuing side is sufficient, the invoice stated in preset intelligent contract is called
Logic is created, information creating target invoice is created based on the invoice.
In the above-mentioned technical solutions, when user needs to create invoice corresponding with the invoice issuing side in block chain,
Invoice first can be carried out to the invoice issuing side and create amount inspection, to be filled in the invoice creation amount for determining the invoice issuing side
When sufficient, the invoice is created.In this manner, one side user can voluntarily create invoice in block chain, and no longer need
Invoice issuing side is wanted to carry out operation of manually making out an invoice;On the other hand, compared with common artificial setting invoice creates the mode of amount,
It is recorded due to that can be created based on the invoice of invoice issuing side, determines the invoice creation amount of the invoice issuing side, therefore can be with
Human resources are saved, while can also be improved the accuracy of invoice creation amount.
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 one or more embodiment.Phase
Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification
The example of consistent device and method.
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 ".
This specification is intended to provide a kind of invoice of credit scoring dynamic update invoice issuing side based on invoice issuing side
Amount is created, and when user needs to create invoice corresponding with the invoice issuing side in block chain, first to the invoice issuing
Fang Jinhang invoice creates amount inspection, to create the invoice when the invoice for determining the invoice issuing side creates amount abundance
Technical solution.
In specific implementation, user can initiate to be directed to and be somebody's turn to do when needing to create invoice in block chain by client
The invoice request to create of invoice.
Node device in the block chain can carry out the invoice request to create after receiving the invoice request to create
Response.
In general, the invoice creation amount of invoice issuing side is limited.In this case, which is receiving
After the invoice request to create, it can first determine whether the invoice of invoice issuing side corresponding with the invoice request to create creates amount
It is sufficient.
If it is determined that the invoice creation amount of the invoice issuing side is sufficient, then the node device, which can call, is deployed in the area
The invoice creation logic stated in intelligent contract on block chain, creates letter based on the invoice that user in the invoice request to create inputs
Breath creates the invoice.
After the creation for completing the invoice, which can further generate the invoice creation corresponding to the invoice
Record, and credit evaluation is carried out to the invoice issuing side based on invoice creation record, the credit for obtaining the invoice issuing side is commented
Point.Wherein, the credit scoring of the invoice issuing side is determined for the invoice creation amount of the invoice issuing side.
It, can be based on invoice corresponding with newly created invoice creation note after creation due to completing new invoice every time
Record re-starts credit evaluation to the invoice issuing side, obtains the new credit scoring of the invoice issuing side, and new based on this
Credit scoring creates amount to redefine the invoice of the invoice issuing side, therefore the invoice creation amount of the invoice issuing side is
It can dynamically update.
In the above-mentioned technical solutions, when user needs to create invoice corresponding with the invoice issuing side in block chain,
Invoice first can be carried out to the invoice issuing side and create amount inspection, to be filled in the invoice creation amount for determining the invoice issuing side
When sufficient, the invoice is created.In this manner, one side user can voluntarily create invoice in block chain, and no longer need
Invoice issuing side is wanted to carry out operation of manually making out an invoice;On the other hand, compared with common artificial setting invoice creates the mode of amount,
It is recorded due to that can be created based on the invoice of invoice issuing side, determines the invoice creation amount of the invoice issuing side, therefore can be with
Human resources are saved, while can also be improved the accuracy of invoice creation amount.
This specification is described below by specific embodiment.
Referring to FIG. 1, Fig. 1 is a kind of invoice creation side based on block chain shown in one exemplary embodiment of this specification
The flow chart of method.This method can be applied to the node device in block chain, include the following steps:
Step 102, the invoice request to create that user is initiated by client is received;Wherein, the invoice request to create packet
Include the invoice creation information of user's input;
Step 104, in response to the invoice request to create, invoice issuing side corresponding with the invoice request to create is determined
Invoice creation amount it is whether sufficient;Wherein, the invoice creation amount is created based on the invoice for the invoice issuing side
The credit scoring that record carries out the invoice issuing side that credit evaluation obtains determines;
Step 106, if the invoice creation amount of the invoice issuing side is sufficient, sound in preset intelligent contract is called
Bright invoice creates logic, creates information creating target invoice based on the invoice.
The block chain described in the present specification can specifically include any type of block chain network;For example, in reality
It, can be using any one in shared chain, privately owned chain or alliance's chain in.
In the present embodiment, user can pass through client used in it when needing to create invoice in the block chain
End initiates one for creating the transaction of invoice, i.e., initiates invoice request to create by client.
Wherein, the transaction in block chain, there are points of the transaction of narrow sense and the transaction of broad sense.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 of value Transfer is in line service (for example, business of renting a house, vehicle scheduling business, settlement of insurance claim business, credit
Service, medical services etc.), and in this kind of alliance's chain, transaction, which can be one that user issues in alliance's chain, has business
The service message or service request of intention.
Specifically, which can create the page by the invoice that the client provides, and input target invoice to be created
Invoice create information, such as: invoice issuing side's information, invoice reciever information and amount of the target invoice etc..Its
In, invoice issuing side's information may include the Taxpayer Identification Number of invoice issuing side, and invoice reciever information may include invoice
The Taxpayer Identification Number of reciever;Assuming that the user is the invoice reciever of the target invoice, then invoice reciever information can
To include the Taxpayer Identification Number of the user.
After the input that the user completes invoice creation information, which can be generated corresponding invoice request to create,
And the invoice request to create is sent to the node device in the block chain.
Node device in the block chain can carry out the invoice request to create after receiving the invoice request to create
Response.
Specifically, it can first determine whether the invoice creation amount of invoice issuing side corresponding with the invoice request to create fills
Foot.
For example, it can obtain invoice from the invoice creation information that the user in the invoice request to create inputs and open
The Taxpayer Identification Number of tool side, and determine that corresponding invoice issuing side, the invoice issuing side are based on the Taxpayer Identification Number
The corresponding invoice issuing side of invoice request to create.It is subsequent, it can first determine whether the invoice of the invoice issuing side creates amount
It is sufficient.
Wherein, it should be noted that in the present specification, the initial invoice in invoice issuing side creates amount, can be base
What the initial credit scoring in the invoice issuing side was determined.
In a kind of embodiment shown, the intelligent contract being deployed on the block chain can be called by the node device
The amount of middle statement checks logic, determines whether the invoice creation amount of the invoice issuing side is sufficient.
Wherein, amount checks that logic specifically can be statement in the intelligence contract, with the hair for checking invoice issuing side
Ticket creates the relevant program code of execution logic (such as: some program technics or function for calling) of amount.
Alternatively, third-party trusted service can also be called by the node device, which is sent to this
Third-party trusted service.Wherein, third-party trusted service, which can be, is deployed in third-party trusted service equipment, with
Check the relevant program code of execution logic of the invoice creation amount of invoice issuing side.For example, this is third-party credible
Service equipment can be the equipment in tax intraoffice network, it is possible thereby to improve Information Security.
The third-party trusted service can determine whether the invoice creation amount of the invoice issuing side is sufficient, and will determine
As a result it is back to the node device.The node device can be based on the determination that the third-party trusted service returns as a result, determining
Whether the invoice creation amount of the invoice issuing side is sufficient.
Specifically, the third-party trusted service can determine the invoice issuing side invoice create amount abundance when,
The definitive result of the invoice creation amount abundance of the invoice issuing side is returned to the node device.The node device is receiving this
After definitive result, it can determine that the invoice creation amount of the invoice issuing side is sufficient.Alternatively, the third-party trusted service can be with
When the invoice creation amount for determining the invoice issuing side is inadequate, the invoice wound of the invoice issuing side is returned to the node device
Build the insufficient definitive result of amount.The node device can determine the invoice issuing side after receiving the definitive result
It is inadequate that invoice creates amount.
If it is determined that the invoice creation amount of the invoice issuing side is sufficient, then the intelligence being deployed on the block chain can be called
The invoice creation logic stated in energy contract, creates information based on the invoice that user in the invoice request to create inputs, creates mesh
Mark invoice.
Wherein, invoice creation logic specifically can be statement in the intelligence contract, the execution logic with creation invoice
Relevant program code.
It should be noted that the invoice creation amount of the invoice issuing side can be the credit based on the invoice issuing side and comment
Divide determination, the credit scoring of the invoice issuing side then can be the creation record of the invoice based on the invoice issuing side to the invoice
The side of issuing carries out what credit evaluation obtained.
In practical applications, third-party trusted service can be called, which is based on by the third-party trusted service
The invoice creation record for the side of issuing carries out credit evaluation to the invoice issuing side, obtains the credit scoring of the invoice issuing side.
Wherein, third-party trusted service can be the machine learning mould being deployed in third-party trusted service equipment
Type, the machine learning model then can be the machine learning model that Logic Regression Models etc. are usually used in credit evaluation.
On the one hand, the machine learning mould for credit evaluation being deployed in third-party trusted service equipment can be called
Type regard the history invoice creation record of the invoice issuing side prestored as training sample, carries out machine learning training, be somebody's turn to do
The initial credit of invoice issuing side scores.
For example, first the history invoice creation record of the invoice issuing side prestored can be input in assessment system
It is assessed, is obtained several for carrying out the index of credit evaluation to the invoice issuing side.It is subsequent, can based on obtain these
Index and such as invoice issuing side information, invoice reciever information, the amount of invoice, branch in history invoice creation record
The essential informations such as mode, transaction item title, loco, exchange hour are paid to construct forecast sample, and by the prediction of building
Sample is input to the credit evaluation model and carries out credit evaluation, obtains the initial credit scoring of the invoice issuing side.
On the other hand, it after the creation for completing the target invoice, can further generate corresponding to the target invoice
Invoice creation record, and credit evaluation is carried out to the invoice issuing side based on invoice creation record, obtain the invoice issuing side
Credit scoring.
For example, the invoice of generation can be created to record and the history invoice of the invoice issuing side prestored creates
Record, which is all input in assessment system, to be assessed, and is obtained several for carrying out the index of credit evaluation to the invoice issuing side.
It is subsequent, forecast sample can be constructed based on the essential information in obtained these indexs and invoice creation record, and by structure
The forecast sample built is input to the credit evaluation model and carries out credit evaluation, and the credit for obtaining the updated invoice issuing side is commented
Point.
Certainly, in addition to that can be carried out other than credit evaluation by calling third-party trusted service to invoice issuing side,
In practical application, credit evaluation can also be carried out to invoice beginning side by service on the relevant chain of calling.
For example, the relevant machine learning model for being used to carry out credit evaluation can be deployed in block chain (for example, making
To execute logic states in intelligent contract), and then can be by calling the machine learning model being deployed on block chain, to this
Invoice issuing side carries out credit evaluation, and no longer needs by calling third-party trusted service, to the invoice issuing side into
Row credit evaluation.
It can be seen that due to complete target invoice every time creation after, hair corresponding with the target invoice can be based on
Ticket creation record re-starts credit evaluation to the invoice issuing side, is updated to the credit scoring of the invoice issuing side, because
The credit scoring of this invoice issuing side can dynamically update.
In a kind of embodiment shown, which can be by the credit scoring of the invoice issuing side
Return to the node device.The node device is in the credit for receiving the invoice issuing side that the third-party trusted service returns
After scoring, the amount stated in the intelligent contract being deployed in the block chain can be called to determine logic, be based on the credit scoring
It determines the invoice creation amount of the invoice issuing side, and is somebody's turn to do based on the invoice creation amount determined to for amount inspection
The invoice creation amount of invoice issuing side carries out dynamic update.
Wherein, amount determines logic specifically and can be that statement in the intelligence contract, and determination and updates invoice issuing
The relevant program code of execution logic of the invoice creation amount of side.
For example, it can store the correspondence of credit scoring and invoice creation amount as shown in table 1 below in node device
Relationship:
Table 1
Assuming that the credit scoring of the invoice issuing side that the third-party trusted service that the node device receives returns
Initial value be credit scoring 1, then the corresponding relationship according to shown in upper table 1 can determine the invoice creation of the invoice issuing side
Amount is that invoice creates amount 1.Subsequent, which can create the hair that amount 1 checks the invoice issuing side based on invoice
Whether ticket creates amount sufficient.
If determining that the invoice creation amount of the invoice issuing side is sufficient based on invoice creation amount 1, and therefore create
Target invoice 1, then after the creation for completing target invoice 1, which can further be generated corresponding to target invoice 1
Invoice create record, and by the invoice creation record be sent to the third-party trusted service, with third-party credible by this
Service re-starts credit evaluation to the invoice issuing side based on invoice creation record, obtains the new letter of the invoice issuing side
With scoring and return to the node device.
Assuming that the new credit of the invoice issuing side that the third-party trusted service that the node device receives returns
Scoring is credit scoring 2, then the corresponding relationship according to shown in upper table 2, can determine the invoice creation amount of the invoice issuing side
Amount 2 is created for invoice.Subsequent, which will be used for the invoice creation amount of the invoice issuing side of amount inspection by sending out
Ticket creation amount 1 is updated to invoice creation amount 2, i.e. the node device can check that the invoice is opened based on invoice creation amount 2
Whether the invoice creation amount of tool side is sufficient.
Alternatively, also can store pair in credit scoring section and invoice creation amount as shown in table 2 below in node device
It should be related to:
Credit scoring section 1 |
Invoice creates amount 1 |
Credit scoring section 2 |
Invoice creates amount 2 |
…… |
…… |
Table 2
Assuming that the credit scoring of the invoice issuing side that the third-party trusted service that the node device receives returns
Initial value be credit scoring 1, then can first determine that credit scoring section belonging to credit scoring 1 (is assumed to be credit scoring area
Between 1), further according to corresponding relationship shown in upper table 2, can determine that the invoice creation amount of the invoice issuing side is that invoice creates volume
Degree 1.Subsequent, which can create amount 1 based on invoice and check whether the invoice creation amount of the invoice issuing side fills
Foot.
If determining that the invoice creation amount of the invoice issuing side is sufficient based on invoice creation amount 1, and therefore create
Target invoice 1, then after the creation for completing target invoice 1, which can further be generated corresponding to target invoice 1
Invoice create record, and by the invoice creation record be sent to the third-party trusted service, with third-party credible by this
Service re-starts credit evaluation to the invoice issuing side based on invoice creation record, obtains the new letter of the invoice issuing side
With scoring and return to the node device.
Assuming that the new credit of the invoice issuing side that the third-party trusted service that the node device receives returns
Scoring is credit scoring 2, then can first determine credit scoring section belonging to credit scoring 2 (being assumed to be credit scoring section 2),
Further according to corresponding relationship shown in upper table 2, it can determine that the invoice creation amount of the invoice issuing side is that invoice creates amount 2.
Subsequent, which creates amount for the invoice for being used for the invoice issuing side of amount inspection and is updated by invoice creation amount 1
Amount 2 is created for invoice, i.e. the node device can create amount 2 based on invoice and check that the invoice of the invoice issuing side creates volume
Whether degree is sufficient.
It should be noted that the intelligent contract of the invoice creation amount described above for checking invoice issuing side, use
The intelligent contract of invoice creation amount in the intelligent contract of creation invoice, and for determining and updating invoice issuing side can be with
It is integrated into an intelligent contract to be disposed on above-mentioned block chain, can also be used as two different intelligent contracts in the block
It is disposed on chain, this specification is not construed as limiting this.
It, can also be by the letter of the third-party trusted service based on the invoice issuing side in a kind of embodiment shown
Amount is created with the invoice for determining the invoice issuing side that scores, and the invoice of the invoice issuing side determined creation amount is returned
Back to the node device.The node device is in the invoice wound for receiving the invoice issuing side that the third-party trusted service returns
After building amount, amount can be created based on the invoice received, dynamic is carried out to the invoice creation amount of the invoice issuing side
It updates.
After creation due to completing target invoice every time, the credit scoring of the invoice issuing side can be updated,
So as to be updated based on invoice creation amount of the updated credit scoring to the invoice issuing side, therefore the invoice is opened
The invoice creation amount of tool side can dynamically update.
In the above-mentioned technical solutions, when user needs to create invoice corresponding with the invoice issuing side in block chain,
Invoice first can be carried out to the invoice issuing side and create amount inspection, to be filled in the invoice creation amount for determining the invoice issuing side
When sufficient, the invoice is created.In this manner, one side user can voluntarily create invoice in block chain, and no longer need
Invoice issuing side is wanted to carry out operation of manually making out an invoice;On the other hand, compared with common artificial setting invoice creates the mode of amount,
It is recorded due to that can be created based on the invoice of invoice issuing side, determines the invoice creation amount of the invoice issuing side, therefore can be with
Human resources are saved, while can also be improved the accuracy of invoice creation amount.
Corresponding with the aforementioned embodiment of invoice creation method based on block chain, this specification is additionally provided based on block
The embodiment of the invoice creating device of chain.
The embodiment of invoice creating device of this specification based on block chain can be using on an electronic device.Device is implemented
Example can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, as
Device on one logical meaning is by the processor of electronic equipment where it by calculating corresponding in nonvolatile memory
Machine program instruction is read into memory what operation was formed.For hardware view, as shown in Fig. 2, being based on block for this specification
A kind of hardware structure diagram of electronic equipment where the invoice creating device of chain, in addition to processor shown in Fig. 2, memory, network connect
Except mouth and nonvolatile memory, the electronic equipment in embodiment where device is generally according to the hair based on block chain
The actual functional capability of ticket creation can also include other hardware, repeat no more to this.
Referring to FIG. 3, Fig. 3 is a kind of invoice creation dress based on block chain shown in one exemplary embodiment of this specification
The block diagram set.The device 30 can be applied to electronic equipment shown in Fig. 2, comprising:
First receiving module 301, the invoice request to create initiated for receiving user by client;Wherein, the hair
Ticket request to create includes the invoice creation information of user's input;
First determining module 302, in response to the invoice request to create, determination to be corresponding with the invoice request to create
Invoice issuing side invoice creation amount it is whether sufficient;Wherein, the invoice creation amount is based on being directed to the invoice issuing
The credit scoring that the invoice creation record of side carries out the invoice issuing side that credit evaluation obtains determines;
Creation module 303 calls preset intelligence if the invoice creation amount for the invoice issuing side is sufficient
The invoice creation logic stated in contract, creates information creating target invoice based on the invoice.
In the present embodiment, first determining module 302 specifically can be used for:
It calls the amount stated in the intelligent contract to check logic, determines invoice corresponding with the invoice request to create
Whether the invoice creation amount for the side of issuing is sufficient;Alternatively,
Third-party trusted service is called, the invoice request to create is sent to the third-party trusted service, with
Determine whether the invoice of invoice issuing side corresponding with the invoice request to create creates amount by third party's trusted service
Abundance, and receive the invoice issuing side that third party's trusted service returns invoice creation amount whether Chong Zu determination
As a result.
In the present embodiment, first determining module 302 specifically can be used for:
Third-party trusted service is called, invoice creation record is sent to the third-party trusted service, with
Invoice creation record is based on by the third-party trusted service, letter is obtained to invoice issuing side progress credit evaluation
With scoring.
In the present embodiment, described device 30 can also include:
Second receiving module 304, for receiving the letter for the invoice issuing side that the third-party trusted service returns
With scoring;
Second determining module 305 is based on the credit for calling the amount stated in the intelligent contract to determine logic
Scoring determines that the invoice of the invoice issuing side creates amount.
In the present embodiment, described device 30 can also include:
Third receiving module 306, the letter based on invoice issuing side returned for receiving the third-party trusted service
The invoice of the invoice issuing side determined with scoring creates amount.
In the present embodiment, described device 30 can also include:
Evaluation module 307, for after creating the target invoice, generating the invoice wound for corresponding to the target invoice
Record is built, and credit evaluation is carried out to the invoice issuing side based on invoice creation record and obtains credit scoring, to be based on
The credit scoring carries out dynamic update to the invoice creation amount of the invoice issuing side.
In the present embodiment, the third-party trusted service may include being deployed in third-party trusted service equipment
On machine learning model.
The function of modules 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 module of explanation may or may not be physically separated, and the component shown as module can be or can also be with
It is not physical module, it can it is in one place, or may be distributed on multiple network modules.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.
System, device, module or the module 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.
Corresponding with the above-mentioned invoice creation method embodiment based on block chain, this specification additionally provides a kind of electronics and sets
Standby embodiment.The electronic equipment includes: processor and the memory for storing machine-executable instruction;Wherein, it handles
Device and memory are usually connected with each other by internal bus.In other possible implementations, the equipment is also possible that
External interface, can be communicated with other equipment or component.
In the present embodiment, the control with the invoice creation based on block chain stored by reading and executing the memory
The corresponding machine-executable instruction of logic processed, the processor are prompted to:
Receive the invoice request to create that user is initiated by client;Wherein, the invoice request to create includes that user is defeated
The invoice creation information entered;
In response to the invoice request to create, the invoice wound of invoice issuing side corresponding with the invoice request to create is determined
Whether sufficient build amount;Wherein, the invoice creation amount is carried out based on the invoice creation record for the invoice issuing side
The credit scoring for the invoice issuing side that credit evaluation obtains determines;
If the invoice creation amount of the invoice issuing side is sufficient, the invoice stated in preset intelligent contract is called
Logic is created, information creating target invoice is created based on the invoice.
In the present embodiment, the control with the invoice creation based on block chain stored by reading and executing the memory
The corresponding machine-executable instruction of logic processed, the processor are prompted to:
It calls the amount stated in the intelligent contract to check logic, determines invoice corresponding with the invoice request to create
Whether the invoice creation amount for the side of issuing is sufficient;Alternatively,
Third-party trusted service is called, the invoice request to create is sent to the third-party trusted service, with
Determine whether the invoice of invoice issuing side corresponding with the invoice request to create creates amount by third party's trusted service
Abundance, and receive the invoice issuing side that third party's trusted service returns invoice creation amount whether Chong Zu determination
As a result.
In the present embodiment, the control with the invoice creation based on block chain stored by reading and executing the memory
The corresponding machine-executable instruction of logic processed, the processor are prompted to:
Third-party trusted service is called, invoice creation record is sent to the third-party trusted service, with
Invoice creation record is based on by the third-party trusted service, letter is obtained to invoice issuing side progress credit evaluation
With scoring.
In the present embodiment, the control with the invoice creation based on block chain stored by reading and executing the memory
The corresponding machine-executable instruction of logic processed, the processor are also prompted to:
Receive the credit scoring for the invoice issuing side that the third-party trusted service returns;
It calls the amount stated in the intelligent contract to determine logic, the invoice issuing is determined based on the credit scoring
The invoice of side creates amount.
In the present embodiment, the control with the invoice creation based on block chain stored by reading and executing the memory
The corresponding machine-executable instruction of logic processed, the processor are also prompted to:
Receive the hair that the credit scoring based on invoice issuing side that the third-party trusted service returns is determined
The invoice of the ticket side of issuing creates amount.
In the present embodiment, the control with the invoice creation based on block chain stored by reading and executing the memory
The corresponding machine-executable instruction of logic processed, the processor are also prompted to:
After creating the target invoice, the invoice creation record for corresponding to the target invoice is generated, and be based on institute
It states invoice creation record and credit scoring is obtained to invoice issuing side progress credit evaluation, to be based on the credit scoring to institute
The invoice creation amount for stating invoice issuing side carries out dynamic update.
In the present embodiment, the third-party trusted service may include being deployed in third-party trusted service equipment
On machine learning model.
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.
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory
Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any
Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.