CN109981547A - A kind of logistics transmission method and device based on block chain - Google Patents

A kind of logistics transmission method and device based on block chain Download PDF

Info

Publication number
CN109981547A
CN109981547A CN201711462462.5A CN201711462462A CN109981547A CN 109981547 A CN109981547 A CN 109981547A CN 201711462462 A CN201711462462 A CN 201711462462A CN 109981547 A CN109981547 A CN 109981547A
Authority
CN
China
Prior art keywords
information
logistics
block
node
logistics 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.)
Granted
Application number
CN201711462462.5A
Other languages
Chinese (zh)
Other versions
CN109981547B (en
Inventor
梁宵
耿方
杜悦琨
王申
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201711462462.5A priority Critical patent/CN109981547B/en
Publication of CN109981547A publication Critical patent/CN109981547A/en
Application granted granted Critical
Publication of CN109981547B publication Critical patent/CN109981547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of logistics transmission method and device based on block chain, for present node when receiving logistics information, can judgement decrypt the logistics information;When determining that itself can decrypt the logistics information, the nodal information of next node is determined;According to the nodal information of the logistics information, the nodal information of the present node and the next node, generation area block;It is written in block chain, and is broadcasted to all nodes where the block chain using the block body as new logistics information.Compared with the prior art, in embodiments of the present invention, each node is when determining that itself can decrypt logistics information, it all can be according to the nodal information of logistics information, own node information and next node, generate corresponding block body, without relying on corresponding host node, so as to guarantee the safety of logistics information.

Description

A kind of logistics transmission method and device based on block chain
Technical field
The present invention relates to block chain technical field more particularly to a kind of logistics transmission method and devices based on block chain.
Background technique
Currently, the logistics transmission method commonly used in the trade based on block chain usually may include step following steps: posting part section Point uploads package information to host node;Host node is directed to the package information generation digital finger-print for posting the upload of part node, together with corresponding Timestamp write-in block chain in, and broadcast the package information from node all, each logistics node according to package object Space transmitting path is managed successively according to the nodal information of the digital finger-print, own node information and next logistics node Package status information is generated, and block chain is written by host node.But in this fashion, host node be once destroyed (or by Steal), cause the information in package information to be tampered, it is possible to will lead to that entire logistics information is insincere, and there are serious peaces Full hidden danger.
That is, the existing logistics transmission method based on block chain has that safety is lower.
Summary of the invention
The embodiment of the invention provides a kind of logistics transmission methods based on block chain, existing based on block to solve The lower problem of safety caused by the logistics transmission method of chain.
The embodiment of the invention provides a kind of logistics transmission methods based on block chain, comprising:
For present node when receiving logistics information, can judgement decrypt the logistics information;
When determining that itself can decrypt the logistics information, the nodal information of next node is determined;
It is raw according to the nodal information of the logistics information, the nodal information of the present node and the next node At block body;
It is written in block chain, and broadcasts all to where the block chain using the block body as new logistics information Node.
Specifically, present node determines that itself can decrypt the logistics information, specifically include:
Present node determines that own private key can decrypt the logistics information.
Specifically, according to the node of the logistics information, the nodal information of the present node and the next node Information, generation area block, specifically includes:
It is raw according to the flag information of the logistics information, the flag information of the present node and the next node At original area block;
It signs to the original area block, obtains signature area block;
The signature area block is encrypted using the public key of the next node, obtains encrypted area block;
Hash processing is carried out to the encrypted area block, obtains Hash file;
According to the encrypted area block and the Hash file, the block body is generated.
Further, after generating the block body, the logistics transmission method based on block chain further include:
Increase timestamp information for the block body.
Further, when determining that itself can decrypt the logistics information, the logistics transmission side based on block chain Method further include:
Hash processing is carried out to the logistics information;
If it is determined that the file obtained after handling by Hash and the Hash file carried in the logistics information are consistent, then Determine that the logistics information is not tampered with.
Correspondingly, the embodiment of the invention also provides a kind of flow conveying apparatus based on block chain, comprising:
Judgment module, for present node when receiving logistics information, can judgement decrypt the logistics information;
Determining module, for determining the nodal information of next node when determining that itself can decrypt the logistics information;
Generation module, for according to the logistics information, the present node nodal information and the next node Nodal information, generation area block;
Broadcast module for being written the block body as new logistics information in block chain, and is broadcasted to the area All nodes where block chain.
Specifically, the determining module, if determining that own private key can decrypt the logistics and believe specifically for present node When breath, it is determined that the present node can decrypt the logistics information.
Further, the generation module, specifically for the flag information according to the logistics information, the present node And the flag information of the next node, generate original area block;It signs to the original area block, obtains signature area Block;The signature area block is encrypted using the public key of the next node, obtains encrypted area block;To the encryption Block body carries out Hash processing, obtains Hash file;According to the encrypted area block and the Hash file, the area is generated Block.
Further, the logistics transmission method based on block chain further includes increasing module, in which:
The increase module, for increasing timestamp information for the block body after generating the block body.
Further, the determining module is also used to when determining that itself can decrypt the logistics information, to the object Stream information carries out Hash processing;And, however, it is determined that it obtained file and is carried in the logistics information after being handled by Hash Hash file is consistent, it is determined that the logistics information is not tampered with.
Correspondingly, the embodiment of the invention also provides a kind of calculating equipment, including memory and processor, in which:
The memory, for storing program instruction;
The processor executes sheet for calling the program instruction stored in the memory, and according to the program of acquisition Based on the logistics transmission method of block chain described in inventive embodiments.
Further, the embodiment of the invention also provides a kind of computer storage medium, the computer storage medium is deposited Computer executable instructions are contained, the computer executable instructions are for making the computer execute institute in the embodiment of the present invention The logistics transmission method based on block chain stated.
The present invention has the beneficial effect that:
The embodiment of the invention provides a kind of logistics transmission method and device based on block chain, present node is being received When to logistics information, can judgement decrypt the logistics information;When determining that itself can decrypt the logistics information, under determining The nodal information of one node;According to the section of the logistics information, the nodal information of the present node and the next node Point information, generation area block;It is written in block chain, and is broadcasted to the block chain using the block body as new logistics information All nodes at place.Compared with the prior art, in embodiments of the present invention, each node itself can decrypt logistics determining When information, all corresponding block body can be generated according to the nodal information of logistics information, own node information and next node, Without relying on corresponding host node, so as to guarantee the safety of logistics information.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 show the flow diagram of the logistics transmission method based on block chain provided in the embodiment of the present invention one;
Fig. 2 show the structural schematic diagram of the original area block provided in the embodiment of the present invention one;
Fig. 3 show the structural schematic diagram of the block body provided in the embodiment of the present invention one;
Fig. 4 show the information exchange schematic diagram between each node provided in the embodiment of the present invention one;
Fig. 5 show the building structural schematic diagram of the block chain provided in the embodiment of the present invention one;
Fig. 6 show the structural schematic diagram of the flow conveying apparatus based on block chain provided in the embodiment of the present invention two;
Fig. 7 show the structural schematic diagram of the calculating equipment provided in the embodiment of the present invention three.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
Embodiment one:
In order to solve the problems, such as that safety present in the existing logistics transmission method based on block chain is lower, the present invention Embodiment provides a kind of logistics transmission method based on block chain, as shown in Figure 1, it is to provide in the embodiment of the present invention one The flow diagram of logistics transmission method based on block chain.Specifically, as shown in Figure 1, the logistics based on block chain passes Transmission method can comprise the following steps that
Step 101: for present node when receiving logistics information, can judgement decrypt the logistics information;
Step 102: when determining that itself can decrypt the logistics information, determining the nodal information of next node;
Step 103: according to the node of the logistics information, the nodal information of the present node and the next node Information, generation area block;
Step 104: being written in block chain, and broadcasted to the block chain institute using the block body as new logistics information All nodes.
That is, in embodiments of the present invention, when receiving logistics information, can judgement decrypt described present node Logistics information;When determining that itself can decrypt the logistics information, the nodal information of next node is determined;According to the logistics The nodal information of information, the nodal information of the present node and the next node, generation area block;By the block body It is written in block chain, and is broadcasted to all nodes where the block chain as new logistics information.Compared with the prior art, In embodiments of the present invention, each node, all can be according to logistics information, itself section when determining that itself can decrypt logistics information The nodal information of point information and next node, generates corresponding block body, without relying on corresponding host node, so as to Guarantee the safety of logistics information.
It should be noted that the logistics information generally can be a block body, wherein may include corresponding Item Information, The nodal information etc. of a upper node, does not repeat this.
Specifically, present node determines that itself can decrypt the logistics information, specifically can include:
Present node determines that own private key can decrypt the logistics information.
It, can be by itself private key it should be noted that present node is when receiving the block body including logistics information The block body is decrypted, when the block body can be decrypted, illustrates that present node can be a biography of the logistics information Defeated node does not repeat this.
Specifically, according to the node of the logistics information, the nodal information of the present node and the next node Information, generation area block, specifically can include:
It is raw according to the flag information of the logistics information, the flag information of the present node and the next node At original area block;
It signs to the original area block, obtains signature area block;
The signature area block is encrypted using the public key of the next node, obtains encrypted area block;
Hash processing is carried out to the encrypted area block, obtains Hash file;
According to the encrypted area block and the Hash file, the block body is generated.
It should be noted that the flag information of the present node may include the title, serial number or code of present node Deng;The flag information of the next node may also comprise title, serial number or code of the next node etc., not appoint to this What is limited.
For example, it is assumed that the logistics information is merchandise items, such as grain, the flag information of the present node is described works as The serial number of front nodal point, such as 001, the flag information of the next node are the serial number of the next node, such as 002, then it can basis The flag information of the logistics information, the flag information of the present node and the next node generates original area block, As shown in Fig. 2, its structural schematic diagram for original area block described in the embodiment of the present invention.
It should be noted that in embodiments of the present invention, can sign to the original area block, so as to realize The non repudiation of block body ensure that the flexibility and accuracy of block chain.
For example, as shown in figure 3, it is the structural schematic diagram of the block body provided in the embodiment of the present invention one.Specifically, by Fig. 3 is it is found that may include encrypted area block and Hash file in the block body, this allows for present node and is receiving block When body, the encrypted area block can be decrypted, to obtain corresponding logistics information;Meanwhile the encrypted area block can also be carried out Hash processing, and can be when obtained file is consistent with the Hash file in the block body after determining Hash processing, it is believed that The logistics information is not tampered with, so as to the accuracy and integrality of the determination logistics information.
Specifically, the signature area block is encrypted using the public key of the next node, obtains encrypted area block, Can include:
Correspondingly KM (Key Management, code key management) system is called, and obtains next section from the KM The public key of point;
The signature area block is encrypted using the public key of the next node, obtains encrypted area block.
Wherein, the KM system realizes the service such as generation, preservation, backup, update, recovery or inquiry of key pair, from The angle that key uses is managed the various keys in operation system, and internal key algorithm operation and operation can lead to Hardware encryption device is crossed to realize, this is not repeated.
Certainly, it should be noted that in embodiments of the present invention, can also be according to the public key of the next node can be stored In other storage systems, as long as can guarantee the safety and privacy of public key, this is not limited in any way.
Further, after generating the block body, the logistics transmission method based on block chain may also include that
Increase timestamp information for the block body.
It should be noted that the timestamp information, which generally can be the characterization block body, generates (or write-in block chain) Temporal information, and, the timestamp information usually may include year information, month information, day information, when information, point information and Any one or more in second information, 20 divide 30 seconds when may be, for example, 3 days 12 January in 2018,2017/12/05/01:20: 45, alternatively, 2018/1/30 etc., the embodiment of the present invention is not limited in any way this.
Specifically, increase timestamp information for the block body, it may include:
Corresponding time stamp server is called, and acquisition time stabs information from the time stamp server.
Wherein, the time stamp server refers to by national time service central authority, and by authoritative trusted time stamping authority TSA The time service server with legal effect that (Time Stamp Authority, time-stamping service center) is signed and issued, is compared In common time service server, the temporal information that TSA is provided has higher reliability and safety, while also having law effect Power.Each timestamp is to have deposited for characterizing corresponding electronic message (electronic document, such as block body) a time point , and be complete, can verify that and have legal effect, this is not repeated.
It should be noted that in embodiments of the present invention, any mechanism includes that time stamp server oneself is unable to clock synchronization Between modify, so as to guarantee the authority of time, moreover it is possible to avoid distorting and afterwards denying to logistics information.
Further, when determining that itself can decrypt the logistics information, the logistics transmission side based on block chain Method may also include that
Hash processing is carried out to the logistics information;
If it is determined that the file obtained after handling by Hash and the Hash file carried in the logistics information are consistent, then Determine that the logistics information is not tampered with.
It should be noted that the processing of Hash described in the embodiment of the present invention may include the Hash for calculating the logistics information (hash) value, and compare the cryptographic Hash in itself calculated cryptographic Hash and the block body, however, it is determined that the two is consistent, Ji Kebiao Show that the logistics information in transmission process of the upper node-node transmission to present node, is not tampered with, belongs to believable logistics Information does not repeat this.
Further, it may also include random number in the block body, this do not repeated.
As shown in figure 4, it is the information exchange schematic diagram between each node provided in the embodiment of the present invention one.Specifically, As shown in Figure 4, user (i.e. active user) corresponding to the present node (node A as shown in Figure 4) is receiving logistics It, can be on the nodal information according to the logistics information, the nodal information of the present node and the next node when information Pass to present node;Present node can according to the logistics information, institute's data present node nodal information and it is described under The nodal information of one node generates corresponding block body;Present node calls TSA server acquisition time to stab information, and to described Block body is signed, to guarantee the non repudiation of logistics information;Present node calls KM server, obtains next node Public key, and according to the public key of the next node, the block body is encrypted;Can calculation block body cryptographic Hash, obtain Hash file, and can be according to encrypted area block and Hash file, generation area block;The block body is broadcasted to the block Each node in chain, node B as shown in Figure 4, node C and node D, does not repeat this.
In the following, citing is situated between in detail to the logistics transmission method described in the embodiment of the present invention based on block chain It continues:
Specifically, as shown in figure 5, it is the flow diagram for constructing block chain described in the embodiment of the present invention.By Fig. 5 It is found that in embodiments of the present invention, the method for entire logistics transmission can comprise the following steps that
Step 501: starting;
Step 502: the nodal information of present node logistics information, the nodal information of present node and next node, Tectonic province block;
Step 503: present node access time stabs server, and increases timestamp to the block body;
Step 504: present node calls key management system, obtains the public key of next node;
Step 505: block body described in the public key encryption using next node, and the block body is written in block chain;
Step 506: present node broadcasts the block body to other all nodes;
Step 507: all nodes of the whole network are decrypted with own private key, if successful decryption, by the node of successful decryption As new present node;
Step 508: judging whether the present node is final node;
Step 509: terminating.
As shown in the above, in embodiments of the present invention, in a first aspect, key of the user for encryption and decryption is stored in firmly In part key or dedicated KM system, other people can not obtain key pair, so as to guarantee being perfectly safe for logistics information;Second Aspect, the use of time stamp server improve the correct time of generation area block, so that core number of the article in different phase According to will not be tampered, also there is legal effect;The third aspect, Encryption Algorithm are using the domestic cryptographic summary algorithm of SM3 Improved a kind of algorithm on the basis of SHA-256 compares SHA-256 algorithm, has higher complexity and safety;Four directions Face, each node be using the public key of next node encrypt, it is ensured that logistics progress can be according to set sequence Orderly carry out;5th aspect, each node can be compared by hash value and verify corresponding logistics information, to ensure that logistics The correctness and reliability of information.
The embodiment of the present invention one provides a kind of logistics transmission method based on block chain, and present node is receiving logistics When information, can judgement decrypt the logistics information;When determining that itself can decrypt the logistics information, next node is determined Nodal information;According to the nodal information of the logistics information, the nodal information of the present node and the next node, Generation area block;It is written in block chain, and is broadcasted to where the block chain using the block body as new logistics information All nodes.Compared with the prior art, in embodiments of the present invention, each node itself can decrypt logistics information determining When, all corresponding block body can be generated according to the nodal information of logistics information, own node information and next node, without Corresponding host node must be relied on, so as to guarantee the safety of logistics information.
Embodiment two:
Based on inventive concept identical with the embodiment of the present invention one, block chain is based on second embodiment of the present invention provides a kind of Flow conveying apparatus, as shown in fig. 6, it is the flow conveying apparatus based on block chain that provides in the embodiment of the present invention two Structural schematic diagram.Specifically, it will be appreciated from fig. 6 that the flow conveying apparatus based on block chain can include:
Judgment module 61 can be used for present node when receiving logistics information, and can judgement decrypt the logistics information;
Determining module 62 can be used for determining the node of next node when determining that itself can decrypt the logistics information Information;
Generation module 63 can be used for according to the logistics information, the nodal information of the present node and described next The nodal information of node, generation area block;
Broadcast module 64 can be used for being written the block body as new logistics information in block chain, and broadcast to institute State all nodes where block chain.
That is, in embodiments of the present invention, it may include for present node when receiving logistics information, judge energy The judgment module of the no decryption logistics information, for determining next section when determining that itself can decrypt the logistics information The determining module of the nodal information of point, for according to the nodal information of the logistics information, the present node and it is described under The nodal information of one node, the generation module of generation area block and for being written the block body as new logistics information In block chain, and broadcast to the broadcast module of all nodes where the block chain.Compared with the prior art, of the invention real Apply in example, each node when determining that itself can decrypt logistics information, all can according to logistics information, own node information and The nodal information of next node generates corresponding block body, without relying on corresponding host node, so as to guarantee that logistics is believed The safety of breath.
Specifically, the determining module 62, if being particularly used in present node determines that own private key can decrypt the object When stream information, it is determined that the present node can decrypt the logistics information.
Further, the generation module 63, is particularly used in the mark according to the logistics information, the present node The flag information of information and the next node generates original area block;It signs, is signed to the original area block Name block body;The signature area block is encrypted using the public key of the next node, obtains encrypted area block;To described Encrypted area block carries out Hash processing, obtains Hash file;According to the encrypted area block and the Hash file, institute is generated State block body.
Further, the logistics transmission method based on block chain further includes increasing module 45, in which:
The increase module 65 can be used for after generating the block body, increase timestamp information for the block body.
Further, the determining module 62, it may also be used for when determining that itself can decrypt the logistics information, to institute It states logistics information and carries out Hash processing;And, however, it is determined that the file obtained later is handled by Hash and is taken in the logistics information The Hash file of band is consistent, it is determined that the logistics information is not tampered with.
Second embodiment of the present invention provides a kind of flow conveying apparatus based on block chain, it may include exists for present node When receiving logistics information, can judgement decrypt the judgment module of the logistics information, for when determination itself can decrypt institute When stating logistics information, determine the nodal information of next node determining module, for according to the logistics information, described work as prosthomere The nodal information of point and the nodal information of the next node, the generation module of generation area block and for by the block Body is written in block chain as new logistics information, and broadcasts to the broadcast module of all nodes where the block chain.Phase Than in the prior art, in embodiments of the present invention, each node, all can be according to object when determining that itself can decrypt logistics information The nodal information of stream information, own node information and next node generates corresponding block body, corresponding main without relying on Node, so as to guarantee the safety of logistics information.
Embodiment three:
The embodiment of the present invention three provides a kind of calculating equipment, as shown in fig. 7, it is meter described in the embodiment of the present invention Calculate the structural schematic diagram of equipment.The calculating equipment is specifically as follows desktop computer, portable computer, smart phone, plate Computer, personal digital assistant (Personal Digital Assistant, PDA) etc..Specifically, described in the embodiment of the present invention Calculating equipment may include processor, such as central processing unit (Center Processing Unit, CPU) 701, memory 702, input equipment 703 and output equipment 704 etc., input equipment 703 may include keyboard, mouse, touch screen etc., and output is set Standby 704 may include display equipment, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory 702 may include read-only memory (ROM) and random access memory (RAM), and to central processing unit The program instruction and data stored in 701 offer memories 702.In embodiments of the present invention, memory 702 can be used for storing The program of logistics transmission method based on block chain.
Central processing unit 701 by call memory 702 store program instruction, central processing unit 701 can be used for according to The program instruction of acquisition executes: for present node when receiving logistics information, can judgement decrypt the logistics information;Work as determination When itself can decrypt the logistics information, the nodal information of next node is determined;According to the logistics information, described work as prosthomere The nodal information of point and the nodal information of the next node, generation area block;Believe the block body as new logistics In breath write-in block chain, and broadcast to all nodes where the block chain.
Example IV:
The embodiment of the present invention four provides a kind of computer storage medium, by being stored as based on used in above-mentioned calculating equipment Calculation machine program instruction, it includes the programs for executing the above-mentioned logistics transmission method based on block chain.
The computer storage medium can be any usable medium or data storage device that computer can access, packet Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD, BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid State hard disk (SSD)) etc..
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the flow chart of device (equipment) and computer program product And/or block diagram describes.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to Enable the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate One machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizing The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of logistics transmission method based on block chain characterized by comprising
For present node when receiving logistics information, can judgement decrypt the logistics information;
When determining that itself can decrypt the logistics information, the nodal information of next node is determined;
According to the nodal information of the logistics information, the nodal information of the present node and the next node, generation area Block;
It is written in block chain, and is broadcasted to all sections where the block chain using the block body as new logistics information Point.
2. as described in claim 1 based on the logistics transmission method of block chain, which is characterized in that present node determines itself energy The logistics information is enough decrypted, is specifically included:
Present node determines that own private key can decrypt the logistics information.
3. as described in claim 1 based on the logistics transmission method of block chain, which is characterized in that according to the logistics information, The nodal information of the nodal information of the present node and the next node, generation area block, specifically includes:
According to the flag information of the logistics information, the flag information of the present node and the next node, generate just Beginning block body;
It signs to the original area block, obtains signature area block;
The signature area block is encrypted using the public key of the next node, obtains encrypted area block;
Hash processing is carried out to the encrypted area block, obtains Hash file;
According to the encrypted area block and the Hash file, the block body is generated.
4. as claimed in claim 3 based on the logistics transmission method of block chain, which is characterized in that generate the block body it Afterwards, the logistics transmission method based on block chain further include:
Increase timestamp information for the block body.
5. as claimed in claim 3 based on the logistics transmission method of block chain, which is characterized in that itself can be decrypted when determining When the logistics information, the logistics transmission method based on block chain further include:
Hash processing is carried out to the logistics information;
If it is determined that the file obtained after handling by Hash and the Hash file carried in the logistics information are consistent, it is determined that The logistics information is not tampered with.
6. a kind of flow conveying apparatus based on block chain characterized by comprising
Judgment module, for present node when receiving logistics information, can judgement decrypt the logistics information;
Determining module, for determining the nodal information of next node when determining that itself can decrypt the logistics information;
Generation module, for according to the nodal information of the logistics information, the present node and the section of the next node Point information, generation area block;
Broadcast module for being written the block body as new logistics information in block chain, and is broadcasted to the block chain All nodes at place.
7. the flow conveying apparatus as claimed in claim 6 based on block chain, which is characterized in that
The determining module, if determine that own private key can decrypt the logistics information specifically for present node, it is determined that The present node can decrypt the logistics information.
8. the flow conveying apparatus as claimed in claim 6 based on block chain, which is characterized in that
The generation module, specifically for according to the flag information of the logistics information, the present node and described next The flag information of node generates original area block;It signs to the original area block, obtains signature area block;Using institute The public key for stating next node encrypts the signature area block, obtains encrypted area block;The encrypted area block is carried out Hash processing, obtains Hash file;According to the encrypted area block and the Hash file, the block body is generated.
9. the flow conveying apparatus as claimed in claim 8 based on block chain, which is characterized in that the object based on block chain Spreading transmission method further includes increasing module, in which:
The increase module, for increasing timestamp information for the block body after generating the block body.
10. the flow conveying apparatus as claimed in claim 8 based on block chain, which is characterized in that
The determining module is also used to breathe out the logistics information when determining that itself can decrypt the logistics information Uncommon processing;And, however, it is determined that the file obtained after handling by Hash and the Hash file carried in the logistics information are consistent, Then determine that the logistics information is not tampered with.
11. a kind of calculating equipment, which is characterized in that including memory and processor, in which:
The memory, for storing program instruction;
The processor is wanted for calling the program instruction stored in the memory, and according to the program execution benefit of acquisition Seek 1~5 described in any item logistics transmission methods based on block chain.
12. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with the executable finger of computer It enables, the computer executable instructions are described in any item based on block chain for making the computer perform claim requirement 1~5 Logistics transmission method.
CN201711462462.5A 2017-12-28 2017-12-28 Logistics transmission method and device based on block chain Active CN109981547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711462462.5A CN109981547B (en) 2017-12-28 2017-12-28 Logistics transmission method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711462462.5A CN109981547B (en) 2017-12-28 2017-12-28 Logistics transmission method and device based on block chain

