From 656951798778c59d328b7c23a0808fe7fcdea072 Mon Sep 17 00:00:00 2001 From: Dario Date: Thu, 27 Feb 2020 12:32:21 +0100 Subject: [PATCH] with debugging code --- src/cpp/Crypto/KeyPair.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cpp/Crypto/KeyPair.cpp b/src/cpp/Crypto/KeyPair.cpp index d4d387d78..00d2648b1 100644 --- a/src/cpp/Crypto/KeyPair.cpp +++ b/src/cpp/Crypto/KeyPair.cpp @@ -96,7 +96,7 @@ bool KeyPair::generateFromPassphrase(const char* passphrase, const Mnemonic* wor // debug passphrase - /*printf("\passsphrase: <%s>\n", passphrase); + printf("\passsphrase: <%s>\n", passphrase); printf("size word indices: %u\n", word_indices->size()); std::string word_indicesHex = getHex(*word_indices, word_indices->size()); printf("word_indices: \n%s\n", word_indicesHex.data()); @@ -107,11 +107,12 @@ bool KeyPair::generateFromPassphrase(const char* passphrase, const Mnemonic* wor printf("%4hu", word_indices_p[i]); } printf("\n"); - //*/ - //printf("\nclear passphrase: \n%s\n", clearPassphrase.data()); - //std::string hex_clearPassphrase = getHex((const unsigned char*)clearPassphrase.data(), clearPassphrase.size()); - //printf("passphrase bin: \n%s\n\n", hex_clearPassphrase.data()); + + printf("\nclear passphrase: \n%s\n", clearPassphrase.data()); + std::string hex_clearPassphrase = getHex((const unsigned char*)clearPassphrase.data(), clearPassphrase.size()); + printf("passphrase bin: \n%s\n\n", hex_clearPassphrase.data()); + //*/ mm->releaseMemory(word_indices);