mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
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`.
This commit is contained in:
parent
a08d2b3cb9
commit
41eba5bd71
14 changed files with 31 additions and 21 deletions
|
|
@ -5,9 +5,7 @@
|
|||
#include <kernel/context.h>
|
||||
|
||||
#include <crypto/sha256.h>
|
||||
#include <key.h>
|
||||
#include <logging.h>
|
||||
#include <pubkey.h>
|
||||
#include <random.h>
|
||||
|
||||
#include <string>
|
||||
|
|
@ -19,12 +17,7 @@ Context::Context()
|
|||
std::string sha256_algo = SHA256AutoDetect();
|
||||
LogPrintf("Using the '%s' SHA256 implementation\n", sha256_algo);
|
||||
RandomInit();
|
||||
ECC_Start();
|
||||
}
|
||||
|
||||
Context::~Context()
|
||||
{
|
||||
ECC_Stop();
|
||||
}
|
||||
|
||||
} // namespace kernel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue