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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
7ce7e3b7
Commit
7ce7e3b7
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[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
!157
v1.0.0rc0: merge dev into master
,
!137
#163: Revocation.from_signed_raw(): store timestamp into a BlockUID object
Pipeline
#12556
waiting for manual action
Stage: checks
Stage: tests
Stage: release
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniterpy/documents/revocation.py
+4
-1
4 additions, 1 deletion
duniterpy/documents/revocation.py
with
4 additions
and
1 deletion
duniterpy/documents/revocation.py
+
4
−
1
View file @
7ce7e3b7
...
...
@@ -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
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment