diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index 1ac2acc..b033d7e 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -394,7 +394,7 @@ Tx MainWindow::createTxFromChatPage() { /////////////////Alice Pubkey #define MESSAGEAP ((const unsigned char *) cidchar)///////////static atm, in future we will use the CID here - #define MESSAGEAP_LEN 5 + #define MESSAGEAP_LEN lengthcid unsigned char alice_publickey[crypto_box_PUBLICKEYBYTES]; diff --git a/src/controller.cpp b/src/controller.cpp index 4069022..342a24a 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -956,7 +956,7 @@ void Controller::refreshTransactions() { /////////////////Alice Pubkey bob create #define MESSAGEAP ((const unsigned char *) cidchar)///////////static atm, in future we will use the CID here - #define MESSAGEAP_LEN 5 + #define MESSAGEAP_LEN lengthcid unsigned char alice_publickey[crypto_box_PUBLICKEYBYTES];