mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
Fix signature verificatio in pisa-cli
This commit is contained in:
@@ -106,7 +106,7 @@ def test_add_appointment(run_bitcoind, watcher):
|
||||
|
||||
# verify the signature
|
||||
try:
|
||||
data = appointment.to_json().encode("utf-8")
|
||||
data = appointment.to_json().encode('utf-8')
|
||||
public_key.verify(sig, data, ec.ECDSA(hashes.SHA256()))
|
||||
except InvalidSignature:
|
||||
assert False, "The appointment's signature is not correct"
|
||||
|
||||
Reference in New Issue
Block a user