aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/checks.cpp
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2024-01-15 12:55:31 +0100
committerTheCharlatan <seb.kung@gmail.com>2024-05-09 15:56:08 +0200
commit41eba5bd716bea47c8731d156d053afee92a7f12 (patch)
tree23a01431d9155d7c82ede876e20cd579f0fd8286 /src/kernel/checks.cpp
parenta08d2b3cb971c68e9a50b991b2953fa4541cf48a (diff)
downloadbitcoin-41eba5bd716bea47c8731d156d053afee92a7f12.tar.xz
kernel: Remove key module from kernel library
The key module's functionality is not used by the kernel library, but currently kernel users are still required to initialize the key module's `secp256k1_context_sign` global as part of the `kernel::Context` through `ECC_Start`.
Diffstat (limited to 'src/kernel/checks.cpp')
-rw-r--r--src/kernel/checks.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/kernel/checks.cpp b/src/kernel/checks.cpp
index 45a5e25093..e4a13ee4cc 100644
--- a/src/kernel/checks.cpp
+++ b/src/kernel/checks.cpp
@@ -4,8 +4,8 @@
#include <kernel/checks.h>
-#include <key.h>
#include <random.h>
+#include <util/result.h>
#include <util/translation.h>
#include <memory>
@@ -14,10 +14,6 @@ namespace kernel {
util::Result<void> SanityChecks(const Context&)
{
- if (!ECC_InitSanityCheck()) {
- return util::Error{Untranslated("Elliptic curve cryptography sanity check failure. Aborting.")};
- }
-
if (!Random_SanityCheck()) {
return util::Error{Untranslated("OS cryptographic RNG sanity check failure. Aborting.")};
}