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
No related branches found
No related tags found
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
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