Files
python-teos/pisa-btc/pisa/appointment.py
Sergi Delgado 803712e9b1 Improves on watcher logic.
Improves the dummy watcher logic. Sets a proper structure. Watcher can now check for potential matches and handle multiple appointments with the same locator (hash collisions).
2019-08-09 15:00:02 +01:00

11 lines
305 B
Python

# Basic appointment structure
class Appointment:
def __init__(self, locator, start_time, end_time, encrypted_blob, cypher):
self.locator = locator
self.start_time = start_time
self.end_time = end_time
self.encrypted_blob = encrypted_blob
self.cypher = cypher