CN109919533A - A kind of electronics warehouse receipt transfer system and method based on block chain - Google Patents
A kind of electronics warehouse receipt transfer system and method based on block chain Download PDFInfo
- Publication number
- CN109919533A CN109919533A CN201811232222.0A CN201811232222A CN109919533A CN 109919533 A CN109919533 A CN 109919533A CN 201811232222 A CN201811232222 A CN 201811232222A CN 109919533 A CN109919533 A CN 109919533A
- Authority
- CN
- China
- Prior art keywords
- warehouse receipt
- electronics
- client end
- server
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012546 transfer Methods 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012790 confirmation Methods 0.000 claims abstract description 43
- 238000003860 storage Methods 0.000 claims abstract description 12
- 238000010200 validation analysis Methods 0.000 claims abstract description 11
- 238000004519 manufacturing process Methods 0.000 claims abstract description 5
- 230000008859 change Effects 0.000 claims description 24
- 230000006855 networking Effects 0.000 claims description 4
- 238000012795 verification Methods 0.000 claims description 3
- 230000007547 defect Effects 0.000 abstract description 5
- 238000009826 distribution Methods 0.000 abstract 1
- 238000011161 development Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 101100217298 Mus musculus Aspm gene Proteins 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000005336 cracking Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
Abstract
The present invention relates to block chain technical fields, it is related to a kind of electronics warehouse receipt transfer system and method based on block chain, wherein, the server is electrically connected with the seller client end, buy-side client end, block chain account book, warehouse validation database and warehouse enterprise client respectively;This method includes: S1, filling in electronics warehouse receipt information;The Signature Confirmation of S2, the feedback of server and buy-side client end;S3, server distributing electronic warehouse receipt information;S4, production electronics warehouse receipt transfer are single;The Signature Confirmation of S5, the feedback of server and seller client end;S6, distribution electronics warehouse receipt transfer are single;S7, the transfer of electronics warehouse receipt, feedback and storage.The present invention stores record electronics warehouse receipt information using block chain and is published on block chained record block, utilize the signature of block chained record block and the irreversibility of generation time, it is low and information is easy the defect being tampered to overcome the transfer safety of prior art electronics warehouse receipt, achievees the purpose that ensure that warehouse receipt is transferred ownership safely.
Description
Technical field
The present invention relates to block chain technical fields, transfer ownership more specifically to a kind of electronics warehouse receipt based on block chain
System and method.
Background technique
With the development of internet, traditional forms of enterprises's conventional transaction mode is also and then reformed, and gradually sends out toward internet electronicization
Exhibition.Bulk supply tariff transaction interconnection networking development, as effective voucher of user's drawn right in the form of electronics warehouse receipt.But electronics
When the transfer of warehouse receipt, the technical security safeguard of use is not perfect, be easy by from each side attack (including system use
Personnel and outside).Storage enterprise is face-to-face under traditional conservative mode-line using comparing in order to guarantee bulk supply tariff transaction security
Mode, it is inefficient in Electronic Development by region, people, environmental factor;In addition the shape of short message confirming is used
Formula cannot technically solve safety issue at all, cannot exclude not under attack in entire information chain.
In traditional cooperative process, on a spoken level for the protocol validation of both sides or Multi Part Negotiation, if a side
It goes wrong, many situations can not accept to the agreement negotiated originally, anyway verbal statements are no guarantee, just will appear denial behavior.In order to
That denial behavior people is solved, according to method, the content of negotiation to be decided in form in black and white with signing an agreement, a contract, a receipt, etc., and
It signs name to each side for agreeing to the agreement or covers print (having official seal, signet, finger mark), when there is which side denial behavior occur,
It just takes out the Fen You each side and signs name or the agreement for covering print in order to ensure a correct understanding of the facts, just solve denial behavior like that.It is how to rise
To prevent deny? it is why can sign into such name in the name of agreement label or the print of lid without other and cover at such
Print, can identify.
The information age of computer has been arrived, as soon as inputting a name in a file, can not prevent from denying, because others
Same word can also be inputted, and whose input cannot distinguish is, so computer can only make a draft printing since some time
Thing, contract agreement etc still will sign on paper.Such situation, with Internet high speed development, also without solving line
The problem of lower contract.
Therefore, ensure electronics warehouse receipt transfer safety, ensure warehouse receipt transfer information be can not distort, non-repudiation and
It safely and effectively, is that block trade electronization and high efficiency is promoted to need to solve the problems, such as that one is big.
Summary of the invention
In view of this, the present invention provides a kind of electronics warehouse receipt transfer system and method based on block chain, it is existing to solve
Having technology electronics warehouse receipt to transfer ownership, safety is low and information is easy the defect being tampered.
A kind of electronics warehouse receipt transfer system based on block chain, include seller client end, buy-side client end, server,
Block chain account book, warehouse validation database and warehouse enterprise client;The server respectively with the seller client end, buy
Square client, block chain account book, warehouse validation database and warehouse enterprise client are electrically connected;Wherein, the seller visitor
Family end is for receiving electronics warehouse receipt information and Signature Confirmation;The buy-side client end is for filling in electronics warehouse receipt information and signing true
Recognize;The server is used to control the operation of whole system;The block chain account book is for storing seller client end and buyer visitor
The personal account information at family end;Whether the warehouse validation database is symmetrical consistent for contrast verification data information;The storehouse
Library enterprise client receives electronics warehouse receipt information for management and changes transfer electronics warehouse receipt information;Buyer user is in the buyer
Client is filled in electronics warehouse receipt information and electronics warehouse receipt information and Signature Confirmation information is sent on server, the server
It calls the data information of block chain account book storage to carry out matching personal account information and confirm signing messages, and electronics warehouse receipt is believed
Breath is sent in seller client end, and seller client receives electronics warehouse receipt information and Signature Confirmation, institute on the seller client end
The data information for stating the storage of server calls block chain account book carries out matching personal account information and confirms signing messages, and will be electric
Sub- warehouse receipt information is sent in warehouse enterprise client, and warehouse user receives electronics warehouse receipt information by warehouse enterprise client,
Transfer change carried out to corresponding electronics warehouse receipt, and by the electronics warehouse receipt confirmation message after change by server feedback to selling
Square client and buy-side client end, and be stored in block chain account book.
As a preferred solution of the present invention, which is with online networking or offline and storage function
Database or cloud reservoir;The seller client end includes cell phone application client, computer APP client or webpage client
End;The buy-side client end includes cell phone application client, computer APP client or webpage client;The seller client end
It include cell phone application client, computer APP client or webpage client;The warehouse enterprise client includes cell phone application
Client, computer APP client or webpage client.
A kind of electronics warehouse receipt transfer method based on block chain, being transferred ownership using the electronics warehouse receipt based on block chain is
System, step includes:
S1, buyer user at buy-side client end fill in electronics warehouse receipt information and by electronics warehouse receipt information and Signature Confirmation information
It is sent on server;Step S1 specifically: S11, server content format according to required by warehouse where electronics warehouse receipt,
Electronics warehouse receipt is shown on buy-side client end;S12, buyer user fill in electronics warehouse receipt information at buy-side client end and are sent to server
On;The data information of S13, server calls block chain account book carry out account verifying to electronics warehouse receipt information and format content are tested
Card, returns to step S11 if wrong;If errorless then follow the steps S14;S14, server are by the content of electronics warehouse receipt information
JSON character string is changed into, digital digest is carried out to JSON character string, and the data, JSON character string, number that user fills in are plucked
It is worth and is saved in relevant order, JSON character string and digital digest value is finally returned into buy-side client end and carry out digital label
Name confirmation.
S2, server carry out Recognition feedback to electronics warehouse receipt information, and through the Signature Confirmation again of buy-side client end;Step S2
Specifically: whether just buy-side client carries out the digital digest value of verifying return by JSON character string of the buy-side client end to return
Really;S1 is returned to step if mistake;If the digital digest value using the private spoon of asymmetrical encryption algorithm is added after correct
The close digital signature ciphertext to get JSON character string, and digital signature ciphertext and order number are uploaded to server.
S3, server are by the electronics warehouse receipt information flow after issuing Signature Confirmation to seller client end and warehouse enterprise client
End;Step S3 specifically: S31, server carry out the digital signature information at buy-side client end by the public spoon at buy-side client end
Decryption obtains decrypted plaintext;S32, the digital digest value that decrypted plaintext is obtained with step S14 is compared, if unanimously, holding
Row step S33, if inconsistent, return step S2;Order number is corresponded to the JSON character string and number of order by S33, server
Digest value, digital signature ciphertext are recorded in block chain account book, obtain unique ID of this block chain account book book keeping operation, and only by this
One ID saves order number and corresponds in order;Electronics warehouse receipt information is uploaded to seller client end and warehouse enterprise visitor by S34, server
Family end, it is single that notice seller client enters seller client end production electronics warehouse receipt transfer.
S4, seller client receive electronics warehouse receipt information on seller client end, and make the transfer of electronics warehouse receipt and be singly sent to
On server;Step S4 specifically: S41, seller client are according to the received electronics warehouse receipt information in seller client end in seller client
Creation electronics warehouse receipt transfer in end is single, and by the electronics warehouse receipt in electronics warehouse receipt information, order number, buyer's account, warehouse receipt institute
Warehouse information, time and seller's account configure to electronics warehouse receipt transfer list in, by electronics warehouse receipt transfer patrilineal line of descent with only one son in each generation give
To server;S42, server are to the electronics warehouse receipt in electronics warehouse receipt transfer list, order number, buyer's account, warehouse receipt institute
Warehouse information, time and seller's account carry out Transpression at the 2nd JSON character string, to the 2nd JSON character
String carries out the second digital digest and obtains the second digital digest value, and the 2nd JSON character string and the second digital digest value are saved to right
In the order answered, the 2nd JSON character string and the second digital digest value are finally returned into seller client end and are digitally signed really
Recognize.
S5, server carry out Recognition feedback to the single information of electronics warehouse receipt transfer, and through the Signature Confirmation again of seller client end;
Step S5 specifically: seller client is plucked by the number that the 2nd JSON character string of the seller client end to return carries out verifying return
Whether correct it is worth;S4 is returned to step if mistake;If being plucked after correct using the number of the private spoon of asymmetrical encryption algorithm
It is worth the second digital signature ciphertext encrypted to get the 2nd JSON character string, and by the second digital signature ciphertext and order
Number it is uploaded to server.
Electronics warehouse receipt transfer after S6, server will issue Signature Confirmation is singly sent to buy-side client end and warehouse enterprise visitor
Family end;Step S6 specifically: S61, server are close to second digital signature at seller client end by the public spoon at seller client end
Text is decrypted to obtain the second decrypted plaintext;S62, the second digital digest value for obtaining the second decrypted plaintext and step S42 into
Row comparison, if unanimously, thening follow the steps S63, if inconsistent, return step S4;Order number is corresponded to order by S63, server
The 2nd JSON character string and the second digital digest value, the second digital signature ciphertext be recorded in block chain account book, obtain this
Unique ID of block chain account book book keeping operation, and unique ID is saved into order number and is corresponded in order;S64, server are by electronics warehouse receipt
Transfer single upload enters warehouse enterprise visitor to buy-side client end and warehouse enterprise client, notice warehouse enterprise client is sent to
Family end carries out transfer change to corresponding electronics warehouse receipt.
S7, warehouse user receive electronics warehouse receipt information by warehouse enterprise client, carry out to corresponding electronics warehouse receipt
Transfer change, and by the electronics warehouse receipt confirmation message after change by server feedback to seller client end and buy-side client end,
And it is stored in block chain account book.Step S7 specifically: S71, warehouse user receive electronics warehouse receipt by warehouse enterprise client
Information, and according to the single information of electronics warehouse receipt transfer, confirmation electronics warehouse receipt information and the single information of electronics warehouse receipt transfer are errorless;It is S72, right
Corresponding electronics warehouse receipt carries out transfer change, and the electronics warehouse receipt confirmation message after change is passed through server feedback to the seller
Client and buy-side client end, and be stored in block chain account book;S73, pass through server to seller client end and buy-side client
End sends transfer success notification.
It can be seen from the above technical scheme that compared with prior art, the invention has the benefit that
The present invention has all characteristics of asymmetric cryptosystem, can prevent from distorting number since block chain is asymmetrical encryption algorithm
Word signature, issues signature on block chain, has non-repudiation, can exist when overcoming merely using asymmetrical encryption algorithm
The defect of signature in the past is forged because private spoon leaks, also overcoming the transfer of prior art electronics warehouse receipt, safety is low and information is easy quilt
The defect distorted;It can prevent artificial factor from the account being transferred to being caused to malfunction, push away duty mutually;In addition, the present invention utilizes
Block chain storage record electronics warehouse receipt information is simultaneously published on block chained record block, signature and generation using block chained record block
The irreversibility of time, it is low and information is easy the defect being tampered to overcome the transfer safety of prior art electronics warehouse receipt, reaches
Ensure the purpose that warehouse receipt is transferred ownership safely.
Detailed description of the invention
Fig. 1 is a kind of overall step stream of the electronics warehouse receipt transfer method based on block chain provided by the embodiment of the present invention
Cheng Tu.
Fig. 2 is a kind of stream of the step S1 of the electronics warehouse receipt transfer method based on block chain provided by the embodiment of the present invention
Cheng Tu.
Fig. 3 is a kind of stream of the step S3 of the electronics warehouse receipt transfer method based on block chain provided by the embodiment of the present invention
Cheng Tu.
Fig. 4 is a kind of stream of the step S4 of the electronics warehouse receipt transfer method based on block chain provided by the embodiment of the present invention
Cheng Tu.
Fig. 5 is a kind of stream of the step S6 of the electronics warehouse receipt transfer method based on block chain provided by the embodiment of the present invention
Cheng Tu.
Fig. 6 is a kind of stream of the step S7 of the electronics warehouse receipt transfer method based on block chain provided by the embodiment of the present invention
Cheng Tu.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing described in technical description to be briefly described, it is therefore apparent that the attached drawing in description below is only of the invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other attached drawings.
Specific embodiment
The same or similar label correspond to the same or similar components in the attached drawing of the embodiment of the present invention;It is retouched in of the invention
In stating, it is to be understood that if the orientation or positional relationship for having the instructions such as term " on ", "lower", "left", "right" is based on attached drawing
Shown in orientation or positional relationship, be merely for convenience of description of the present invention and simplification of the description, rather than indication or suggestion is signified
Device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore positional relationship is described in attached drawing
Term only for illustration, should not be understood as the limitation to this patent, for the ordinary skill in the art, can
To understand the concrete meaning of above-mentioned term as the case may be.
As shown in Figure 1, the embodiment of the invention discloses a kind of electronics warehouse receipt transfer system based on block chain, including it is on sale
Square client, buy-side client end, server, block chain account book, warehouse validation database and warehouse enterprise client;The clothes
Be engaged in device respectively with the seller client end, buy-side client end, block chain account book, warehouse validation database and warehouse enterprise client
End is electrically connected;Wherein, the seller client end is for receiving electronics warehouse receipt information and Signature Confirmation;It uses at the buy-side client end
In filling in electronics warehouse receipt information and Signature Confirmation;The server is used to control the operation of whole system;The block chain account book
For storing the personal account information at seller client end and buy-side client end;The warehouse validation database is used for contrast verification number
It is believed that whether breath is symmetrical consistent;The warehouse enterprise client receives electronics warehouse receipt information for management and changes transfer electronics storehouse
Single information;Buyer user at the buy-side client end fills in electronics warehouse receipt information and by electronics warehouse receipt information and Signature Confirmation information
It is sent on server, the data information of server calls block chain account book storage match personal account information and true
Recognize signing messages, and electronics warehouse receipt information is sent in seller client end, seller client receives on the seller client end
The data information of electronics warehouse receipt information and Signature Confirmation, the server calls block chain account book storage carries out matching personal account
Information simultaneously confirms signing messages, and electronics warehouse receipt information is sent in warehouse enterprise client, and warehouse user is looked forward to by warehouse
Industry client receives electronics warehouse receipt information, carries out transfer change to corresponding electronics warehouse receipt, and by the electronics warehouse receipt after change
Confirmation message is stored in block chain account book by server feedback to seller client end and buy-side client end.
As a preferred solution of the present invention, which is with online networking or offline and storage function
Database or cloud reservoir;The seller client end includes cell phone application client, computer APP client or webpage client
End;The buy-side client end includes cell phone application client, computer APP client or webpage client;The seller client end
It include cell phone application client, computer APP client or webpage client;The warehouse enterprise client includes cell phone application
Client, computer APP client or webpage client.
The present invention implements one and additionally provides a kind of electronics warehouse receipt transfer method based on block chain, using described based on area
The electronics warehouse receipt transfer system of block chain, step includes:
S1, buyer user at buy-side client end fill in electronics warehouse receipt information and by electronics warehouse receipt information and Signature Confirmation information
It is sent on server;Step S1 specifically: S11, server content format according to required by warehouse where electronics warehouse receipt,
Electronics warehouse receipt is shown on buy-side client end;S12, buyer user fill in electronics warehouse receipt information at buy-side client end and are sent to server
On;The data information of S13, server calls block chain account book carry out account verifying to electronics warehouse receipt information and format content are tested
Card, returns to step S11 if wrong;If errorless then follow the steps S14;S14, server are by the content of electronics warehouse receipt information
JSON character string is changed into, digital digest is carried out to JSON character string, and the data, JSON character string, number that user fills in are plucked
It is worth and is saved in relevant order, JSON character string and digital digest value is finally returned into buy-side client end and carry out digital label
Name confirmation.
S2, server carry out Recognition feedback to electronics warehouse receipt information, and through the Signature Confirmation again of buy-side client end;Step S2
Specifically: whether just buy-side client carries out the digital digest value of verifying return by JSON character string of the buy-side client end to return
Really;S1 is returned to step if mistake;If the digital digest value using the private spoon of asymmetrical encryption algorithm is added after correct
The close digital signature ciphertext to get JSON character string, and digital signature ciphertext and order number are uploaded to server.
S3, server are by the electronics warehouse receipt information flow after issuing Signature Confirmation to seller client end and warehouse enterprise client
End;Step S3 specifically: S31, server carry out the digital signature information at buy-side client end by the public spoon at buy-side client end
Decryption obtains decrypted plaintext;S32, the digital digest value that decrypted plaintext is obtained with step S14 is compared, if unanimously, holding
Row step S33, if inconsistent, return step S2;Order number is corresponded to the JSON character string and number of order by S33, server
Digest value, digital signature ciphertext are recorded in block chain account book, obtain unique ID of this block chain account book book keeping operation, and only by this
One ID saves order number and corresponds in order;Electronics warehouse receipt information is uploaded to seller client end and warehouse enterprise visitor by S34, server
Family end, it is single that notice seller client enters seller client end production electronics warehouse receipt transfer.
S4, seller client receive electronics warehouse receipt information on seller client end, and make the transfer of electronics warehouse receipt and be singly sent to
On server;Step S4 specifically: S41, seller client are according to the received electronics warehouse receipt information in seller client end in seller client
Creation electronics warehouse receipt transfer in end is single, and by the electronics warehouse receipt in electronics warehouse receipt information, order number, buyer's account, warehouse receipt institute
Warehouse information, time and seller's account configure to electronics warehouse receipt transfer list in, by electronics warehouse receipt transfer patrilineal line of descent with only one son in each generation give
To server;S42, server are to the electronics warehouse receipt in electronics warehouse receipt transfer list, order number, buyer's account, warehouse receipt institute
Warehouse information, time and seller's account carry out Transpression at the 2nd JSON character string, to the 2nd JSON character
String carries out the second digital digest and obtains the second digital digest value, and the 2nd JSON character string and the second digital digest value are saved to right
In the order answered, the 2nd JSON character string and the second digital digest value are finally returned into seller client end and are digitally signed really
Recognize.
S5, server carry out Recognition feedback to the single information of electronics warehouse receipt transfer, and through the Signature Confirmation again of seller client end;
Step S5 specifically: seller client is plucked by the number that the 2nd JSON character string of the seller client end to return carries out verifying return
Whether correct it is worth;S4 is returned to step if mistake;If being plucked after correct using the number of the private spoon of asymmetrical encryption algorithm
It is worth the second digital signature ciphertext encrypted to get the 2nd JSON character string, and by the second digital signature ciphertext and order
Number it is uploaded to server.
Electronics warehouse receipt transfer after S6, server will issue Signature Confirmation is singly sent to buy-side client end and warehouse enterprise visitor
Family end;Step S6 specifically: S61, server are close to second digital signature at seller client end by the public spoon at seller client end
Text is decrypted to obtain the second decrypted plaintext;S62, the second digital digest value for obtaining the second decrypted plaintext and step S42 into
Row comparison, if unanimously, thening follow the steps S63, if inconsistent, return step S4;Order number is corresponded to order by S63, server
The 2nd JSON character string and the second digital digest value, the second digital signature ciphertext be recorded in block chain account book, obtain this
Unique ID of block chain account book book keeping operation, and unique ID is saved into order number and is corresponded in order;S64, server are by electronics warehouse receipt
Transfer single upload enters warehouse enterprise visitor to buy-side client end and warehouse enterprise client, notice warehouse enterprise client is sent to
Family end carries out transfer change to corresponding electronics warehouse receipt.
S7, warehouse user receive electronics warehouse receipt information by warehouse enterprise client, carry out to corresponding electronics warehouse receipt
Transfer change, and by the electronics warehouse receipt confirmation message after change by server feedback to seller client end and buy-side client end,
And it is stored in block chain account book.Step S7 specifically: S71, warehouse user receive electronics warehouse receipt by warehouse enterprise client
Information, and according to the single information of electronics warehouse receipt transfer, confirmation electronics warehouse receipt information and the single information of electronics warehouse receipt transfer are errorless;It is S72, right
Corresponding electronics warehouse receipt carries out transfer change, and the electronics warehouse receipt confirmation message after change is passed through server feedback to the seller
Client and buy-side client end, and be stored in block chain account book;S73, pass through server to seller client end and buy-side client
End sends transfer success notification.
The working principle of the present embodiment is: the secret key of asymmetrical encryption algorithm of the present invention is divided into private spoon and public affairs
Spoon knows that its private spoon can generate public spoon by calculating, and in turn, knows that its public spoon is cannot to generate private spoon by calculating;It is only single
To can be with, rather than it is two-way be ok, therefore have asymmetry.The data that asymmetrical encryption algorithm includes private spoon encryption only have public affairs
The characteristic that spoon can be decrypted, the only private spoon of the data of public spoon encryption can be decrypted;So application upper combination secret key asymmetry feature with
Encryption and decryption feature, individual hold private spoon, and public spoon is made known to the world, so that it may accomplish the thing for being similar to manual signature or impressing;It is assorted
? because only that holding the data of people's encryption of that private spoon, that private corresponding public spoon of spoon could be decrypted, without second people
Hold that private spoon, so this is equivalent in former number in addition to his (she/it) without second people can encrypt such data
According to above having signed the name marking.
The safety of asymmetrical encryption algorithm: the most weak place of this kind of algorithm is just in the protection of private spoon, and on business spoon is public
Open, if can it is public spoon is counter extrapolates private spoon, that all bad thing can be done, the entire algorithm so the safety of key-encryption algorithm is determined
Safety.Key algorithm will be always based on based on a problem mathematically, such as RSA: give two prime number ps, q
It is easy to be multiplied and obtains n, and factorization relative difficulty is carried out to n;ECC elliptic curve is based on: K=kG [wherein K, G
For the point on Ep (a, b), k is the integer less than n (rank that n is point G)] it is not difficult to find that given k and G, according to Adding law, meter
K is calculated to be easy to;But given K and G, asks k with regard to relative difficulty.It is said herein it is difficult be not cannot, be that there is presently no numbers
It learns formula directly to calculate, but the calculating speed of computer is quickly, can be calculated by the quick-fried power mode of exhaustion, with calculating most fast at present
For cracking, as long as being of convenient length for secret key is longer, need to crack the time with up to a million years.Therefore, it is currently used not
Symmetric encipherment algorithm is safe.
At the deficiency of asymmetrical encryption algorithm: the calculating power of encryption, low efficiency, therefore encrypted plaintext cannot be too long,
The content being namely digitally signed cannot be too long.Otherwise efficiency is very too low.In order to solve the problems, such as that signature contents cannot be too long, this
Digital digest algorithm (common to have MD5, SHA1, SHA256) has also been introduced in invention.Its principle is such as: such as several very big just whole
How number, quickly distinguish them, simple method takes the units (i.e. mould is with 10) of its most position;It is likely that such point-score meeting
There is duplicate value to cause to distinguish, is to change one the reason is that this differentiating approach is too simple and result set is too small (only 10 numbers)
As soon as kind of method and result set do it is big this, do not allow to be also easy to produce duplicate value.Digital digest algorithm is suitable with this, only method
Complicated and result set is bigger, goes abstract article and data etc. are all difficult to produce very much duplicate value with common digital digest algorithm.
Existing safety problem of signing is carried out with asymmetrical encryption algorithm merely: although the algorithm of secret key is currently safety
, cannot crack to obtain from front, but computer, mobile phone, server etc. calculate equipment still there are many security breaches hackers can
It can steal and arrive, if stolen to private spoon, be forged with private spoon past extremely big to oneself harmful digital signature, that holds private spoon not with regard to one
Moment calamity is beyond redemption!Hand will be fallen from the time certainly by solving this, to be given way and be arrived private spoon steathily and also do not forge past tense
Between digital signature, seek to make production figures signs be it is true, not so forge.Now relatively good method announces it
In record block on to block chain, being published to block chained record block has N parts of copies, and next record block is with having previous record block
The main informations such as the digital digest value of location and previous record block full content, when record block is recorded each signature and generated
Between equal main informations.If the content of change past some block of record block necessarily causes the change of its digital digest value, can
Lead to the difference with next record block number word digest value, if removing the previous block number word digest value of modification next record block again,
Its digital digest value of next record block and lower next record block be will lead to on not, all recording for whole block chain is needed with this
Block modification, puppet produces whole block chain again, but block chained record block has N parts of copies to spread to each piece of the whole world, can obtain again
Whole block chain that others is deposited oneself is not changed.Therefore the time recorded on block chain be currently it is safe, compensate for puppet
Make over signature the problem of.It is stolen for private spoon that the method for cancelling private spoon can be also issued on block chain, it is later right to be stolen private spoon
Oneself harmful forgery digital signature.
Therefore, in embodiments of the present invention, block chain of the present invention is the upgrading of asymmetrical encryption algorithm application,
So it has all characteristics of asymmetric cryptosystem, such as prevent from distorting as digital signature;Signature is issued on block chain, is had automatic
Timestamp effect label it is anti-tamper, have non-repudiation, and merely use asymmetrical encryption algorithm, have because private spoon leak forge
Past signature problem;And it can prevent artificial factor from the account being transferred to being caused to malfunction, push away duty mutually;Due to this hair
Bright warehouse enterprise is participated with the role of client application, is not needed modernization system energetically and is docked with platform gateway, so
Warehouse enterprise participates in simply, regardless of the IT development ability power of warehouse enterprise all may participate in wherein;The present invention can be embedded into greatly
Ancestor's cargo transaction platform is to support logistics links.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized the present invention.To these
A variety of modifications of embodiment will be readily apparent to those skilled in the art, general original as defined herein
Reason can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention will not
Be intended to be limited to the embodiments shown herein, and be to fit to it is consistent with the principles and novel features disclosed in this article most
Wide range.
Claims (10)
1. a kind of electronics warehouse receipt transfer system based on block chain, which is characterized in that include seller client end, buy-side client
End, server, block chain account book, warehouse validation database and warehouse enterprise client;The server is sold with described respectively
Square client, buy-side client end, block chain account book, warehouse validation database and warehouse enterprise client are electrically connected;Wherein,
The seller client end is for receiving electronics warehouse receipt information and Signature Confirmation;The buy-side client end is for filling in electronics warehouse receipt letter
Cease simultaneously Signature Confirmation;The server is used to control the operation of whole system;The block chain account book is for storing seller client
The personal account information at end and buy-side client end;The warehouse validation database is used for contrast verification data information whether symmetrical one
It causes;The warehouse enterprise client receives electronics warehouse receipt information for management and changes transfer electronics warehouse receipt information;Buyer user
Electronics warehouse receipt information is filled at the buy-side client end and electronics warehouse receipt information and Signature Confirmation information are sent on server,
The data information of the server calls block chain account book storage carries out matching personal account information and confirms signing messages, and will
Electronics warehouse receipt information is sent in seller client end, and seller client receives electronics warehouse receipt information and signed on the seller client end
The data information of name confirmation, the server calls block chain account book storage carries out matching personal account information and confirms A.L.S.
Breath, and electronics warehouse receipt information is sent in warehouse enterprise client, warehouse user receives electronics by warehouse enterprise client
Warehouse receipt information carries out transfer change to corresponding electronics warehouse receipt, and the electronics warehouse receipt confirmation message after change is passed through service
Device feeds back to seller client end and buy-side client end, and is stored in block chain account book.
2. a kind of electronics warehouse receipt transfer system based on block chain described in claim 1, which is characterized in that the block chain account
This is with online networking or offline and storage function database or cloud reservoir.
A kind of method 3. electronics warehouse receipt based on block chain is transferred ownership, which is characterized in that using any one of claim 1-2 right
It is required that the electronics warehouse receipt transfer system based on block chain, step includes: S1, buyer user fill out at buy-side client end
It writes electronics warehouse receipt information and electronics warehouse receipt information and Signature Confirmation information is sent on server;
S2, server carry out Recognition feedback to electronics warehouse receipt information, and through the Signature Confirmation again of buy-side client end;
S3, server are by the electronics warehouse receipt information flow after issuing Signature Confirmation to seller client end and warehouse enterprise client;
S4, seller client receive electronics warehouse receipt information on seller client end, and make the transfer of electronics warehouse receipt and be singly sent to service
On device;
S5, server carry out Recognition feedback to the single information of electronics warehouse receipt transfer, and through the Signature Confirmation again of seller client end;
Electronics warehouse receipt transfer after S6, server will issue Signature Confirmation is singly sent to buy-side client end and warehouse enterprise client
End;
S7, warehouse user receive electronics warehouse receipt information by warehouse enterprise client, transfer ownership to corresponding electronics warehouse receipt
Change, and by the electronics warehouse receipt confirmation message after change by server feedback to seller client end and buy-side client end, and store up
It is stored in block chain account book.
The method 4. a kind of electronics warehouse receipt based on block chain as claimed in claim 3 is transferred ownership, which is characterized in that step S1 is specific
Are as follows:
S11, server content format according to required by warehouse where electronics warehouse receipt, show electronics storehouse on buy-side client end
It is single;
S12, buyer user fill in electronics warehouse receipt information at buy-side client end and are sent on server;
The data information of S13, server calls block chain account book carry out account verifying to electronics warehouse receipt information and format content are tested
Card, returns to step S11 if wrong;If errorless then follow the steps S14;
The content of electronics warehouse receipt information is changed into JSON character string by S14, server, carries out digital digest to JSON character string, and
Data, JSON character string, digital digest value that user fills in are saved in relevant order, finally by JSON character string sum number
Word digest value returns to buy-side client end and is digitally signed confirmation.
The method 5. a kind of electronics warehouse receipt based on block chain as claimed in claim 3 is transferred ownership, which is characterized in that step S2 is specific
Are as follows: whether buy-side client is correct by the digital digest value that JSON character string of the buy-side client end to return carries out verifying return;
S1 is returned to step if mistake;If being encrypted after correct using the digital digest value of the private spoon of asymmetrical encryption algorithm,
Up to the digital signature ciphertext of JSON character string, and digital signature ciphertext and order number are uploaded to server.
The method 6. a kind of electronics warehouse receipt based on block chain as claimed in claim 3 is transferred ownership, which is characterized in that step S3 is specific
Are as follows:
S31, server are decrypted the digital signature information at buy-side client end by the public spoon at buy-side client end and are decrypted
In plain text;
S32, the digital digest value that decrypted plaintext is obtained with step S14 is compared, if unanimously, thening follow the steps S33, if not
Unanimously, then return step S2;
S33, order number is corresponded to the JSON character string of order to server and block is recorded in digital digest value, digital signature ciphertext
In chain account book, unique ID of this block chain account book book keeping operation is obtained, and unique ID is saved into order number and is corresponded in order;
Electronics warehouse receipt information is uploaded to seller client end and warehouse enterprise client by S34, server, and notice seller client enters
It is single to seller client end production electronics warehouse receipt transfer.
The method 7. a kind of electronics warehouse receipt based on block chain as claimed in claim 3 is transferred ownership, which is characterized in that step S4 is specific
Are as follows:
S41, seller client are according to the received electronics warehouse receipt information in seller client end in seller client end creation electronics warehouse receipt transfer
It is single, and by electronics warehouse receipt information electronics warehouse receipt, order number, buyer's account, the warehouse information where warehouse receipt, the time with
And seller's account is configured into electronics warehouse receipt transfer list, and the transfer of electronics warehouse receipt is singly sent on server;
S42, server are to the electronics warehouse receipt in electronics warehouse receipt transfer list, order number, buyer's account, the warehouse where warehouse receipt
Information, time and seller's account carry out Transpression into the 2nd JSON character string, carry out the to the 2nd JSON character string
Two digital digests obtain the second digital digest value, and the 2nd JSON character string and the second digital digest value are saved to corresponding order
In, the 2nd JSON character string and the second digital digest value are finally returned into seller client end and are digitally signed confirmation.
The method 8. a kind of electronics warehouse receipt based on block chain as claimed in claim 3 is transferred ownership, which is characterized in that step S5 is specific
Are as follows: whether just seller client carries out the digital digest value of verifying return by the 2nd JSON character string of the seller client end to return
Really;S4 is returned to step if mistake;If the digital digest value using the private spoon of asymmetrical encryption algorithm is added after correct
Close the second digital signature ciphertext to get the 2nd JSON character string, and the second digital signature ciphertext and order number are uploaded to clothes
Business device.
The method 9. a kind of electronics warehouse receipt based on block chain as claimed in claim 3 is transferred ownership, which is characterized in that step S6 is specific
Are as follows:
S61, server are decrypted to obtain by the public spoon at seller client end to the second digital signature ciphertext at seller client end
Second decrypted plaintext;
S62, the second digital digest value for obtaining the second decrypted plaintext with step S42 compare, if unanimously, thening follow the steps
S63, if inconsistent, return step S4;
S63, server by order number correspond to order the 2nd JSON character string and the second digital digest value, the second digital signature it is close
Text is recorded in block chain account book, obtains unique ID of this block chain account book book keeping operation, and unique ID is saved order number pair
It answers in order;
Electronics warehouse receipt is transferred ownership single upload to buy-side client end and warehouse enterprise client is sent to by S64, server, notifies warehouse
Corporate client enters warehouse enterprise client and carries out transfer change to corresponding electronics warehouse receipt.
The method 10. a kind of electronics warehouse receipt based on block chain as claimed in claim 3 is transferred ownership, which is characterized in that step S7 is specific
Are as follows:
S71, warehouse user receive electronics warehouse receipt information by warehouse enterprise client, and are transferred ownership single information according to electronics warehouse receipt,
Confirm that electronics warehouse receipt information and the single information of electronics warehouse receipt transfer are errorless;
S72, transfer change is carried out to corresponding electronics warehouse receipt, and the electronics warehouse receipt confirmation message after change is passed through into server
Seller client end and buy-side client end are fed back to, and is stored in block chain account book;
S73, transfer success notification is sent to seller client end and buy-side client end by server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811232222.0A CN109919533A (en) | 2018-10-22 | 2018-10-22 | A kind of electronics warehouse receipt transfer system and method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811232222.0A CN109919533A (en) | 2018-10-22 | 2018-10-22 | A kind of electronics warehouse receipt transfer system and method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109919533A true CN109919533A (en) | 2019-06-21 |
Family
ID=66959550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811232222.0A Pending CN109919533A (en) | 2018-10-22 | 2018-10-22 | A kind of electronics warehouse receipt transfer system and method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109919533A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113591449A (en) * | 2020-11-10 | 2021-11-02 | 中储京科供应链管理有限公司 | Method, device and equipment for generating electronic warehouse receipt and storage medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002005160A1 (en) * | 2000-07-07 | 2002-01-17 | Fujitsu Limited | Electronic trading server, seller client, buyer client, and electronic trading method |
CN105989426A (en) * | 2015-01-29 | 2016-10-05 | 邹水龙 | Customer relationship management system facing standard information service industry |
CN106022917A (en) * | 2016-05-08 | 2016-10-12 | 杭州复杂美科技有限公司 | Block chain matching exchange scheme |
US20170124647A1 (en) * | 2015-11-04 | 2017-05-04 | Chicago Mercantile Exchange Inc. | System for Physically Delivering Virtual Currencies |
CN107274139A (en) * | 2017-07-21 | 2017-10-20 | 中链科技有限公司 | Warehouse receipt data managing method and computer-readable medium |
CN107301521A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | Strengthen the method for warehouse receipt transaction security in a kind of warehouse receipt system based on block chain |
CN107301522A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | A kind of warehouse receipt system and application method based on block chain |
CN107301523A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | A kind of method for preventing warehouse receipt repetitive displacement |
CN107332835A (en) * | 2017-06-26 | 2017-11-07 | 深圳前海华深安信物联技术有限公司 | The creation method of block chain in a kind of warehouse receipt system |
CN107844978A (en) * | 2017-11-30 | 2018-03-27 | 中链科技有限公司 | A kind of staple commodities transaction processing method and system based on block chain |
CN107967557A (en) * | 2017-11-17 | 2018-04-27 | 西安电子科技大学 | Reputation Evaluation System and method, electronic fare payment system are changed based on block chain |
CN108053001A (en) * | 2017-12-14 | 2018-05-18 | 上海密尔克卫化工储存有限公司 | The information safety authentication method and system of electronics warehouse receipt |
CN108288137A (en) * | 2017-12-15 | 2018-07-17 | 广州云化信息科技有限公司 | A kind of warehouse receipt suitable for cloud logistics manages system |
CN109409879A (en) * | 2018-10-16 | 2019-03-01 | 广东恒聚互联控股有限公司 | A method of enhancing block chain security performance |
-
2018
- 2018-10-22 CN CN201811232222.0A patent/CN109919533A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002005160A1 (en) * | 2000-07-07 | 2002-01-17 | Fujitsu Limited | Electronic trading server, seller client, buyer client, and electronic trading method |
CN105989426A (en) * | 2015-01-29 | 2016-10-05 | 邹水龙 | Customer relationship management system facing standard information service industry |
US20170124647A1 (en) * | 2015-11-04 | 2017-05-04 | Chicago Mercantile Exchange Inc. | System for Physically Delivering Virtual Currencies |
CN106022917A (en) * | 2016-05-08 | 2016-10-12 | 杭州复杂美科技有限公司 | Block chain matching exchange scheme |
CN107301522A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | A kind of warehouse receipt system and application method based on block chain |
CN107301521A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | Strengthen the method for warehouse receipt transaction security in a kind of warehouse receipt system based on block chain |
CN107301523A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | A kind of method for preventing warehouse receipt repetitive displacement |
CN107332835A (en) * | 2017-06-26 | 2017-11-07 | 深圳前海华深安信物联技术有限公司 | The creation method of block chain in a kind of warehouse receipt system |
CN107274139A (en) * | 2017-07-21 | 2017-10-20 | 中链科技有限公司 | Warehouse receipt data managing method and computer-readable medium |
CN107967557A (en) * | 2017-11-17 | 2018-04-27 | 西安电子科技大学 | Reputation Evaluation System and method, electronic fare payment system are changed based on block chain |
CN107844978A (en) * | 2017-11-30 | 2018-03-27 | 中链科技有限公司 | A kind of staple commodities transaction processing method and system based on block chain |
CN108053001A (en) * | 2017-12-14 | 2018-05-18 | 上海密尔克卫化工储存有限公司 | The information safety authentication method and system of electronics warehouse receipt |
CN108288137A (en) * | 2017-12-15 | 2018-07-17 | 广州云化信息科技有限公司 | A kind of warehouse receipt suitable for cloud logistics manages system |
CN109409879A (en) * | 2018-10-16 | 2019-03-01 | 广东恒聚互联控股有限公司 | A method of enhancing block chain security performance |
Non-Patent Citations (2)
Title |
---|
YAFEI CHEN等: "Research and application of Warehouse Receipt Transaction Based on Smart Contract on the Blockchain", 《ADVANCES IN ENGINEERING RESEARCH》, vol. 149, pages 589 - 897 * |
蒋东东等: "基于区块链的电子仓单流转平台建设", 《西安工程大学学报》, vol. 32, no. 06, pages 828 - 834 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113591449A (en) * | 2020-11-10 | 2021-11-02 | 中储京科供应链管理有限公司 | Method, device and equipment for generating electronic warehouse receipt and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108764874B (en) | Anonymous transfer method, system and storage medium based on block chain | |
CN107566117B (en) | A kind of block chain key management system and method | |
CN106453268B (en) | A method of realizing express delivery secret protection in logistics progress | |
CN110287732A (en) | One kind depositing card method based on block chain electronic contract | |
CN109741056A (en) | A kind of method and device that electronic certificate uploads | |
CN106570710A (en) | Commodity anti-counterfeiting method and device | |
CN100399737C (en) | Method of data protection | |
EP2269359B1 (en) | Method and system for securing data transfers | |
CN109756485A (en) | Electronic contract signs method, apparatus, computer equipment and storage medium | |
CN109447647A (en) | A kind of safety payment system based on block chain | |
CN109687963A (en) | Anti- quantum calculation alliance chain method of commerce and system based on public key pond | |
CN108092779A (en) | A kind of method and device for realizing electronic signature | |
CN109067524A (en) | A kind of public private key pair generation method and system | |
CN106485167A (en) | Credit record system and method based on block chain | |
CN1831865B (en) | Electronic bank safety authorization system and method based on CPK | |
CN109472164A (en) | The verification method and its network and electronic equipment of contract dataset | |
US20170301052A1 (en) | Digital passport country entry stamp | |
CN108399510A (en) | A kind of Contract Risk management-control method and equipment | |
CN105227317B (en) | A kind of cloud data integrity detection method and system for supporting authenticator privacy | |
CN202424771U (en) | Security service system for electronic contracts | |
US20090319797A1 (en) | Method and computer system for ensuring authenticity of an electronic transaction | |
CN101183439A (en) | Electronic bill processing system and processing method | |
CN111492390A (en) | Cash equivalent device for digital currency | |
CN107146120A (en) | The generation method and generating means of electronic invoice | |
CN106845275B (en) | A kind of the electronic bill management system and method for secret protection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240517 |
|
AD01 | Patent right deemed abandoned |