CatapultServer  v0.5.0.1 (Elephant)
BlockUtils.cpp File Reference
Include dependency graph for BlockUtils.cpp:

Namespaces

 catapult
 
 catapult::model
 

Functions

void catapult::model::CalculateBlockTransactionsHash (const std::vector< const TransactionInfo * > &transactionInfos, Hash256 &blockTransactionsHash)
 Calculates the block transactions hash of transactionInfos into blockTransactionsHash. More...
 
GenerationHash catapult::model::CalculateGenerationHash (const GenerationHash &previousGenerationHash, const Key &publicKey)
 
void catapult::model::SignBlockHeader (const crypto::KeyPair &signer, Block &block)
 
bool catapult::model::VerifyBlockHeaderSignature (const Block &block)
 Validates signature of block header. More...
 
BlockTransactionsInfo catapult::model::CalculateBlockTransactionsInfo (const Block &block)
 Calculates information about transactions stored in block. More...
 
std::unique_ptr< Block > catapult::model::CreateBlock (const PreviousBlockContext &context, NetworkIdentifier networkIdentifier, const Key &signerPublicKey, const Transactions &transactions)
 
std::unique_ptr< Block > catapult::model::StitchBlock (const BlockHeader &blockHeader, const Transactions &transactions)
 Creates a new block by stitching together blockHeader and transactions. More...