Blockchain Replay Attack Detection via Timestamp Validation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Blockchain networks are susceptible to replay attacks, which can lead to malicious transactions and loss of assets, and existing account nonce mechanisms are unreliable and inefficient in detecting such attacks.
Innovation Solution
A method and system for detecting replay attacks using timestamp verification and transaction identification verification, replacing the account nonce mechanism, which involves obtaining candidate transactions with timestamps, verifying if the timestamp is within a validation range, and checking if the transaction identification exists in a database, to determine if a transaction is associated with a replay attack.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the account nonce mechanism is used to detect replay attacks, then replay attack detection is provided, but the system complexity increases and transaction processing efficiency decreases due to additional nonce queries and communication overhead
Solution Approach 1:
The patent extracts the replay attack detection function from the account nonce mechanism by introducing a separate validation range verification based on timestamps. This separates the detection logic from the transaction processing flow, reducing system complexity while maintaining detection capability. The validation range is obtained independently and used for verification without requiring additional nonce queries.
Solution Approach 2:
The patent introduces a validation range as an intermediary element between the timestamp and the replay attack detection decision. This validation range acts as a mediator that simplifies the detection process by providing a clear time-based criterion for accepting or rejecting transactions, thereby reducing the computational and communication overhead associated with traditional nonce-based detection.
2Reliability
If the account nonce mechanism is used to detect replay attacks, then replay attack detection is provided, but the transaction processing efficiency decreases due to communication burdens between user terminals and blockchain nodes
Solution Approach 1:
The patent performs preliminary action by obtaining the validation range before processing the transaction. This validation range is prepared in advance and stored, so that during transaction processing, the system only needs to compare the transaction timestamp against the pre-obtained validation range, significantly reducing communication overhead and improving processing efficiency compared to real-time nonce verification.
3Productivity
If timestamp verification within a validation range is used, then transaction processing efficiency is improved and communication burden is reduced, but the reliability of replay attack detection may be compromised without proper validation
Solution Approach 1:
The patent applies preliminary anti-action by establishing a validation range that prevents replay attacks before they can occur. The validation range is configured to exclude time periods where replay attacks are likely, and transactions outside this range are automatically rejected. This proactive approach ensures reliability by preventing potential attacks while maintaining efficient processing for valid transactions within the range.
Data Source
AI summary
A computer-implemented method for detecting replay attack comprises: obtaining at least one candidate transaction for adding to a blockchain, the obtained candidate transaction comprising a timestamp; verifying if the timestamp is within a validation range and if an identification of the candidate transaction exists in an identification database; and in response to determining that the timestamp is within the validation range and the identification does not exist in the identification database, determining that the candidate transaction is not associated with a replay attack.


