Skip to content

Properly sanity check aggregator/calendar responses #29

@petertodd

Description

@petertodd

Currently the only sanity check that RemoteCalendar does is to reject responses larger than 10KB.

For submission, we should verify/filter the following:

  • PendingAttestation matches expected whitelist (URL is unauthenticated!)
  • Number of PendingAttestation's is reasonable
  • Hash operations are sane (exclusively SHA256?)
  • Proof size is appropriate for merkle tree aggregation
  • All attestations are known (maybe not a good idea for upgradability? e.g. a future trusted signature scheme could return valid attestations directly in response to a submission)

And when getting timestamps:

  • Response does not include any PendingAttestation's (allowing loops greatly complicates the logic)
  • Redundant attestations (e.g. two different bitcoin blocks)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions