PIVX Core  5.6.99
P2P Digital Currency
Functions
blocksignature.h File Reference
#include "key.h"
#include "primitives/block.h"
#include "keystore.h"
Include dependency graph for blocksignature.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool SignBlockWithKey (CBlock &block, const CKey &key)
 
bool SignBlock (CBlock &block, const CKeyStore &keystore)
 
bool CheckBlockSignature (const CBlock &block)
 

Function Documentation

◆ CheckBlockSignature()

bool CheckBlockSignature ( const CBlock block)

Each block is signed by the private key of the input that is staked. This can be either zPIV or normal UTXO zPIV: Each zPIV has a keypair associated with it. The serial number is a hash of the public key. UTXO: The public key that signs must match the public key associated with the first utxo of the coinstake tx.

Definition at line 53 of file blocksignature.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SignBlock()

bool SignBlock ( CBlock block,
const CKeyStore keystore 
)

Definition at line 39 of file blocksignature.cpp.

◆ SignBlockWithKey()

bool SignBlockWithKey ( CBlock block,
const CKey key 
)

Definition at line 31 of file blocksignature.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: