IP Library Granted Patent US 11,521,275
Granted Patent B2
US 11,521,275 · App. 16/591,749 · Granted Dec 6, 2022

Blockchain-based transaction processing method, apparatus, and electronic device

Inventors: Jiyuan Wang (Hangzhou, CN); Xuebing Yan (Hangzhou, CN)
Assignee: ADVANCED NEW TECHNOLOGIES CO., LTD.
G06Q40/12G06F16/2379G06Q20/401G06F16/28G06Q2220/00
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 11,521,275
App. No.
16/591,749
Granted
Dec 6, 2022
Kind
B2
Abstract

A method for processing blockchain-based transactions, comprising: acquiring a Nonce record from a Nonce list for a transaction initiated by a user account, wherein the Nonce list is maintained in a blockchain and is associated with the user account, the Nonce list comprises a plurality of Nonce records, and a Nonce record comprises a Nonce value; adding the acquired Nonce record to the transaction; and submitting the transaction to the blockchain, for a node in the blockchain to compare the Nonce record in the transaction with the plurality of Nonce records in the Nonce list, and to accept the transaction in response to the Nonce record matching any Nonce record in the Nonce list, wherein the Nonce value in the matching Nonce record in the Nonce list is monotonically increased based on a preset increment in response to that the transaction is accepted.

Claims (55)

1. A computer-implemented method for processing blockchain-based transactions, the method comprising:

acquiring, by a client, a Nonce record from a Nonce list for a transaction initiated by a user account, wherein:

the Nonce list is associated with the user account,

the Nonce list comprises a plurality of Nonce records,

the Nonce record comprises a Nonce value, and

before acquiring the Nonce record from the Nonce list for the transaction initiated by the user account, the method further comprises:

acquiring, by the client, the Nonce list maintained in a blockchain in response to an initialization instruction for the client; and

maintaining, by the client, the acquired Nonce list at the client;

adding, by the client, the acquired Nonce record to the transaction; and

submitting, by the client, the transaction to the blockchain, wherein:

a node in the blockchain compares the Nonce record in the transaction with the plurality of Nonce records in the Nonce list, and to accepts the transaction in response to the Nonce record matching any Nonce record in the Nonce list, and

the Nonce value in the matching Nonce record in the Nonce list is monotonically increased based on a preset increment in response to that the transaction is accepted.

2. The method according to claim 1 , wherein acquiring the Nonce record from the Nonce list for the transaction initiated by the user account comprises:

acquiring the Nonce record from the Nonce list maintained at the client for the transaction initiated by the user account.

3. The method according to claim 2 , wherein the Nonce records in the Nonce list maintained at the client is marked as available by default; and wherein acquiring the Nonce record from the Nonce list for the transaction initiated by the user account comprises:

acquiring a Nonce record marked as available from the Nonce list maintained at the client for the transaction initiated by the user account; and

after acquiring the Nonce record marked as available from the Nonce list maintained at the client for the transaction, marking the acquired Nonce record as unavailable in the Nonce list.

4. The method according to claim 3 , further comprising:

determining whether a prompt message returned by the node is received that the transaction is accepted; and

in response to receiving the prompt message that the transaction is accepted, monotonically increasing the Nonce value in the acquired Nonce record by the preset increment, and re-marking the acquired Nonce record as available in the Nonce list after the Nonce value is monotonically increased.

5. The method according to claim 1 , wherein the method is implementable by a client, and the client is a multi-threaded client.

6. The method according to claim 1 , wherein the number of Nonce records in the Nonce list indicates a transaction concurrency capacity of the user account.

7. The method according to claim 1 , wherein the Nonce record further comprises a version identifier of the Nonce list.

8. The method according to claim 1 , wherein the Nonce record further comprises an index identifier of the Nonce record.

9. A computer-implemented method for processing blockchain-based transactions, the method comprising:

receiving, by a node of a blockchain, a transaction initiated by a user account, wherein the transaction comprises a Nonce record acquired from a Nonce list maintained in a blockchain and associated with the user account, the Nonce list comprises a plurality of Nonce records, the Nonce record comprises a Nonce value, the Nonce list is acquired by a client in response to an initialization instruction for the client, and the Nonce list is maintained at the client before the client acquired the Nonce record from the Nonce record for the transaction and added the Nonce record to the transaction;

comparing, by the node of the blockchain, the acquired Nonce record with the plurality of Nonce records in the Nonce list maintained in the blockchain and associated with the user account;

accepting, by the node of the blockchain, the transaction in response to that the acquired Nonce record matches any Nonce record in the Nonce list; and

monotonically increasing, by the node of the blockchain, the Nonce value of the matching Nonce record in the Nonce list based on a preset increment in response to that the acquired Nonce record matches any Nonce record in the Nonce list.

10. The method according to claim 9 , wherein the method is implementable by the node of blockchain and a client submits the transaction to the blockchain, and the method further comprises:

returning a notification message to the client that the transaction is accepted.

11. The method according to claim 9 , wherein the Nonce record comprises a version identifier of the Nonce list.

12. The method according to claim 9 , wherein the Nonce record comprises an index identifier of the Nonce record.

13. An apparatus for processing blockchain-based transactions, comprising: one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the apparatus to perform operations comprising:

acquiring, by a client, a Nonce record from a Nonce list for a transaction initiated by a user account, wherein:

the Nonce list is associated with the user account,

the Nonce list comprises a plurality of Nonce records,

the Nonce record comprises a Nonce value, and

before acquiring the Nonce record from the Nonce list for the transaction initiated by the user account, the operations further comprise:

acquiring, by the client, the Nonce list maintained in a blockchain in response to an initialization instruction for the client; and

maintaining, by the client, the acquired Nonce list at the client;

adding, by the client, the acquired Nonce record to the transaction;

submitting, by the client, the transaction to the blockchain, wherein:

a node in the blockchain compares the Nonce record in the transaction with the plurality of Nonce records in the Nonce list, and accepts the transaction in response to the Nonce record matching any Nonce record in the Nonce list, and

the Nonce value in the matching Nonce record in the Nonce list is monotonically increased based on a preset increment in response to that the transaction is accepted.

14. The apparatus according to claim 13 , wherein acquiring the Nonce record from the Nonce list for the transaction initiated by the user account comprises:

acquiring the Nonce record from the Nonce list maintained at the client for the transaction initiated by the user account.

15. The apparatus according to claim 14 , wherein the Nonce records in the Nonce list maintained at the client is marked as available by default; and wherein acquiring the Nonce record from the Nonce list for the transaction initiated by the user account comprises:

acquiring a Nonce record marked as available from the Nonce list maintained at the client for the transaction initiated by the user account; and

after acquiring the Nonce record marked as available from the Nonce list maintained at the client for the transaction, marking the acquired Nonce record as unavailable in the Nonce list.

16. The apparatus according to claim 15 , wherein the operations further comprise:

determining whether a prompt message returned by the node is received that the transaction is accepted; and

in response to receiving the prompt message that the transaction is accepted, monotonically increasing the Nonce value in the acquired Nonce record by the preset increment, and re-marking the acquired Nonce record as available in the Nonce list after the Nonce value is monotonically increased.

17. The apparatus according to claim 13 , wherein the operations are implementable by a client, and the client is a multi-threaded client.

18. The apparatus according to claim 13 , wherein the number of Nonce records in the Nonce list indicates a transaction concurrency capacity of the user account.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 3, 2019
From: WANG, JIYUAN; YAN, XUEBING
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 050613/0474 →