IP Library Granted Patent US 12,652,180
Granted Patent B2
US 12,652,180 · App. 18/859,055 · Granted Jun 9, 2026

Method, apparatus, device, and storage medium for data processing

Inventor: Xinying Yang (Beijing, CN)
Assignee: Douyin Vision Co., Ltd.
H04L9/3297G06F16/2322H04L9/50
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,652,180
App. No.
18/859,055
Filed
Oct 22, 2024
Granted
Jun 9, 2026
Kind
B2
Art Unit
2431
USPC
713/178
Abstract

The disclosure provides a method, apparatus, a device, and a storage medium for data processing. The method may: in response to a time query request for target data, determining a target upload time of the target data; obtaining a first time-assigned timestamp that is assigned by a time stamping end to first relay data after a relay database uploads the first relay data to the time stamping end for a first time; obtaining a second time-assigned timestamp indicated by last time-assigned data received from the time stamping end before the relay database sends target return data; and determining a trusted time domain of the target data based on the first time-assigned timestamp and the second time-assigned timestamp.

Claims (88)

1 . A method of data processing, comprising:

in response to a time query request for target data, determining a target upload time of the target data, the target data being any one of a plurality of pieces of transaction data that are uploaded by a client to a blockchain;

obtaining, based on a time sequence in which respective pieces of transaction data are uploaded, a first time-assigned timestamp that is assigned by a time stamping end to first relay data after a relay database uploads the first relay data to the time stamping end for a first time, the first relay data being uploaded by the relay database after receiving first upload data uploaded by the client, the first upload data being data sent by the client to the relay database for a first time after the target data is uploaded to the blockchain;

obtaining, based on first reception times of respective pieces of return data received from the relay database and the target upload time, a second time-assigned timestamp indicated by last time-assigned data received from the time stamping end before the relay database sends target return data, the target return data being data last received by the client from the relay database before the target upload time; and

determining a trusted time domain of the target data based on the first time-assigned timestamp and the second time-assigned timestamp,

wherein after determining a trusted time domain of the target data based on the first time-assigned timestamp and the second time-assigned timestamp, the method further comprises:

presenting, based on the trusted time domain, a time query result corresponding to the time query request for a user,

the time query result comprising one or more of the following: a preceding trusted time point, a subsequent trusted time point, and a trusted period.

2 . The method of claim 1 , wherein obtaining, based on a time sequence in which respective pieces of transaction data are uploaded, a first time-assigned timestamp that is assigned by a time stamping end to first relay data after a relay database uploads the first relay data to the time stamping end for a first time, the first relay data being uploaded by the relay database after receiving first upload data uploaded by the client comprises:

determining, for a plurality of pieces of transaction data that are uploaded to the blockchain, a time sequence in which respective pieces of transaction data among the plurality of pieces of transaction data based on upload times of respective pieces of transaction data;

determining, based on the time sequence in which respective pieces of transaction data are uploaded, the first upload data from the plurality of pieces of transaction data that is first sent by the client to the relay database after the target data is uploaded to the blockchain; and

determining, for a plurality of pieces of relay data stored in the relay database, first relay data that is first uploaded to the time stamping end after receiving the first upload data, based on a first sending time when the relay database sends respective pieces of relay data to the time stamping end, and determining a first time-assigned timestamp that is assigned by the time stamping end to the first relay data, the plurality of pieces of relay data comprising relay data obtained after processing of the first upload data by the relay database.

3 . The method of claim 2 , wherein determining first relay data that is first uploaded to the time stamping end after receiving the first upload data, based on a first sending time when the relay database sends respective pieces of relay data to the time stamping end, and determining a first time-assigned timestamp that is assigned by the time stamping end to the first relay data comprises:

obtaining a second reception time when the relay database receives the first upload data and the first sending time corresponding to a time when the relay database sends respective pieces of stored relay data to the time stamping end;

determining, based on respective ones of the obtained first sending times and second reception time, a first target sending time in at least one first sending time after the second reception time, a time difference between the first target sending time and the second reception time being the smallest;

determining, from the plurality of pieces of relay data, first relay data uploaded to the time stamping end at the first target sending time; and

obtaining the first time-assigned timestamp that is assigned by the time stamping end to the first relay data.

4 . The method of claim 1 , wherein obtaining, based on first reception times of respective pieces of return data received from the relay database and the target upload time, a second time-assigned timestamp indicated by last time-assigned data received from the time stamping end before the relay database sends target return data comprises:

obtaining first reception times of respective pieces of return data received from the relay database, the return data being data obtained by the relay database through the relay data and a time-assigned timestamp corresponding to the relay data, the time-assigned timestamp being time data that is obtained from time-assigned data corresponding to the relay data and is received from the time stamping end;

determining, based on respective first reception times and the target upload time, the target return data that is last received by the client from the relay database before the target upload time;

obtaining third reception times corresponding to times when the relay database receives respective pieces of time-assigned data returned by the time stamping end, and a second target sending time when the relay database sends the target return data, the time-assigned data being data obtained by the time stamping end based on the received relay data and a time-assigned timestamp that is time-assigned to the relay data; and

determining, based on respective ones of the obtained third reception times and second target sending time, a last time-assigned data received before the relay database sends the target return data, and a second time-assigned timestamp comprised in the last time-assigned data.

5 . The method of claim 4 , wherein determining, based on respective ones of the obtained third reception times and second target sending time, a last time-assigned data received before the relay database sends the target return data, and a second time-assigned timestamp comprised in the last time-assigned data comprises:

determining, based on respective ones of the obtained third reception times and second target sending time, a third target reception time in at least one third reception time before the second target sending time, a time difference between the third target reception time and the second target sending time being the smallest;

determining time-assigned data sent by the time stamping end and received by the relay database at the third target reception time as the last time-assigned data received; and

determining the second time-assigned timestamp comprised in the last time-assigned data.

6 . The method of claim 1 , wherein the method further comprises:

receiving transaction data uploaded by a user;

performing blockchain upload processing on the transaction data to obtain a plurality of pieces of transaction data that is uploaded to the blockchain;

uploading transaction data that performs blockchain uploading to the relay database, the relay database being capable of converting the received transaction data into corresponding relay data and writing the relay data into the relay database, and forwarding the relay data to the time stamping end, the time stamping end being capable of time-assigning to the received relay data to obtain a time-assigned timestamp, and returning time-assigned data obtained through the relay data and the corresponding time-assigned timestamp to the relay database, and after receiving the time-assigned data returned by the time stamping end, the relay database being capable of obtaining return data based on the received time-assigned data and the corresponding relay data, writing the return data into the relay database, and returning the obtained return data to the client; and

receiving the return data returned by the relay database.

7 . The method of claim 6 , wherein after receiving the return data returned by the relay database, the method further comprises:

updating, based on the received return data, transaction data corresponding to the return data.

8 . An electronic device comprising: a processor, a memory, and a bus, the memory storing machine-readable instructions executable by the processor, when the electronic device is running, the processor communicating with the memory through the bus, and the machine-readable instructions, when executed by the processor, performing acts comprising:

in response to a time query request for target data, determining a target upload time of the target data, the target data being any one of a plurality of pieces of transaction data that are uploaded by a client to a blockchain;

obtaining, based on a time sequence in which respective pieces of transaction data are uploaded, a first assigned timestamp that is assigned by a time stamping end to first relay data after a relay database uploads the first relay data to the time stamping end for a first time, the first relay data being uploaded by the relay database after receiving first upload data uploaded by the client, the first upload data being data sent by the client to the relay database for a first time after the target data is uploaded to the blockchain;

obtaining, based on first reception times of respective pieces of return data received from the relay database and the target upload time, a second assigned timestamp indicated by last assigned data received from the time stamping end before the relay database sends target return data, the target return data being data last received by the client from the relay database before the target upload time; and

determining a trusted time domain of the target data based on the first assigned timestamp and the second assigned timestamp,

wherein after determining a trusted time domain of the target data based on the first time-assigned timestamp and the second time-assigned timestamp, the processor performing further acts comprising:

presenting, based on the trusted time domain, a time query result corresponding to the time query request for a user,

the time query result comprising one or more of the following: a preceding trusted time point, a subsequent trusted time point, and a trusted period.

9 . A non-transitory computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, performing acts performing:

in response to a time query request for target data, determining a target upload time of the target data, the target data being any one of a plurality of pieces of transaction data that are uploaded by a client to a blockchain;

obtaining, based on a time sequence in which respective pieces of transaction data are uploaded, a first assigned timestamp that is assigned by a time stamping end to first relay data after a relay database uploads the first relay data to the time stamping end for a first time, the first relay data being uploaded by the relay database after receiving first upload data uploaded by the client, the first upload data being data sent by the client to the relay database for a first time after the target data is uploaded to the blockchain;

obtaining, based on first reception times of respective pieces of return data received from the relay database and the target upload time, a second assigned timestamp indicated by last assigned data received from the time stamping end before the relay database sends target return data, the target return data being data last received by the client from the relay database before the target upload time;

determining a trusted time domain of the target data based on the first assigned timestamp and the second assigned timestamp; and

after determining a trusted time domain of the target data based on the first time-assigned timestamp and the second time-assigned timestamp,

presenting, based on the trusted time domain, a time query result corresponding to the time query request for a user,

the time query result comprising one or more of the following: a preceding trusted time point, a subsequent trusted time point, and a trusted period.

10 . The electronic device of claim 8 , wherein obtaining, based on a time sequence in which respective pieces of transaction data are uploaded, a first assigned timestamp that is assigned by a time stamping end to first relay data after a relay database uploads the first relay data to the time stamping end for a first time, the first relay data being uploaded by the relay database after receiving first upload data uploaded by the client comprises:

determining, for a plurality of pieces of transaction data that are uploaded to the blockchain, a time sequence in which respective pieces of transaction data among the plurality of pieces of transaction data based on upload times of respective pieces of transaction data;

determining, based on the time sequence in which respective pieces of transaction data are uploaded, the first upload data from the plurality of pieces of transaction data that is first sent by the client to the relay database after the target data is uploaded to the blockchain; and

determining, for a plurality of pieces of relay data stored in the relay database, first relay data that is first uploaded to the time stamping end after receiving the first upload data, based on a first sending time when the relay database sends respective pieces of relay data to the time stamping end, and determining a first assigned timestamp that is assigned by the time stamping end to the first relay data, the plurality of pieces of relay data comprising relay data obtained after processing of the first upload data by the relay database.

11 . The electronic device of claim 10 , wherein determining first relay data that is first uploaded to the time stamping end after receiving the first upload data, based on a first sending time when the relay database sends respective pieces of relay data to the time stamping end, and determining a first assigned timestamp that is assigned by the time stamping end to the first relay data comprises:

obtaining a second reception time when the relay database receives the first upload data and the first sending time corresponding to a time when the relay database sends respective pieces of stored relay data to the time stamping end;

determining, based on respective ones of the obtained first sending times and second reception time, a first target sending time in at least one first sending time after the second reception time, a time difference between the first target sending time and the second reception time being the smallest;

determining, from the plurality of pieces of relay data, first relay data uploaded to the time stamping end at the first target sending time; and

obtaining the first assigned timestamp that is assigned by the time stamping end to the first relay data.

12 . The electronic device of claim 8 , wherein obtaining, based on first reception times of respective pieces of return data received from the relay database and the target upload time, a second assigned timestamp indicated by last assigned data received from the time stamping end before the relay database sends target return data comprises:

obtaining first reception times of respective pieces of return data received from the relay database, the return data being data obtained by the relay database through the relay data and an assigned timestamp corresponding to the relay data, the assigned timestamp being time data that is obtained from assigned data corresponding to the relay data and is received from the time stamping end;

determining, based on respective first reception times and the target upload time, the target return data that is last received by the client from the relay database before the target upload time;

obtaining third reception times corresponding to times when the relay database receives respective pieces of assigned data returned by the time stamping end, and a second target sending time when the relay database sends the target return data, the assigned data being data obtained by the time stamping end based on the received relay data and a timestamp that is time-assigned to the relay data; and

determining, based on respective ones of the obtained third reception times and second target sending time, a last assigned data received before the relay database sends the target return data, and a second assigned timestamp comprised in the last assigned data.

13 . The electronic device of claim 12 , wherein determining, based on respective ones of the obtained third reception times and second target sending time, a last assigned data received before the relay database sends the target return data, and a second assigned timestamp comprised in the last assigned data comprises:

determining, based on respective ones of the obtained third reception times and second target sending time, a third target reception time in at least one third reception time before the second target sending time, a time difference between the third target reception time and the second target sending time being the smallest;

determining assigned data sent by the time stamping end and received by the relay database at the third target reception time as the last assigned data received; and

determining the second assigned timestamp comprised in the last assigned data.

14 . The electronic device of claim 8 , wherein the method further comprises:

receiving transaction data uploaded by a user;

performing blockchain upload processing on the transaction data to obtain a plurality of pieces of transaction data that is uploaded to the blockchain;

uploading transaction data that performs blockchain uploading to the relay database, the relay database being capable of converting the received transaction data into corresponding relay data and writing the relay data into the relay database, and forwarding the relay data to the time stamping end, the time stamping end being capable of time-assigning to the received relay data to obtain a assigned timestamp, and returning assigned data obtained through the relay data and the corresponding assigned timestamp to the relay database, and after receiving the assigned data returned by the time stamping end, the relay database being capable of obtaining return data based on the received assigned data and the corresponding relay data, writing the return data into the relay database, and returning the obtained return data to the client; and

receiving the return data returned by the relay database.

15 . The electronic device of claim 14 , wherein after receiving the return data returned by the relay database, the method further comprises:

updating, based on the received return data, transaction data corresponding to the return data.

16 . The non-transitory computer-readable storage medium of claim 9 , wherein obtaining, based on a time sequence in which respective pieces of transaction data are uploaded, a first assigned timestamp that is assigned by a time stamping end to first relay data after a relay database uploads the first relay data to the time stamping end for a first time, the first relay data being uploaded by the relay database after receiving first upload data uploaded by the client comprises:

determining, for a plurality of pieces of transaction data that are uploaded to the blockchain, a time sequence in which respective pieces of transaction data among the plurality of pieces of transaction data based on upload times of respective pieces of transaction data;

determining, based on the time sequence in which respective pieces of transaction data are uploaded, the first upload data from the plurality of pieces of transaction data that is first sent by the client to the relay database after the target data is uploaded to the blockchain; and

determining, for a plurality of pieces of relay data stored in the relay database, first relay data that is first uploaded to the time stamping end after receiving the first upload data, based on a first sending time when the relay database sends respective pieces of relay data to the time stamping end, and determining a first assigned timestamp that is assigned by the time stamping end to the first relay data, the plurality of pieces of relay data comprising relay data obtained after processing of the first upload data by the relay database.

17 . The non-transitory computer-readable storage medium of claim 16 , wherein determining first relay data that is first uploaded to the time stamping end after receiving the first upload data, based on a first sending time when the relay database sends respective pieces of relay data to the time stamping end, and determining a first assigned timestamp that is assigned by the time stamping end to the first relay data comprises:

obtaining a second reception time when the relay database receives the first upload data and the first sending time corresponding to a time when the relay database sends respective pieces of stored relay data to the time stamping end;

determining, based on respective ones of the obtained first sending times and second reception time, a first target sending time in at least one first sending time after the second reception time, a time difference between the first target sending time and the second reception time being the smallest;

determining, from the plurality of pieces of relay data, first relay data uploaded to the time stamping end at the first target sending time; and

obtaining the first assigned timestamp that is assigned by the time stamping end to the first relay data.

18 . The non-transitory computer-readable storage medium of claim 9 , wherein obtaining, based on first reception times of respective pieces of return data received from the relay database and the target upload time, a second assigned timestamp indicated by last assigned data received from the time stamping end before the relay database sends target return data comprises:

obtaining first reception times of respective pieces of return data received from the relay database, the return data being data obtained by the relay database through the relay data and an assigned timestamp corresponding to the relay data, the assigned timestamp being time data that is obtained from assigned data corresponding to the relay data and is received from the time stamping end;

determining, based on respective first reception times and the target upload time, the target return data that is last received by the client from the relay database before the target upload time;

obtaining third reception times corresponding to times when the relay database receives respective pieces of assigned data returned by the time stamping end, and a second target sending time when the relay database sends the target return data, the assigned data being data obtained by the time stamping end based on the received relay data and a timestamp that is time-assigned to the relay data; and

determining, based on respective ones of the obtained third reception times and second target sending time, a last assigned data received before the relay database sends the target return data, and a second assigned timestamp comprised in the last assigned data.

Priority Claims (1)
CN 202211242214.0 · Oct 11, 2022 · national
Continuity (1)
Related Publication 20250279902A1 · Sep 4, 2025
References Cited (21)
US 8392709B1 · Agrawal · 2013 [cited by examiner]
US 9553982B2 · Unitt · 2017 [cited by examiner]
US 10305694B2 · Dix · 2019 [cited by examiner]
US 10476665B1 · Griffin · 2019 [cited by examiner]
US 10581591B1 · Branton · 2020 [cited by examiner]
US 10686590B2 · Santilli · 2020 [cited by examiner]
US 10728036B2 · Ganesan · 2020 [cited by examiner]
US 10924288B2 · Yan · 2021 [cited by examiner]
US 11121870B2 · Sengupta · 2021 [cited by examiner]
US 11249977B2 · Kohli · 2022 [cited by examiner]
US 11775553B2 · Panda · 2023 [cited by examiner]
US 20200169425A1 · Hofstee et al. · 2020 [cited by applicant]
US 20200394652A1 · Youb · 2020 [cited by examiner]
US 20230089235A1 · Zhang · 2023 [cited by examiner]
CN 111183446A · 2020 [cited by applicant]
CN 111447068A · 2020 [cited by applicant]
CN 112364382A · 2021 [cited by applicant]
CN 112487084A · 2021 [cited by applicant]
CN 112364382B · 2021 [cited by applicant]
KR 20220020572A · 2022 [cited by applicant]
Notification to Grant received from Chinese patent application No. 202211242214.0 mailed on Dec. 12, 2025, 6 pages. (2 pages English Translation and 4 pages Original Copy). [cited by applicant]