ErotemeEroteme

Security Overview

How Eroteme secures API endpoints and user data.

Overview

All state-changing API endpoints require wallet signature authentication. This provides stronger security than traditional session-based auth by proving the caller controls the wallet's private key.

Security Layers

1. Signature-Based Authentication

Every authenticated request must be signed by the wallet owner using ECDSA signatures.

2. Timestamp Validation

Signatures expire after 5 minutes, preventing replay attacks. The server rejects any request with a timestamp older than the window.

3. Rate Limiting

Per-address rate limits with automatic blocking:

Endpoint GroupLimitBlock Duration
Profile10 req/min2 minutes
AI analysis20 req/min2 minutes

4. ReDoS Protection

All user-provided input used in regex queries is sanitised to prevent Regular Expression Denial of Service attacks.

5. Database Connection Management

All endpoints verify database connectivity before processing requests.

On this page