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
Commits
65a36a7b
Commit
65a36a7b
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
SelfCertification now called Identity
parent
133792c6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/save_revoke_document.py
+2
-2
2 additions, 2 deletions
examples/save_revoke_document.py
examples/send_certification.py
+2
-2
2 additions, 2 deletions
examples/send_certification.py
with
4 additions
and
4 deletions
examples/save_revoke_document.py
+
2
−
2
View file @
65a36a7b
...
...
@@ -36,7 +36,7 @@ PROTOCOL_VERSION = 2
async
def
get_identity_document
(
connection
,
currency
,
pubkey
):
"""
Get the
SelfCertification
document of the pubkey
Get the
Identity
document of the pubkey
:param bma.api.ConnectionHandler connection: Connection handler
:param str currency: Currency name
...
...
@@ -116,7 +116,7 @@ async def main():
# capture current block to get currency name
current_block
=
await
bma
.
blockchain
.
current
(
connection
)
# create our
SelfCertification
document to sign the revoke document
# create our
Identity
document to sign the revoke document
identity_document
=
await
get_identity_document
(
connection
,
current_block
[
'
currency
'
],
pubkey
)
# get the revoke document
...
...
This diff is collapsed.
Click to expand it.
examples/send_certification.py
+
2
−
2
View file @
65a36a7b
...
...
@@ -63,7 +63,7 @@ def get_certification_document(current_block, self_cert_document, from_pubkey, s
Create and return a Certification document
:param dict current_block: Current block data
:param Identity self_cert_document:
SelfCertification
document
:param Identity self_cert_document:
Identity
document
:param str from_pubkey: Pubkey of the certifier
:param str salt: Secret salt (DO NOT SHOW IT ANYWHERE, IT IS SECRET !!!)
:param str password: Secret password (DO NOT SHOW IT ANYWHERE, IT IS SECRET !!!)
...
...
@@ -107,7 +107,7 @@ async def main():
# capture current block to get version and currency and blockstamp
current_block
=
await
bma
.
blockchain
.
current
(
connection
)
# create our
SelfCertification
document to sign the Certification document
# create our
Identity
document to sign the Certification document
identity
=
await
get_identity_document
(
connection
,
current_block
,
pubkey_to
)
# send the Certification document to the node
...
...
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