Adds a bunch of comments related to the open issues. Clear old comments.

This commit is contained in:
Sergi Delgado Segura
2019-08-12 14:02:41 +01:00
parent 1cde4a2a11
commit 0978d0bf9e
5 changed files with 16 additions and 13 deletions

View File

@@ -63,7 +63,7 @@ class Inspector:
elif len(locator) != 64:
rcode = errors.APPOINTMENT_WRONG_FIELD_SIZE
message = "wrong locator size ({})".format(len(locator))
# TODO: Check this regexp
# TODO: #12-check-txid-regexp
elif re.search(r'^[0-9A-Fa-f]+$', locator) is None:
rcode = errors.APPOINTMENT_WRONG_FIELD_FORMAT
message = "wrong locator format ({})".format(locator)
@@ -146,7 +146,7 @@ class Inspector:
return rcode, message
# ToDo: #5-define-checks-encrypted-blob
# ToDo: #6-define-checks-encrypted-blob
def check_blob(self, encrypted_blob):
message = None
rcode = 0
@@ -160,7 +160,7 @@ class Inspector:
rcode = errors.APPOINTMENT_WRONG_FIELD_TYPE
message = "wrong encrypted_blob data type ({})".format(t)
elif encrypted_blob == '':
# ToDo: #5 We may want to define this to be at least as long as one block of the cipher we are using
# ToDo: #6 We may want to define this to be at least as long as one block of the cipher we are using
rcode = errors.APPOINTMENT_WRONG_FIELD
message = "wrong encrypted_blob"
if self.debug and message: