Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Merge requests
!137
#163
: Revocation.from_signed_raw(): store timestamp into a BlockUID object
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
#163
: Revocation.from_signed_raw(): store timestamp into a BlockUID object
163_revocation_from_signed_raw_blockuid
into
dev
Overview
1
Commits
1
Pipelines
5
Changes
1
Merged
#163: Revocation.from_signed_raw(): store timestamp into a BlockUID object
Moul
requested to merge
163_revocation_from_signed_raw_blockuid
into
dev
May 14, 2021
Overview
1
Commits
1
Pipelines
5
Changes
1
Close
#163 (closed)
.
Edited
May 21, 2021
by
Moul
0
0
Merge request reports
Compare
dev
version 2
eac41b1c
May 14, 2021
version 1
da330eef
May 14, 2021
dev (base)
and
latest version
latest version
7ce7e3b7
1 commit,
May 22, 2021
version 2
eac41b1c
1 commit,
May 14, 2021
version 1
da330eef
1 commit,
May 14, 2021
1 file
+
4
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
duniterpy/documents/revocation.py
+
4
−
1
View file @ 7ce7e3b7
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
])
Loading