Skip to content
Snippets Groups Projects
Commit 65a36a7b authored by inso's avatar inso
Browse files

SelfCertification now called Identity

parent 133792c6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment