-

@ Girino Vey!
2025-02-25 14:31:01
Possible enhancement: use NIP-70 Protected Events to mitigate replay attacks.
To improve replay attack mitigation, consider using NIP-70 Protected Events. Renoters should check the next recipient in the list and wrap the received decrypted event into a new event with the same recipient. This new event would be marked as protected under NIP-70, preventing attackers from replaying it.
**Example:**
1. R1 receives an event e1 and decodes it into e2.
2. e2 is addressed to R2.
3. Instead of forwarding e2 directly, R1 wraps e2 into a new protected event e3, addressed to R2.
4. R2 receives e3, decrypts it, and extracts e2, repeating the process if necessary.
5. If an attacker intercepts and attempts to replay e2, it will be rejected due to the NIP-70 protection.