CN107147501A - Timestamp processing method and processing device - Google Patents
Timestamp processing method and processing device Download PDFInfo
- Publication number
- CN107147501A CN107147501A CN201710503163.5A CN201710503163A CN107147501A CN 107147501 A CN107147501 A CN 107147501A CN 201710503163 A CN201710503163 A CN 201710503163A CN 107147501 A CN107147501 A CN 107147501A
- Authority
- CN
- China
- Prior art keywords
- cryptographic hash
- sent
- time
- timestamp
- validator
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3297—Cryptographic 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 time stamps, e.g. generation of time stamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3236—Cryptographic 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3247—Cryptographic 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
- H04L9/3249—Cryptographic 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 using RSA or related signature schemes, e.g. Rabin scheme
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Computer And Data Communications (AREA)
- Multi Processors (AREA)
Abstract
The embodiment of the present invention provides a kind of timestamp processing method and processing device.This method includes:The name of sending node and public key are carried out Hash operation and obtain the first cryptographic Hash by sending node;First cryptographic Hash is sent to time validator;Service message to be sent and the first cryptographic Hash are subjected to Hash operation and obtain the second cryptographic Hash;Service message to be sent, the first cryptographic Hash and the second cryptographic Hash are sent to time validator.Service message to be sent is sent to time validator by the embodiment of the present invention by sending node, by time validator timestamp is added to the service message, avoid the phenomenon of the random modification time stamp of node, in addition, the name of oneself and public key are carried out Hash operation and obtain cryptographic Hash by sending node, and the sending node is identified with the cryptographic Hash, so that other nodes in block chain network are not aware that the name and public key of the sending node, avoid the sending node from being attacked, improve the security of the sending node.
Description
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of timestamp processing method and processing device.
Background technology
Block chain is the transaction data base of the nodes sharing in the confession system that block is combined in the way of chain.Specifically
, the information (including data or code) of generation in a period of time is packaged into a block, timestamp is covered, with Shang Yige areas
Block is engaged togather, and the beginning of the page per next block all contains the index data of a block, is then write again in this page
Enter new information, so as to form new block, join end to end, ultimately form block chain.
In current block chain network, when node sends message to block chain network, the message that can be sent at it
One timestamp of middle carrying, at the time of to represent that the node sends the message, so multiple nodes are sent out to block chain network respectively
The message sent is by other nodes carried in different timestamps, block chain network by the timestamp carried according to different messages
Sequencing handles different messages.
But, some nodes may arbitrarily be changed and disappeared for the message for allowing other node priority treatments oneself to send
The timestamp carried in breath, such as by the corresponding time modification of the timestamp into less than the time for actually sending the message, so that
Enable other node priority treatments message, cause occur inequitable phenomenon in block chain network.
The content of the invention
The embodiment of the present invention provides a kind of timestamp processing method and processing device, is carried with avoiding node from arbitrarily changing in message
Timestamp.
The one side of the embodiment of the present invention is to provide a kind of timestamp processing method, including:
The name of the sending node and public key are carried out Hash operation and obtain the first cryptographic Hash by sending node;
First cryptographic Hash is sent to time validator by the sending node, so that the time validator is to described
First cryptographic Hash addition very first time stamp, and the private key of the time validator is used to first cryptographic Hash and described first
Timestamp is signed, and obtains the first signing messages;
Service message to be sent and first cryptographic Hash are carried out Hash operation and obtain the second Kazakhstan by the sending node
Uncommon value;
The sending node sends the service message to be sent, first cryptographic Hash and second cryptographic Hash
To the time validator, so that the time validator gives the service message to be sent, first cryptographic Hash and institute
State the second cryptographic Hash add the second timestamp, and using the time validator private key to the service message to be sent,
First cryptographic Hash, second cryptographic Hash and second timestamp are signed, and obtain the second signing messages, and by institute
State service message to be sent, first cryptographic Hash, second cryptographic Hash, second timestamp and second signature
Information is sent to block chain network.
The other side of the embodiment of the present invention is to provide a kind of timestamp processing unit, the timestamp processing unit position
In sending node, including:
Computing module, the first cryptographic Hash is obtained for the name of the sending node and public key to be carried out into Hash operation;
Sending module, for first cryptographic Hash to be sent into time validator, so that the time validator is to institute
State the first cryptographic Hash addition very first time stamp, and using the time validator private key to first cryptographic Hash and described the
One timestamp is signed, and obtains the first signing messages;
The computing module is additionally operable to obtain service message to be sent and first cryptographic Hash progress Hash operation
Second cryptographic Hash;
The sending module is additionally operable to the service message to be sent, first cryptographic Hash and second Hash
Value is sent to the time validator, so that the time validator gives the service message to be sent, first Hash
Value and second cryptographic Hash add the second timestamp, and use the private key of the time validator to the business to be sent
Message, first cryptographic Hash, second cryptographic Hash and second timestamp are signed, and obtain the second signing messages,
And by the service message to be sent, first cryptographic Hash, second cryptographic Hash, second timestamp and described
Two signing messages are sent to block chain network.
Timestamp processing method and processing device provided in an embodiment of the present invention, by sending node by service message to be sent
Time validator is sent to, timestamp is added to the service message by time validator, it is to avoid the random modification time stamp of node
Phenomenon, in addition, the name of oneself and public key are carried out Hash operation by sending node obtains cryptographic Hash, and marked with the cryptographic Hash
The sending node is known, so that other nodes in block chain network are not aware that the name and public key of the sending node, it is to avoid should
Sending node is attacked, and improves the security of the sending node.
Brief description of the drawings
Fig. 1 is timestamp process flow figure provided in an embodiment of the present invention;
The timestamp process flow figure that Fig. 2 provides for another embodiment of the present invention;
Fig. 3 is the schematic diagram of adjacent block provided in an embodiment of the present invention;
Fig. 4 is the structure chart of timestamp processing unit provided in an embodiment of the present invention;
The structure chart for the timestamp processing unit that Fig. 5 provides for another embodiment of the present invention.
Embodiment
Fig. 1 is timestamp process flow figure provided in an embodiment of the present invention.The embodiment of the present invention is directed to some nodes
For the message for allowing other node priority treatments oneself to send, the timestamp carried in message may be arbitrarily changed, for example
By the corresponding time modification of the timestamp into less than the time for actually sending the message, so that other nodes can preferentially be located
The message is managed, causes to occur inequitable phenomenon in block chain network that there is provided timestamp processing method, this method specific steps
It is as follows:
The name of the sending node and public key are carried out Hash operation and obtain the first Hash by step S101, sending node
Value.
In the present embodiment, the node that some business information is sent to block chain network is designated as sending node, works as block
In chain network a certain sending node want to block chain network send some business information when, the sending node by the name of oneself and
Public key carries out Hash operation and obtains the first cryptographic Hash, for example, the name of the sending node is Alice, the public key of the sending node
It is Key_pwb, the sending node carries out Hash operation to Alice and Key_pwb and obtains the first cryptographic Hash H_name.
First cryptographic Hash is sent to time validator by step S102, the sending node, so that the time is true
Device is recognized to first cryptographic Hash addition very first time stamp, and uses the private key of the time validator to first cryptographic Hash
Signed with very first time stamp, obtain the first signing messages.
First cryptographic Hash H_name is sent to time validator by the sending node, in the present embodiment, block chain network
In widely distributed time validator, it is many for the fairness of path transmission time for ensureing each node arrival time validator
Individual time validator is evenly distributed in block chain network, and the public key of these time validators with private key is consistent.
When sometime validator receives the first cryptographic Hash H_name of sending node transmission, the time validator
The first cryptographic Hash H_name addition very first time stamps are given, very first time stamp can be that the time validator receives the first Hash
The time validator local timer time during value H_name, in addition, the time validator also uses the private key of oneself to first
Cryptographic Hash H_name and very first time stamp are signed, and obtain the first signing messages, and the first signing messages is broadcast into block
Each node in chain network.
Service message to be sent and first cryptographic Hash are carried out Hash operation and obtained by step S103, the sending node
To the second cryptographic Hash.
After the sending node receives the first signing messages, by the first cryptographic Hash H_name after signature and the very first time
Stamp record is local, and the sending node can regard the first cryptographic Hash H_name as the identification information of oneself, i.e. the first cryptographic Hash
Other nodes that H_name can be used in name and public key, i.e. block chain network instead of the sending node are not aware that the first Kazakhstan
That uncommon value H_name is represented is Alice, and the public key for also not knowing the sending node is Key_pwb, only knows the first cryptographic Hash H_
Name represents the sending node.
When the sending node needs to send certain service message, by service message to be sent and the first cryptographic Hash H_
Name carries out Hash operation and obtains the second cryptographic Hash H_001.
Step S104, the sending node are by the service message to be sent, first cryptographic Hash and described second
Cryptographic Hash is sent to the time validator, so that the time validator gives the service message to be sent, described first
Cryptographic Hash and second cryptographic Hash add the second timestamp, and use the private key of the time validator to described to be sent
Service message, first cryptographic Hash, second cryptographic Hash and second timestamp are signed, and obtain the second A.L.S.
Breath, and by the service message to be sent, first cryptographic Hash, second cryptographic Hash, second timestamp and institute
State the second signing messages and be sent to block chain network.
The sending node rises service message to be sent, the first cryptographic Hash H_name and the second cryptographic Hash H_001 mono-
Give time validator, time validator receives the service message of sending node transmission, the first cryptographic Hash H_name and the
During two cryptographic Hash H_001, the second timestamp is added to service message, the first cryptographic Hash H_name and the second cryptographic Hash H_001, and
During using the time validator private key of oneself to service message, the first cryptographic Hash H_name, the second cryptographic Hash H_001 and second
Between stab and signed, obtain the second signing messages, further, the time validator is by after the information and signature before signature
Information be broadcast to each node in block chain network, wherein, the information before signature includes:Service message, the first Hash
Information after value H_name, the second cryptographic Hash H_001 and the second timestamp, signature is the second signing messages.
Service message to be sent is sent to time validator by the embodiment of the present invention by sending node, is confirmed by the time
Device adds timestamp to the service message, it is to avoid the phenomenon of the random modification time stamp of node, in addition, sending node by oneself
Name and public key carry out Hash operation and obtain cryptographic Hash, and identify the sending node with the cryptographic Hash, so that block chain network
In other nodes be not aware that the name and public key of the sending node, it is to avoid the sending node is attacked, and improves the transmission
The security of node.
The timestamp process flow figure that Fig. 2 provides for another embodiment of the present invention.On the basis of above-described embodiment,
The timestamp processing method that the present embodiment is provided is comprised the following steps that:
Step S201, the sending node obtain the address of time validator from the seed node in the block chain network
List and public key, the address list include the address information of at least one time validator.
When the sending node adds block chain network as a new node, the new node is first and in block chain network
Seed node is communicated, optionally, and the seed node of new node selection communication is distance new node in block chain network
Recently, a call duration time most short seed node, the seed node is by multiple time validators in the block chain network
The public key of address list and time validator, wherein, the address list includes the address information of at least one time validator.Separately
Outside, when there is time validator to increase or delete, time validator needs the synchronous information for increasing or deleting all to the whole network
Seed node, seed node resynchronizes the information node all to the whole network, so which time all nodes of the whole network know
Validator increase, which time validator are deleted.
Step S202, the sending node enter to the address information of at least one time validator in the address list
Row major level sequence.
After the new node receives the address list of seed node transmission, at least one time in the address list
The address information of validator carries out priority ranking, and a kind of method of sequence is:The new node is according to the IP address and net of oneself
Network routing condition, by the address information of at least one time validator in the address list, according to each time validator away from
Time needed for being communicated from the far and near of the new node, the new node with each time validator etc. is ranked up, for example, apart from this
The highest priority of nearest, most short the time required to the communication time validator of new node, accordingly, the ground of the time validator
Location information makes number one in the address list.Then, the address list after sequence is stored in locally by the new node.
In the present embodiment, the address information corresponding time that sending node can select the address list to make number one
Validator, the i.e. sending node can select the time validator of highest priority, so that by first described in above-described embodiment
Cryptographic Hash is sent to the time validator of the highest priority, and by the service message to be sent, first Hash
Value and second cryptographic Hash are sent to the time validator of the highest priority.
The name of the sending node and public key are carried out Hash operation and obtain the first Hash by step S203, sending node
Value.
Step S203 is consistent with step S101, and here is omitted for detailed process.
First cryptographic Hash is sent to time validator by step S204, the sending node, so that the time is true
Device is recognized to first cryptographic Hash addition very first time stamp, and uses the private key of the time validator to first cryptographic Hash
Signed with very first time stamp, obtain the first signing messages.
The time validator is the corresponding time validator of address information of priority maximum in the address list.
Step S204 is consistent with step S102, and here is omitted for detailed process.
Service message to be sent and first cryptographic Hash are carried out Hash operation and obtained by step S205, the sending node
To the second cryptographic Hash.
Step S205 is consistent with step S103, and here is omitted for detailed process.
Step S206, the sending node are by the service message to be sent, first cryptographic Hash and described second
Cryptographic Hash is sent to the time validator, so that the time validator gives the service message to be sent, described first
Cryptographic Hash and second cryptographic Hash add the second timestamp, and use the private key of the time validator to described to be sent
Service message, first cryptographic Hash, second cryptographic Hash and second timestamp are signed, and obtain the second A.L.S.
Breath, and by the service message to be sent, first cryptographic Hash, second cryptographic Hash, second timestamp and institute
State the second signing messages and be sent to block chain network.
Step S206 is consistent with step S104, and here is omitted for detailed process.
Step S207, the sending node are verified according to the public key to second signing messages, to verify
State whether the second timestamp is tampered.
Specifically, other nodes in sending node or block chain network, when can use the public key pair of time validator
Between validator send the second signing messages verified, for example, sending node using time validator public key to second label
Name information is decrypted, and service message, the first cryptographic Hash, the second cryptographic Hash, the second timestamp after being decrypted further compare
Whether service message, the first cryptographic Hash, the second cryptographic Hash, the second timestamp after relatively decrypting directly send with the time validator
The service message to be sent, first cryptographic Hash, second cryptographic Hash, second timestamp come is consistent, such as
Fruit is consistent, and explanation is verified, if inconsistent, illustrates that checking does not pass through, second timestamp may be tampered.
The signing messages that the present embodiment is sent by node to time validator is verified, is added with proving time validator
Plus timestamp whether be tampered with, it is ensured that in block chain network any one node broadcasts to network any a piece of news all
There is accurate not revisable timestamp, improve the authenticity of timestamp.
In addition, on the basis of above-described embodiment, the whole network uses the bookkeeping methods of delay in block chain network, that is, often
The information for the time that the content of secondary book keeping operation is kept accounts twice before being necessary for or transaction, and in strict accordance with the timestamp with signature
The priority of time sorts to arrange, it is ensured that the uniqueness of All Activity, it is to avoid chaotic.As shown in figure 3, block N+2 content
For the Transaction Information in block N and block N+1 time intervals, 1, transaction 2 of for example merchandising, statement user, involved by transaction 3
Information.
Fig. 4 is the structure chart of timestamp processing unit provided in an embodiment of the present invention.Time provided in an embodiment of the present invention
Stamp processing unit can perform the handling process of timestamp processing method embodiment offer, and the timestamp processing unit is located at above-mentioned
In sending node described in embodiment, as shown in figure 4, timestamp processing unit 40 includes:Computing module 41 and sending module 42,
Wherein, computing module 41 is used to the name of the sending node and public key progress Hash operation obtaining the first cryptographic Hash;Send
Module 42 is used to first cryptographic Hash being sent to time validator, so that the time validator gives first cryptographic Hash
Very first time stamp is added, and first cryptographic Hash and very first time stamp are carried out using the private key of the time validator
Signature, obtains the first signing messages;Computing module 41 is additionally operable to service message to be sent and first cryptographic Hash progress
Hash operation obtains the second cryptographic Hash;Sending module 42 is additionally operable to the service message to be sent, first cryptographic Hash
The time validator is sent to second cryptographic Hash, so that the time validator disappears to the business to be sent
Breath, first cryptographic Hash and second cryptographic Hash add the second timestamp, and using the private key pair of the time validator
The service message to be sent, first cryptographic Hash, second cryptographic Hash and second timestamp are signed, and are obtained
To the second signing messages, and by the service message to be sent, first cryptographic Hash, second cryptographic Hash, described
Two timestamps and second signing messages are sent to block chain network.
Timestamp processing unit provided in an embodiment of the present invention can be specifically for performing the method reality that above-mentioned Fig. 1 is provided
Example is applied, here is omitted for concrete function.
Service message to be sent is sent to time validator by the embodiment of the present invention by sending node, is confirmed by the time
Device adds timestamp to the service message, it is to avoid the phenomenon of the random modification time stamp of node, in addition, sending node by oneself
Name and public key carry out Hash operation and obtain cryptographic Hash, and identify the sending node with the cryptographic Hash, so that block chain network
In other nodes be not aware that the name and public key of the sending node, it is to avoid the sending node is attacked, and improves the transmission
The security of node.
The structure chart for the timestamp processing unit that Fig. 5 provides for another embodiment of the present invention.On the basis of above-described embodiment
On, timestamp processing unit 40 also includes:Acquisition module 43, order module 44 and authentication module 45, wherein, acquisition module 43 is used
In address list and public key that time validator is obtained from the seed node in the block chain network, the address list includes
The address information of at least one time validator.Order module 44 is used to confirm at least one time in the address list
The address information of device carries out priority ranking.Optionally, the time validator is priority maximum in the address list
The corresponding time validator of address information.
Authentication module 45 is used to verify second signing messages according to the public key, to verify when described second
Between stab and whether be tampered.
Timestamp processing unit provided in an embodiment of the present invention can be specifically for performing the method reality that above-mentioned Fig. 2 is provided
Example is applied, here is omitted for concrete function.
The signing messages that the embodiment of the present invention is sent by node to time validator is verified, is confirmed with the proving time
Whether the timestamp of device addition is tampered with, it is ensured that any one node broadcasts disappears to any one of network in block chain network
Breath has accurate not revisable timestamp, improves the authenticity of timestamp.
In summary, service message to be sent is sent to time validator by the embodiment of the present invention by sending node,
Timestamp is added to the service message, it is to avoid the phenomenon of the random modification time stamp of node, by time validator in addition, sending section
The name of oneself and public key are carried out Hash operation and obtain cryptographic Hash by point, and identify the sending node with the cryptographic Hash, so that
Other nodes in block chain network are not aware that the name and public key of the sending node, it is to avoid the sending node is attacked, and is carried
The high security of the sending node;The signing messages sent by node to time validator is verified, with the proving time
Validator addition timestamp whether be tampered with, it is ensured that in block chain network any one node broadcasts to network any one
Bar message has accurate not revisable timestamp, improves the authenticity of timestamp.
, can be by it in several embodiments provided by the present invention, it should be understood that disclosed apparatus and method
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical of device or unit by some interfaces
Letter connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each
The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
Can be with the medium of store program codes.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module
Division progress for example, in practical application, can distribute complete by different functional modules by above-mentioned functions as needed
Into the internal structure of device being divided into different functional modules, to complete all or part of function described above.On
The specific work process of the device of description is stated, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
1. a kind of timestamp processing method, it is characterised in that including:
The name of the sending node and public key are carried out Hash operation and obtain the first cryptographic Hash by sending node;
First cryptographic Hash is sent to time validator by the sending node, so that the time validator gives described first
Cryptographic Hash addition very first time stamp, and the private key of the time validator is used to first cryptographic Hash and the very first time
Stamp is signed, and obtains the first signing messages;
Service message to be sent and first cryptographic Hash are carried out Hash operation and obtain the second cryptographic Hash by the sending node;
The service message to be sent, first cryptographic Hash and second cryptographic Hash are sent to institute by the sending node
Time validator is stated, so that the time validator is to the service message to be sent, first cryptographic Hash and described the
Two cryptographic Hash add the second timestamp, and using the time validator private key to the service message to be sent, described
First cryptographic Hash, second cryptographic Hash and second timestamp are signed, and obtain the second signing messages, and treat described
The service message of transmission, first cryptographic Hash, second cryptographic Hash, second timestamp and second signing messages
It is sent to block chain network.
2. according to the method described in claim 1, it is characterised in that the sending node is by the name and public affairs of the sending node
Key progress Hash operation is obtained before the first cryptographic Hash, in addition to:
The sending node obtains the address list and public key of time validator, institute from the seed node in the block chain network
Stating address list includes the address information of at least one time validator.
3. method according to claim 2, it is characterised in that the sending node is from the seed in the block chain network
Node is obtained after the address list and public key of time validator, in addition to:
The sending node carries out priority ranking to the address information of at least one time validator in the address list.
4. method according to claim 3, it is characterised in that the time validator is priority in the address list
The maximum corresponding time validator of address information.
5. method according to claim 4, it is characterised in that also include:
The sending node verifies according to the public key to second signing messages, to verify that second timestamp is
It is no to be tampered.
6. a kind of timestamp processing unit, it is characterised in that the timestamp processing unit is located at sending node, including:
Computing module, the first cryptographic Hash is obtained for the name of the sending node and public key to be carried out into Hash operation;
Sending module, for first cryptographic Hash to be sent into time validator, so that the time validator is to described the
One cryptographic Hash addition very first time stamp, and when using the private key of the time validator to first cryptographic Hash and described first
Between stab and signed, obtain the first signing messages;
The computing module is additionally operable to service message to be sent and first cryptographic Hash progress Hash operation obtaining second
Cryptographic Hash;
The sending module is additionally operable to send out the service message to be sent, first cryptographic Hash and second cryptographic Hash
Give the time validator so that the time validator to the service message to be sent, first cryptographic Hash and
Second cryptographic Hash adds the second timestamp, and the business to be sent is disappeared using the private key of the time validator
Breath, first cryptographic Hash, second cryptographic Hash and second timestamp are signed, and obtain the second signing messages, and
By the service message to be sent, first cryptographic Hash, second cryptographic Hash, second timestamp and described second
Signing messages is sent to block chain network.
7. timestamp processing unit according to claim 6, it is characterised in that also include:
Acquisition module, address list and public key for obtaining time validator from the seed node in the block chain network,
The address list includes the address information of at least one time validator.
8. timestamp processing unit according to claim 7, it is characterised in that also include:
Order module, priority row is carried out for the address information at least one time validator in the address list
Sequence.
9. timestamp processing unit according to claim 8, it is characterised in that the time validator is the address column
The maximum corresponding time validator of address information of priority in table.
10. timestamp processing unit according to claim 9, it is characterised in that also include:
Authentication module, for being verified according to the public key to second signing messages, to verify second timestamp
Whether it is tampered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710503163.5A CN107147501B (en) | 2017-06-27 | 2017-06-27 | Timestamp processing method and processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710503163.5A CN107147501B (en) | 2017-06-27 | 2017-06-27 | Timestamp processing method and processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107147501A true CN107147501A (en) | 2017-09-08 |
CN107147501B CN107147501B (en) | 2019-08-06 |
Family
ID=59785711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710503163.5A Active CN107147501B (en) | 2017-06-27 | 2017-06-27 | Timestamp processing method and processing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107147501B (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108512652A (en) * | 2018-04-02 | 2018-09-07 | 陆雷钦 | Decentralization common recognition method, system and block catenary system based on time-proven |
CN108833515A (en) * | 2018-06-05 | 2018-11-16 | 上海和数软件有限公司 | Block chain node optimization method, device and computer readable storage medium |
CN108877290A (en) * | 2018-08-03 | 2018-11-23 | 中国联合网络通信集团有限公司 | Parking stall dispatching method, device, equipment and storage medium |
CN109102287A (en) * | 2018-08-13 | 2018-12-28 | 中国联合网络通信集团有限公司 | Block chain bookkeeping methods, device, equipment and storage medium |
CN109150861A (en) * | 2018-04-25 | 2019-01-04 | 泰山·约克·维纳斯基 | block chain network communication system |
CN109194481A (en) * | 2018-07-24 | 2019-01-11 | 中国联合网络通信集团有限公司 | Block chain real name identification method, device, equipment and storage medium |
CN109246084A (en) * | 2018-08-13 | 2019-01-18 | 中国联合网络通信集团有限公司 | New block generation method, device, electronic equipment and storage medium |
CN109450659A (en) * | 2018-12-25 | 2019-03-08 | 杭州复杂美科技有限公司 | Block delayed broadcast method, equipment and storage medium |
CN109522739A (en) * | 2018-10-09 | 2019-03-26 | 北京医拍智能科技有限公司 | A kind of attack resistance processing method and processing device based on block chain hash algorithm |
CN109660546A (en) * | 2018-12-27 | 2019-04-19 | 泰华智慧产业集团股份有限公司 | The method that API gateway based on NetflixZuul realizes authentication |
CN109787867A (en) * | 2019-02-28 | 2019-05-21 | 矩阵元技术(深圳)有限公司 | Block generation method, device, computer equipment and storage medium |
TWI676385B (en) * | 2018-08-31 | 2019-11-01 | 中華電信股份有限公司 | System of timestamp signature and method for using timestamp signature |
CN110505065A (en) * | 2019-08-21 | 2019-11-26 | 腾讯科技(深圳)有限公司 | A kind of trusted timestamp adding method, device and storage medium |
CN110557215A (en) * | 2018-06-03 | 2019-12-10 | 涂先锋 | Block chain-based distributed time authentication method and system |
CN111131550A (en) * | 2019-12-30 | 2020-05-08 | 江苏大周基业智能科技有限公司 | IP address calculation method in local area network based on cryptographic algorithm |
CN111260436A (en) * | 2020-01-10 | 2020-06-09 | 中国联合网络通信集团有限公司 | Method and device for screening purchasers |
CN113282662A (en) * | 2021-06-03 | 2021-08-20 | 广东辰宜信息科技有限公司 | Block information processing method, device, equipment and medium |
CN114329552A (en) * | 2021-12-28 | 2022-04-12 | 中国联合网络通信集团有限公司 | Reservation method, block chain system, electronic device and computer readable medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1547344A (en) * | 2003-12-17 | 2004-11-17 | 上海市高级人民法院 | Method of applying timestamp in remote signature system |
CN103152182A (en) * | 2013-03-08 | 2013-06-12 | 新疆君盾信息技术有限公司 | Method for authenticating and validating electronic data |
CN105763506A (en) * | 2014-12-16 | 2016-07-13 | 航天信息股份有限公司 | Grain information management method and system |
WO2016149047A1 (en) * | 2015-03-13 | 2016-09-22 | United States Postal Service | Methods and systems for data authentication services |
US20160283920A1 (en) * | 2015-03-28 | 2016-09-29 | Justin Fisher | Authentication and verification of digital data utilizing blockchain technology |
US20160371509A1 (en) * | 2013-07-06 | 2016-12-22 | Newvoicemedia, Ltd. | System and methods for tamper proof interaction recording and timestamping |
CN106504008A (en) * | 2016-10-24 | 2017-03-15 | 中山大学 | A kind of fair contract signature method based on block chain |
-
2017
- 2017-06-27 CN CN201710503163.5A patent/CN107147501B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1547344A (en) * | 2003-12-17 | 2004-11-17 | 上海市高级人民法院 | Method of applying timestamp in remote signature system |
CN103152182A (en) * | 2013-03-08 | 2013-06-12 | 新疆君盾信息技术有限公司 | Method for authenticating and validating electronic data |
US20160371509A1 (en) * | 2013-07-06 | 2016-12-22 | Newvoicemedia, Ltd. | System and methods for tamper proof interaction recording and timestamping |
CN105763506A (en) * | 2014-12-16 | 2016-07-13 | 航天信息股份有限公司 | Grain information management method and system |
WO2016149047A1 (en) * | 2015-03-13 | 2016-09-22 | United States Postal Service | Methods and systems for data authentication services |
US20160283920A1 (en) * | 2015-03-28 | 2016-09-29 | Justin Fisher | Authentication and verification of digital data utilizing blockchain technology |
CN106504008A (en) * | 2016-10-24 | 2017-03-15 | 中山大学 | A kind of fair contract signature method based on block chain |
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108512652A (en) * | 2018-04-02 | 2018-09-07 | 陆雷钦 | Decentralization common recognition method, system and block catenary system based on time-proven |
CN109150861B (en) * | 2018-04-25 | 2021-03-30 | 泰山·约克·维纳斯基 | Block chain network communication system |
CN109150861A (en) * | 2018-04-25 | 2019-01-04 | 泰山·约克·维纳斯基 | block chain network communication system |
CN110557215A (en) * | 2018-06-03 | 2019-12-10 | 涂先锋 | Block chain-based distributed time authentication method and system |
CN108833515B (en) * | 2018-06-05 | 2021-12-28 | 上海和数软件有限公司 | Block chain node optimization method and device and computer readable storage medium |
CN108833515A (en) * | 2018-06-05 | 2018-11-16 | 上海和数软件有限公司 | Block chain node optimization method, device and computer readable storage medium |
CN109194481A (en) * | 2018-07-24 | 2019-01-11 | 中国联合网络通信集团有限公司 | Block chain real name identification method, device, equipment and storage medium |
CN109194481B (en) * | 2018-07-24 | 2021-07-27 | 中国联合网络通信集团有限公司 | Block chain real-name authentication method, device, equipment and storage medium |
CN108877290A (en) * | 2018-08-03 | 2018-11-23 | 中国联合网络通信集团有限公司 | Parking stall dispatching method, device, equipment and storage medium |
CN109102287A (en) * | 2018-08-13 | 2018-12-28 | 中国联合网络通信集团有限公司 | Block chain bookkeeping methods, device, equipment and storage medium |
CN109246084B (en) * | 2018-08-13 | 2021-07-27 | 中国联合网络通信集团有限公司 | New block generation method and device, electronic equipment and storage medium |
CN109246084A (en) * | 2018-08-13 | 2019-01-18 | 中国联合网络通信集团有限公司 | New block generation method, device, electronic equipment and storage medium |
TWI676385B (en) * | 2018-08-31 | 2019-11-01 | 中華電信股份有限公司 | System of timestamp signature and method for using timestamp signature |
CN109522739A (en) * | 2018-10-09 | 2019-03-26 | 北京医拍智能科技有限公司 | A kind of attack resistance processing method and processing device based on block chain hash algorithm |
CN109522739B (en) * | 2018-10-09 | 2020-11-20 | 北京医拍智能科技有限公司 | Anti-attack processing method and device based on block chain hash algorithm |
CN109450659A (en) * | 2018-12-25 | 2019-03-08 | 杭州复杂美科技有限公司 | Block delayed broadcast method, equipment and storage medium |
CN109450659B (en) * | 2018-12-25 | 2020-10-23 | 杭州复杂美科技有限公司 | Block delay broadcasting method, equipment and storage medium |
CN109660546B (en) * | 2018-12-27 | 2021-05-07 | 泰华智慧产业集团股份有限公司 | API gateway authentication realization method based on NetflixZuul |
CN109660546A (en) * | 2018-12-27 | 2019-04-19 | 泰华智慧产业集团股份有限公司 | The method that API gateway based on NetflixZuul realizes authentication |
CN109787867A (en) * | 2019-02-28 | 2019-05-21 | 矩阵元技术(深圳)有限公司 | Block generation method, device, computer equipment and storage medium |
CN110505065B (en) * | 2019-08-21 | 2021-07-20 | 腾讯科技(深圳)有限公司 | Trusted timestamp adding method and device and storage medium |
CN110505065A (en) * | 2019-08-21 | 2019-11-26 | 腾讯科技(深圳)有限公司 | A kind of trusted timestamp adding method, device and storage medium |
CN111131550A (en) * | 2019-12-30 | 2020-05-08 | 江苏大周基业智能科技有限公司 | IP address calculation method in local area network based on cryptographic algorithm |
CN111131550B (en) * | 2019-12-30 | 2022-07-15 | 江苏大周基业智能科技有限公司 | IP address calculation method in local area network based on cryptographic algorithm |
CN111260436A (en) * | 2020-01-10 | 2020-06-09 | 中国联合网络通信集团有限公司 | Method and device for screening purchasers |
CN113282662A (en) * | 2021-06-03 | 2021-08-20 | 广东辰宜信息科技有限公司 | Block information processing method, device, equipment and medium |
CN113282662B (en) * | 2021-06-03 | 2023-11-03 | 广东辰宜信息科技有限公司 | Block information processing method, device, equipment and medium |
CN114329552A (en) * | 2021-12-28 | 2022-04-12 | 中国联合网络通信集团有限公司 | Reservation method, block chain system, electronic device and computer readable medium |
CN114329552B (en) * | 2021-12-28 | 2023-01-17 | 中国联合网络通信集团有限公司 | Reservation method, block chain system, electronic device and computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN107147501B (en) | 2019-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107147501A (en) | Timestamp processing method and processing device | |
CN109936457B (en) | Block chain multi-party witness method, device, equipment and computer readable storage medium | |
CN108470265B (en) | Multi-warehouse data management method based on block chain and related equipment | |
CN109522330B (en) | Cloud platform data processing method, device, equipment and medium based on block chain | |
CN107332826B (en) | The communication means and device of block chain agent node | |
CN111556120B (en) | Data processing method and device based on block chain, storage medium and equipment | |
CN108734028B (en) | Data management method based on block chain, block chain link point and storage medium | |
EP4002181A1 (en) | A consensus method and framework for a blockchain system | |
CN109902071A (en) | Business diary storage method, system, device and equipment | |
CN107294729A (en) | Communication means and device in block chain between different nodes | |
CN107396360A (en) | Block verification method and device | |
CN108810119A (en) | block chain processing method, device and block chain node | |
CN107480990A (en) | Block chain bookkeeping methods and device | |
CN107171810A (en) | The verification method and device of block chain | |
CN107231239A (en) | Create generation block method for anti-counterfeit and device | |
CN110096551A (en) | Credit data storage method, device, equipment and medium based on block chain | |
CN102594806B (en) | Verification method and advertisement releasing server | |
CN106664308B (en) | Device authentication prior to enrollment | |
CN108769142B (en) | Transaction information processing method and block generation node | |
CN109521956A (en) | A kind of cloud storage method, apparatus, equipment and storage medium based on block chain | |
WO2021068508A1 (en) | Asset management method, blockchain platform, device, and storage medium | |
CN111292190A (en) | Transaction generation method, block creation method, related device and equipment | |
CN110351276A (en) | Data processing method, equipment and computer readable storage medium | |
CN108880820A (en) | Code administration method and apparatus | |
CN110059136A (en) | Information storage means, equipment and storage medium based on domain name block chain |
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 |