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

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

parent 5c00bd86
No related branches found
No related tags found
No related merge requests found
Pipeline #12376 passed
......@@ -19,6 +19,7 @@ import base64
import re
from typing import Union, Type, TypeVar
from .block_uid import BlockUID
from ..constants import PUBKEY_REGEX, SIGNATURE_REGEX, BLOCK_UID_REGEX
from .document import Document, MalformedDocumentError
from .identity import Identity
......@@ -130,7 +131,9 @@ class Revocation(Document):
identity_uid = Revocation.parse_field("IdtyUniqueID", lines[n])
n += 1
identity_timestamp = Revocation.parse_field("IdtyTimestamp", lines[n])
identity_timestamp = BlockUID.from_str(
Revocation.parse_field("IdtyTimestamp", lines[n])
)
n += 1
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