IP Library › Granted Patent US 11,388,190
Granted Patent B2
US 11,388,190 · App. 17/372,698 · Granted Jul 12, 2022

Anti-replay device based on memory space interchange

Inventor: Hong Lv (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
H04L63/1466H04L63/123H04L63/1416
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,388,190
App. No.
17/372,698
Granted
Jul 12, 2022
Kind
B2
Abstract

Disclosed herein are methods, systems, and apparatus, including computer programs encoded on computer storage media, for detecting and disabling replay attacks. One of the methods includes receiving a transaction to be completed in a blockchain. A current working section of memory storing transaction information that is designated for use in identifying past transactions already processed is determined, where the memory also stores a backup section providing, when used in combination with the current working section, an alternating memory section storage scheme for the transaction information. From the current working section, whether the transaction has previously been processed is determined. When it is determined that the transaction has previously been processed, the transaction is bypassed. When it is determined that the transaction has not previously been processed the transaction is processed and transaction information for the transaction is written into the current working section.

Claims (74)

1. A computer-implemented method for detecting and disabling replay attacks, the method comprising:

receiving a transaction to be completed in a blockchain;

determining a current working section of a memory storing first transaction information that is designated for use in identifying past transactions already processed, the memory also comprising a backup section providing, when used in combination with the current working section, an alternating memory section storage scheme for the first transaction information;

determining, from the current working section, that the transaction has not been previously been processed; and

in response to determining that the transaction has not previously been processed:

determining that a threshold condition is met for initiating a switch-over between the current working section and the backup section, wherein the threshold condition comprises an indication that a pre-determined percentage of storage capacity of the current working section has been used;

in response to determining that the threshold condition is met, initiating the switch-over including starting an overlapping period in which additional transaction information is written to the current working section and to the backup section;

processing the transaction; and

writing second transaction information for the transaction into the current working section.

2. The computer-implemented method of claim 1 , comprising:

determining that an end of the overlapping period has been reached;

ceasing writing of the additional transaction information to the current working section; and

designating the backup section as the current working section.

3. The computer-implemented method of claim 1 , wherein determining that the transaction has not been previously been processed comprises determining, using a Bloom filter, a probability that the transaction has previously been processed.

4. The computer-implemented method of claim 1 , comprising:

writing the second transaction information for the transaction into the backup section.

5. The computer-implemented method of claim 4 , comprising:

clearing the backup section.

6. The computer-implemented method of claim 1 , comprising:

receiving an additional transaction;

determining that the additional transaction is in the current working section; and

in response to determining that the additional transaction is in the current working section, bypassing the additional transaction.

7. The computer-implemented method of claim 6 , comprising:

in response to determining that the additional transaction is in the current working section, determining that the additional transaction is in the blockchain; and

in response to determining that the additional transaction is in the blockchain, bypassing the additional transaction.

8. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

receiving a transaction to be completed in a blockchain;

determining a current working section of a memory storing first transaction information that is designated for use in identifying past transactions already processed, the memory also comprising a backup section providing, when used in combination with the current working section, an alternating memory section storage scheme for the first transaction information;

determining, from the current working section, that the transaction has not been previously been processed; and

in response to determining that the transaction has not previously been processed:

determining that a threshold condition is met for initiating a switch-over between the current working section and the backup section, wherein the threshold condition comprises an indication that a pre-determined percentage of storage capacity of the current working section has been used;

in response to determining that the threshold condition is met, initiating the switch-over including starting an overlapping period in which additional transaction information is written to the current working section and to the backup section;

processing the transaction; and

writing second transaction information for the transaction into the current working section.

9. The non-transitory, computer-readable medium of claim 8 , the operations comprising:

determining that an end of the overlapping period has been reached;

ceasing writing of the additional transaction information to the current working section; and

designating the backup section as the current working section.

10. The non-transitory, computer-readable medium of claim 8 , wherein determining that the transaction has not been previously been processed comprises determining, using a Bloom filter, a probability that the transaction has previously been processed.

11. The non-transitory, computer-readable medium of claim 8 , the operations comprising:

writing the second transaction information for the transaction into the backup section.

12. The non-transitory, computer-readable medium of claim 11 , the operations comprising:

clearing the backup section.

13. The non-transitory, computer-readable medium of claim 8 , the operations comprising:

receiving an additional transaction;

determining that the additional transaction is in the current working section; and

in response to determining that the additional transaction is in the current working section, bypassing the additional transaction.

14. The non-transitory, computer-readable medium of claim 13 , the operations comprising:

in response to determining that the additional transaction is in the current working section, determining that the additional transaction is in the blockchain; and

in response to determining that the additional transaction is in the blockchain, bypassing the additional transaction.

15. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

receiving a transaction to be completed in a blockchain;

determining a current working section of a memory storing first transaction information that is designated for use in identifying past transactions already processed, the memory also comprising a backup section providing, when used in combination with the current working section, an alternating memory section storage scheme for the first transaction information;

determining, from the current working section, that the transaction has not been previously been processed; and

in response to determining that the transaction has not previously been processed:

determining that a threshold condition is met for initiating a switch-over between the current working section and the backup section, wherein the threshold condition comprises an indication that a pre-determined percentage of storage capacity of the current working section has been used;

in response to determining that the threshold condition is met, initiating the switch-over including starting an overlapping period in which additional transaction information is written to the current working section and to the backup section;

processing the transaction; and

writing second transaction information for the transaction into the current working section.

16. The computer-implemented system of claim 15 , the operations comprising:

determining that an end of the overlapping period has been reached;

ceasing writing of the additional transaction information to the current working section; and

designating the backup section as the current working section.

17. The computer-implemented system of claim 15 , wherein determining that the transaction has not been previously been processed comprises determining, using a Bloom filter, a probability that the transaction has previously been processed.

18. The computer-implemented system of claim 15 , the operations comprising:

writing the second transaction information for the transaction into the backup section.

19. The computer-implemented system of claim 18 , the operations comprising:

clearing the backup section.

20. The computer-implemented system of claim 15 , the operations comprising:

receiving an additional transaction;

determining that the additional transaction is in the current working section; and

in response to determining that the additional transaction is in the current working section, bypassing the additional transaction.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 1, 2021
From: LV, HONG
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 057665/0363 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 1, 2021
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 057680/0092 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 1, 2021
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 057680/0141 →
Continuity (4)
Continuation 17035539 · Sep 28, 2020
Continuation 16713409 · Dec 13, 2019
Continuation PCTCN2019093085 · Jun 26, 2019
Related Publication 20210344709A1 · Nov 4, 2021