Files
python-teos/pisa-btc/pisa/appointment.py
Sergi Delgado Segura db263cf9b9 Some small refactors
2019-08-09 15:00:02 +01:00

21 lines
655 B
Python

from pisa.encrypted_blob import EncryptedBlob
# Basic appointment structure
class Appointment:
def __init__(self, locator, start_time, end_time, dispute_delta, encrypted_blob, cipher, hash_function):
self.locator = locator
self.start_time = start_time
self.end_time = end_time
self.dispute_delta = dispute_delta
self.encrypted_blob = EncryptedBlob(encrypted_blob)
self.cipher = cipher
self.hash_function = hash_function
# ToDO: We may want to add some additional things to the appointment, like
# minimum fee
# refund to be payed to the user in case of failing