From 2ad077de4e8575041469f0a9892ebf17dcc64796 Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Fri, 21 Feb 2020 17:01:45 +0100 Subject: [PATCH] [fix] fix certify identity functionality --- src/sakia/services/documents.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sakia/services/documents.py b/src/sakia/services/documents.py index 321cc22e..5571ead3 100644 --- a/src/sakia/services/documents.py +++ b/src/sakia/services/documents.py @@ -166,7 +166,7 @@ class DocumentsService: async def certify(self, connection, secret_key, password, identity): """ - Certify an other identity + Certify another identity :param sakia.data.entities.Connection connection: the connection published :param str secret_key: the private key salt @@ -196,7 +196,7 @@ class DocumentsService: return False, "Could not find certified identity signature" certification = Certification( - 10, connection.currency, connection.pubkey, identity.pubkey, blockUID, None + 10, connection.currency, connection.pubkey, identity.document(), blockUID, "" ) key = SigningKey.from_credentials(secret_key, password, connection.scrypt_params) @@ -205,7 +205,7 @@ class DocumentsService: self._logger.debug("Certification : {0}".format(signed_cert)) timestamp = self._blockchain_processor.time(connection.currency) responses = await self._bma_connector.broadcast( - connection.currency, bma.wot.certify, req_args={"cert": signed_cert} + connection.currency, bma.wot.certify, req_args={"certification_signed_raw": signed_cert} ) result = await parse_bma_responses(responses) if result[0]: -- GitLab