Bitcoin Core
27.99.0
P2P Digital Currency
src
kernel
context.cpp
Go to the documentation of this file.
1
// Copyright (c) 2022 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include <
kernel/context.h
>
6
7
#include <
crypto/sha256.h
>
8
#include <
key.h
>
9
#include <logging.h>
10
#include <
pubkey.h
>
11
#include <random.h>
12
13
#include <string>
14
15
16
namespace
kernel
{
17
Context::Context
()
18
{
19
std::string sha256_algo =
SHA256AutoDetect
();
20
LogPrintf
(
"Using the '%s' SHA256 implementation\n"
, sha256_algo);
21
RandomInit
();
22
ECC_Start
();
23
}
24
25
Context::~Context
()
26
{
27
ECC_Stop
();
28
}
29
30
}
// namespace kernel
ECC_Start
ECC_Start()
Definition:
key.cpp:435
RandomInit
RandomInit()
Definition:
random.cpp:756
ECC_Stop
ECC_Stop()
Definition:
key.cpp:452
context.h
key.h
LogPrintf
#define LogPrintf(...)
Definition:
logging.h:244
kernel
Definition:
coinstatsindex.h:13
pubkey.h
SHA256AutoDetect
std::string SHA256AutoDetect(sha256_implementation::UseImplementation use_implementation)
Autodetect the best available SHA256 implementation.
Definition:
sha256.cpp:588
sha256.h
kernel::Context::Context
Context()
Definition:
context.cpp:17
kernel::Context::~Context
~Context()
Definition:
context.cpp:25
Generated on Sat Apr 27 2024 02:42:15 for Bitcoin Core by
1.9.1