Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 11 std::vector<CKey> keys;
12 std::vector<uint256> hashes;
13 for (
size_t i = 0; i < 100; i++) {
23 std::vector<unsigned char> sig;
24 keys[i].Sign(hashes[i], sig);
25 i = (i + 1) % keys.size();
31 std::vector<CPubKey> keys;
32 std::vector<uint256> hashes;
33 std::vector<std::vector<unsigned char>> sigs;
34 for (
size_t i = 0; i < 100; i++) {
39 std::vector<unsigned char> sig;
40 k.
Sign(hashes[i], sig);
41 sigs.emplace_back(sig);
47 keys[i].Verify(hashes[i], sigs[i]);
48 i = (i + 1) % keys.size();
54 std::vector<CPubKey> keys;
55 std::vector<uint256> hashes;
56 std::vector<std::vector<unsigned char>> sigs;
57 for (
size_t i = 0; i < 1000; i++) {
62 std::vector<unsigned char> sig;
63 k.
Sign(hashes[i], sig);
64 sigs.emplace_back(sig);
69 for (
size_t i = 0; i < keys.size(); i++) {
70 keys[i].Verify(hashes[i], sigs[i]);
CPubKey GetPubKey() const
Compute the public key from a private key.
bool Sign(const uint256 &hash, std::vector< unsigned char > &vchSig, uint32_t test_case=0) const
Create a DER-serialized signature.
uint256 SerializeHash(const T &obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION)
Compute the 256-bit hash of an object's serialization.
void MakeNewKey(bool fCompressed)
Generate a new private key using a cryptographic PRNG.
static void ECDSAVerify_LargeBlock(benchmark::State &state)
static void ECDSAVerify(benchmark::State &state)
An encapsulated private key.
static void ECDSASign(benchmark::State &state)