diff --git a/src/bls/bls.cpp b/src/bls/bls.cpp index 49981ee9190f..8d5b1b83703c 100644 --- a/src/bls/bls.cpp +++ b/src/bls/bls.cpp @@ -8,6 +8,7 @@ #ifndef BUILD_BITCOIN_INTERNAL #include +#include #endif #include @@ -73,6 +74,7 @@ void CBLSSecretKey::MakeNewKey() } catch (...) { } } + memory_cleanse(buf, sizeof(buf)); fValid = true; cachedHash.SetNull(); }