PIVX Core  5.6.99
P2P Digital Currency
blocksignature.h
Go to the documentation of this file.
1 // Copyright (c) 2017-2021 The PIVX 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 #ifndef PIVX_BLOCKSIGNATURE_H
6 #define PIVX_BLOCKSIGNATURE_H
7 
8 #include "key.h"
9 #include "primitives/block.h"
10 #include "keystore.h"
11 
12 bool SignBlockWithKey(CBlock& block, const CKey& key);
13 bool SignBlock(CBlock& block, const CKeyStore& keystore);
14 bool CheckBlockSignature(const CBlock& block);
15 
16 #endif // PIVX_BLOCKSIGNATURE_H
bool SignBlock(CBlock &block, const CKeyStore &keystore)
bool CheckBlockSignature(const CBlock &block)
bool SignBlockWithKey(CBlock &block, const CKey &key)
Definition: block.h:80
An encapsulated private key.
Definition: key.h:30
A virtual base class for key stores.
Definition: keystore.h:23