Documentation

Aggregator Contract

The validation engine that enforces consensus rules and sanitation before data is finalized.

Purpose

To securely receive aggregated submissions and prevent invalid, stale, or malicious data from being stored.

Validation Logic

  • Submission Structure: Verifies that the data packet matches the expected schema.
  • Authentication: Checks that the submitter is authorized by the SourceRegistry.
  • Freshness Checks: Enforces strict timestamp validity. Packets older than the acceptance window (e.g., 2 minutes) are rejected to prevent replay attacks.
  • Anti-Replay: Tracks monotonic Round IDs to ensure the same update cannot be processed twice.
  • Source Quorum: Verifies that the number of valid signatures meets the minimum threshold defined in the registry.