Method and system for ensuring consistency of blockchain transaction timestamps
A transaction time and time stamp technology, applied in the blockchain field, can solve the problems of decreased transaction traceability, inconsistent time speed, enlarged negative effect of time stamp, etc., to avoid the problem of time stamp.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0050] In the first embodiment of the present invention, a method for ensuring consistent blockchain transaction timestamps includes the following specific steps:
[0051] The server decomposes the transaction based on the transaction request, updates and writes the time stamp processed by the device and the auto-increment sequence in the message header of the transaction output request obtained after the decomposition according to the first setting method, and the self-increment sequence is used for Distinguish between different resources handled by the device within the same timestamp;
[0052] Such as figure 1 As shown, the first setting method includes:
[0053] S1: Set the initial value of the timestamp and the initial value of the auto-increment sequence to be zero;
[0054] S2: If the time stamp is earlier than or equal to the physical clock time of the device, the time stamp is taken as the physical clock time, and the auto-increment sequence value is taken as zero; ...
no. 3 example
[0096] The third embodiment of the present invention, this embodiment is based on the above embodiments, taking the processing of cross-chain transactions as an example, combined with the attached image 3 An application example of the present invention is introduced.
[0097]This embodiment limits the header format of cross-chain transaction requests, overcomes the defects of distributed clocks, and ensures the uniqueness of cross-chain transactions and the accuracy of transaction sharding.
[0098] For the format requirements of the transaction input of a cross-chain transaction and the sharding field on the transaction input, the XTX format of the message header is used to make a unified expression, indicating the field format used for sharding in the cross-chain input and output. The XTX format needs to use a 64-bit integer, combined with the characteristics of the organizational structure of the alliance chain, its format is as follows image 3 shown. The upper 32 bits ...
no. 4 example
[0109] In the fourth embodiment of the present invention, the flow of the method for ensuring consistent blockchain transaction time stamps in this embodiment is the same as that in the first, second or third embodiments, the difference is that in terms of engineering implementation, this embodiment can add necessary It can be implemented by means of a common hardware platform, of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the method of the present invention can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and include several instructions to make a A station device (which may be a network device such as a base station) executes the method described in the embodiment of the present invention.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


