PRCYCoin  2.0.0.7rc1
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 is a normal UTXO. UTXO: The public key that signs must match the public key associated with the first utxo of the coinstake tx.

Definition at line 57 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 32 of file blocksignature.cpp.

Here is the call graph for this function:

◆ SignBlockWithKey()

bool SignBlockWithKey ( CBlock block,
const CKey key 
)

Definition at line 9 of file blocksignature.cpp.

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