Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <pubkey.h>
#include <serialize.h>
#include <support/allocators/secure.h>
#include <uint256.h>
#include <stdexcept>
#include <vector>
Go to the source code of this file.
Classes | |
class | CKey |
An encapsulated private key. More... | |
struct | CExtKey |
Typedefs | |
typedef std::vector< unsigned char, secure_allocator< unsigned char > > | CPrivKey |
secure_allocator is defined in allocators.h CPrivKey is a serialized private key, with all parameters included (PRIVATE_KEY_SIZE bytes) More... | |
Functions | |
void | ECC_Start (void) |
Initialize the elliptic curve support. More... | |
void | ECC_Stop (void) |
Deinitialize the elliptic curve support. More... | |
bool | ECC_InitSanityCheck (void) |
Check that required EC support is available at runtime. More... | |
Typedef Documentation
◆ CPrivKey
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CPrivKey |
secure_allocator is defined in allocators.h CPrivKey is a serialized private key, with all parameters included (PRIVATE_KEY_SIZE bytes)
Function Documentation
◆ ECC_InitSanityCheck()
bool ECC_InitSanityCheck | ( | void | ) |
Check that required EC support is available at runtime.
Definition at line 316 of file key.cpp.
References CKey::GetPubKey(), CKey::MakeNewKey(), and CKey::VerifyPubKey().
Referenced by InitSanityCheck().
◆ ECC_Start()
void ECC_Start | ( | void | ) |
Initialize the elliptic curve support.
May not be called twice without calling ECC_Stop first.
Definition at line 323 of file key.cpp.
References ctx, GetRandBytes(), secp256k1_context_create(), secp256k1_context_randomize(), secp256k1_context_sign, and SECP256K1_CONTEXT_SIGN.
Referenced by AppInitSanityChecks(), main(), and Secp256k1Init::Secp256k1Init().
◆ ECC_Stop()
void ECC_Stop | ( | void | ) |
Deinitialize the elliptic curve support.
No-op if ECC_Start wasn't called first.
Definition at line 340 of file key.cpp.
References ctx, secp256k1_context_destroy(), and secp256k1_context_sign.
Referenced by main(), Shutdown(), and Secp256k1Init::~Secp256k1Init().