Publications (2)

Publication Number Publication Date
CN109981547A true CN109981547A (en) 2019-07-05
CN109981547B CN109981547B (en) 2022-06-07

Family

ID=67074889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711462462.5A Active CN109981547B (en) 2017-12-28 2017-12-28 Logistics transmission method and device based on block chain

Country Status (1)

Country Link
CN (1) CN109981547B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022681A (en) * 2016-05-13 2016-10-12 杭州云象网络技术有限公司 Logistics tracking method based on block chain
WO2017027648A1 (en) * 2015-08-11 2017-02-16 Jeff Stollman System and methods to ensure asset and supply chain integrity
CN106971288A (en) * 2017-05-31 2017-07-21 无锡井通网络科技有限公司 A kind of distributed material flow tracking method based on block chain
CN107094155A (en) * 2017-06-14 2017-08-25 广东工业大学 A kind of secure storage method of data and device based on alliance's block chain
CN107181599A (en) * 2017-07-18 2017-09-19 天津理工大学 The storage of route location data confidentiality and sharing 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
CN107483198A (en) * 2017-09-25 2017-12-15 中国科学院信息工程研究所 A kind of block catenary system supervised and method
CN107516180A (en) * 2017-08-25 2017-12-26 迅鳐成都科技有限公司 A kind of system and method that storage transaction security and operating efficiency are improved based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017027648A1 (en) * 2015-08-11 2017-02-16 Jeff Stollman System and methods to ensure asset and supply chain integrity
CN106022681A (en) * 2016-05-13 2016-10-12 杭州云象网络技术有限公司 Logistics tracking method based on block chain
CN106971288A (en) * 2017-05-31 2017-07-21 无锡井通网络科技有限公司 A kind of distributed material flow tracking method based on block chain
CN107094155A (en) * 2017-06-14 2017-08-25 广东工业大学 A kind of secure storage method of data and device based on alliance's 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
CN107181599A (en) * 2017-07-18 2017-09-19 天津理工大学 The storage of route location data confidentiality and sharing method based on block chain
CN107516180A (en) * 2017-08-25 2017-12-26 迅鳐成都科技有限公司 A kind of system and method that storage transaction security and operating efficiency are improved based on block chain
CN107483198A (en) * 2017-09-25 2017-12-15 中国科学院信息工程研究所 A kind of block catenary system supervised and method

