Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2021-05-04
北京万物智链科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When different servers process cross-chain transactions and intra-chain transactions, they will decompose the transaction, and write the timestamp processed by the server in the header of the decomposed transaction. This timestamp can be used alone to determine the blockchain at that time. The basis of the network state, and then trace the source of the resource processor block chain based on the corresponding block chain network state, but there may be inconsistencies in time between different server devices, and when the server uses the master-slave server for division of labor and cooperation, and the server passes In the case where the proxy gateway interacts with the outside world, this cross-chain communication platform with a master server, a slave server, and a proxy gateway will amplify the negative effects of inconsistent timestamps, resulting in a significant drop in the accuracy of transaction traceability

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for ensuring consistency of blockchain transaction timestamps
  • Method and system for ensuring consistency of blockchain transaction timestamps
  • Method and system for ensuring consistency of blockchain transaction timestamps

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and system for ensuring consistency of blockchain transaction timestamps. The method comprises the steps: enabling a server to carry out transaction decomposition based on a transaction request, updating and writing a timestamp processed by equipment and a self-increasing sequence according to a first setting mode in a message header of a transaction output request obtained after the decomposition, wherein the self-increasing sequence is used for distinguishing different resources processed by the equipment in the same timestamp; the initial value of the timestamp and the initial value of the self-increasing sequence are set to be zero; and the first setting mode comprises the steps that if the timestamp is earlier than or equal to the physical clock time of the equipment, taking the physical clock time as the timestamp, and taking zero as the self-increasing sequence value, and if the timestamp is later than the physical clock time of the equipment, adding one to the self-increasing sequence value. Through linkage of a plurality of servers, each piece of core equipment in the cross-chain communication platform keeps a synchronous timestamp, and the timestamp problem caused by differences of physical clocks is avoided.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a method and system for ensuring consistency of block chain transaction time stamps. Background technique [0002] In order to achieve cross-chain transactions, the nodes in the entire blockchain network are artificially divided into multiple independent alliance chain systems, that is, consensus consensus blockchain or consensus single chain, in a high-load, high-intensity, large-capacity, In the scalable alliance chain system, the original decentralization and security of the consensus blockchain will not be weakened. The consensus single chain reaches consensus through the consensus algorithm, and does not interact with other consensus single chains to form a separate closed loop. Each consensus single chain is responsible for its own part of the transaction and processes its own core data. [0003] The overall architecture of the cross-chain communication platform that ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q40/04G06F21/64G06F16/27G06F16/23H04L29/06H04L29/08
CPCG06F21/64G06Q40/04G06F16/2365G06F16/27H04L67/10H04L69/22
Inventor 陈昱晓张朝栋
Owner 北京万物智链科技有限公司