mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
Adds a bunch of comments related to the open issues. Clear old comments.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user