diff --git a/src/sakia/services/documents.py b/src/sakia/services/documents.py index 321cc22e5bf50e4bec761edf39b0af6a9b7ef388..5571ead3be6e0f8dd05a492fd6c6afa264490bee 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]: