Skip to content

Commit

Permalink
Compilation fixes post picking latest changes from main
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav137 committed Jan 14, 2025
1 parent 12d965d commit 32aa899
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/node/share_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,6 @@ namespace ccf
data = secret_.key(KZ_KEY_SIZE);
}

LedgerSecretWrappingKey(
std::vector<SecretSharing::Share>&& shares_, size_t recovery_threshold_) :
recovery_threshold(recovery_threshold_)
{
// TBD (gsinha): How to set ccf::crypto::sharing::Share secret member
// variable here?
auto combined_secret = SecretSharing::combine(shares_, shares_.size());
data.resize(combined_secret.size());
std::copy_n(
combined_secret.begin(), combined_secret.size(), data.begin());
OPENSSL_cleanse(combined_secret.data(), combined_secret.size());
}

~LedgerSecretWrappingKey()
{
OPENSSL_cleanse(data.data(), data.size());
Expand Down

0 comments on commit 32aa899

Please sign in to comment.