Added signature verification to watcher's add_appointment test

This commit is contained in:
Salvatore Ingala
2019-10-18 12:37:06 +08:00
parent 50d53e0960
commit 414a4638bd
2 changed files with 21 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ class Watcher:
logger.info("New appointment accepted.", locator=appointment.locator)
print(appointment.to_json().encode("utf-8"))
signature = self.signing_key.sign(
appointment.to_json().encode("utf-8"),
ec.ECDSA(hashes.SHA256())