From 04575afd5a1eb64036595c22832129ac6c5aa5d3 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Tue, 2 Jun 2020 01:24:12 +0200 Subject: [PATCH] change decrypt key to shared --- src/controller.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/controller.cpp b/src/controller.cpp index cd1c3e4..66b7823 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -1239,6 +1239,8 @@ void Controller::refreshTransactions() { if (main->getPubkeyByAddress(requestZaddr) != QString("0xdeadbeef")){ publickey = main->getPubkeyByAddress(requestZaddr); + qDebug()<<"Incoming Pubkey :"<(ba.constData()); @@ -1335,7 +1337,7 @@ void Controller::refreshTransactions() { /////Our decrypted message is now in decrypted. We need it as QString to render it /////Only the QString gives weird data, so convert first to std::string // crypto_secretstream_xchacha20poly1305_keygen(client_rx); - if (crypto_secretstream_xchacha20poly1305_init_pull(&state, header, client_rx) != 0) { + if (crypto_secretstream_xchacha20poly1305_init_pull(&state, header, server_tx) != 0) { /* Invalid header, no need to go any further */ }