# US 2021/0344709 A1 · Anti-replay device based on memory space interchange

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0344709 A1
- Document ID: US20210344709A1
- Status: Published application
- Kind: A1
- Application number: 17/372,698
- Filed: 2021-07-12
- Published: 2021-11-04
- Earliest claimed: 2019-06-26
- Assignees: Advanced New Technologies Co., Ltd.
- Applicants: Advanced New Technologies Co., Ltd.
- Inventors: Hong Lv
- Web page: https://patentgrep.com/patent/US20210344709A1

## CPC

- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- G06F 21/554: {involving event detection and direct action}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- H04L 9/002: {Countermeasures against attacks on cryptographic mechanisms (network architectures or network communication protocols for protection against malicious traffic H04L63/1441)}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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

### Claim at position 1

-24. (canceled)

### Claim 25

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 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 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 particular transaction information for the transaction into the current working section.

### Claim 26 (depends on 25)

The computer-implemented method of claim 25, 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.

### Claim 27 (depends on 25)

The computer-implemented method of claim 25, 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.

### Claim 28 (depends on 25)

The computer-implemented method of claim 25, comprising:
writing the particular transaction information for the transaction into the backup section.

### Claim 29 (depends on 28)

The computer-implemented method of claim 28, comprising:
clearing the backup section.

### Claim 30 (depends on 25)

The computer-implemented method of claim 25, 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.

### Claim 31 (depends on 30)

The computer-implemented method of claim 30, 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.

### Claim 32

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 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 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 particular transaction information for the transaction into the current working section.

### Claim 33 (depends on 32)

The non-transitory, computer-readable medium of claim 32, 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.

### Claim 34 (depends on 32)

The non-transitory, computer-readable medium of claim 32, 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.

### Claim 35 (depends on 32)

The non-transitory, computer-readable medium of claim 32, the operations comprising:
writing the particular transaction information for the transaction into the backup section.

### Claim 36 (depends on 35)

The non-transitory, computer-readable medium of claim 35, the operations comprising:
clearing the backup section.

### Claim 37 (depends on 32)

The non-transitory, computer-readable medium of claim 32, 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.

### Claim 38 (depends on 37)

The non-transitory, computer-readable medium of claim 37, 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.

### Claim 39

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 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 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 particular transaction information for the transaction into the current working section.

### Claim 40 (depends on 39)

The computer-implemented system of claim 39, 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.

### Claim 41 (depends on 39)

The computer-implemented system of claim 39, 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.

### Claim 42 (depends on 39)

The computer-implemented system of claim 39, the operations comprising:
writing the particular transaction information for the transaction into the backup section.

### Claim 43 (depends on 42)

The computer-implemented system of claim 42, the operations comprising:
clearing the backup section.

### Claim 44 (depends on 39)

The computer-implemented system of claim 39, 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.