Also Published As

Publication number Publication date
CN109981547B (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN110995737B (en) Gradient fusion method and device for federal learning and electronic equipment
US11005665B2 (en) Blockchain-based secure transaction method, electronic device, system and storage medium
CN110892672B (en) Key authentication assertion generation providing device anonymity
US10659230B2 (en) Using biometric features for user authentication
CN108898475B (en) Attribute encryption-based alliance block chain credit implementation method and system
US10841082B2 (en) System and method for blockchain smart contract data privacy
US10659226B2 (en) Data encryption method, decryption method, apparatus, and system
CN109714165B (en) Key management method for client to generate key components respectively and electronic equipment
CN112866228B (en) Method and device for controlling unauthorized access of web system
CN110915164A (en) Intelligent contract operation processing blockchain data based on execution in trusted execution environment
CN106713336B (en) Electronic data safeguard system and method based on double, asymmetrical encryption technology
US20190305968A1 (en) Human-solved puzzles as proof-of-work for blockchain
CN115242379A (en) System and method for distributed verification of online identity
CN106161472A (en) A kind of method of data encryption, Apparatus and system
Premarathne et al. Secure and reliable surveillance over cognitive radio sensor networks in smart grid
CN109981551A (en) A kind of data transmission system based on block chain, method and relevant device
CN114172659B (en) Message transmission method, device, equipment and storage medium in block chain system
CN112132578B (en) Efficient transaction processing method, tracking method and device based on block chain
CN105847883A (en) Program stream push method and apparatus based on user trust grades
CN109981591B (en) Key management method for generating private key by single client and electronic equipment
CN104468585A (en) Proxy-based user equipment trusted access authentication method
CN112165383A (en) Encryption method, device, equipment and medium based on shared root key
CN109981547A (en) A kind of logistics transmission method and device based on block chain
CN113064899B (en) Method and device for storing asset securities type general evidence transaction certificates and electronic equipment
CN112800453B (en) Credible query method and system based on multi-node consensus

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
GR01 Patent grant
GR01 Patent grant