PISAresearch / pisa

Accountable Watching Service
https://pisa.watch
28 stars 9 forks source link

Add thin security to get appointments call #350

Closed yahgwai closed 5 years ago

yahgwai commented 5 years ago

Appointments should only be returned to authorised users

A good start:

The signed message should be a current block number, and we only accept it if the provided number is within 5 blocks of the current one. This stops requests from be replayed later if they are intercepted - although we should start using https soon as well.