Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Feb 20, 2024
1 parent 6cf1918 commit 9471107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DKGCrypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ vector<string> getBLSPubKey(const char *encryptedKeyHex) {
spdlog::debug("Encrypted key length: {}", decKeyLen);
spdlog::debug("Encrypted key is:");
for (size_t i = 0; i < decKeyLen; ++i) {
std::cout << encrKey[i] << ' ';
std::cout << (int)encrKey[i] << ' ';
}

SAFE_CHAR_BUF(pubKey, 320)
Expand Down
2 changes: 1 addition & 1 deletion secure_enclave/secure_enclave.c
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ trustedGetBlsPubKey(int *errStatus, char *errString, uint8_t *encryptedPrivateKe
LOG_DEBUG("Decrypted secret key");
LOG_DEBUG(skey_hex);

skey_hex[ECDSA_SKEY_LEN - 1] = 0;
skey_hex[BLS_KEY_LENGTH - 1] = 0;

status = calc_bls_public_key(skey_hex, bls_pub_key);

Expand Down

0 comments on commit 9471107

Please sign in to comment.