Skip to content
Snippets Groups Projects
Commit 7ce7e3b7 authored by Moul's avatar Moul
Browse files

[enh] #163: Revocation.from_signed_raw(): Store timestamp into a BlockUID object

parent ef1cf830
Branches
Tags
2 merge requests!157v1.0.0rc0: merge dev into master,!137#163: Revocation.from_signed_raw(): store timestamp into a BlockUID object
Pipeline #12556 waiting for manual action
...@@ -19,6 +19,7 @@ import base64 ...@@ -19,6 +19,7 @@ import base64
import re import re
from typing import Union, Type, TypeVar from typing import Union, Type, TypeVar
from .block_uid import BlockUID
from ..constants import PUBKEY_REGEX, SIGNATURE_REGEX, BLOCK_UID_REGEX from ..constants import PUBKEY_REGEX, SIGNATURE_REGEX, BLOCK_UID_REGEX
from .document import Document, MalformedDocumentError from .document import Document, MalformedDocumentError
from .identity import Identity from .identity import Identity
...@@ -130,7 +131,9 @@ class Revocation(Document): ...@@ -130,7 +131,9 @@ class Revocation(Document):
identity_uid = Revocation.parse_field("IdtyUniqueID", lines[n]) identity_uid = Revocation.parse_field("IdtyUniqueID", lines[n])
n += 1 n += 1
identity_timestamp = Revocation.parse_field("IdtyTimestamp", lines[n]) identity_timestamp = BlockUID.from_str(
Revocation.parse_field("IdtyTimestamp", lines[n])
)
n += 1 n += 1
identity_signature = Revocation.parse_field("IdtySignature", lines[n]) identity_signature = Revocation.parse_field("IdtySignature", lines[n])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment