CatapultServer  v0.5.0.1 (Elephant)
catapult::builders::AggregateCosignatureAppender Class Reference

Helper to add cosignatures to an aggregate transaction. More...

Collaboration diagram for catapult::builders::AggregateCosignatureAppender:

Public Member Functions

 AggregateCosignatureAppender (const GenerationHash &generationHash, std::unique_ptr< model::AggregateTransaction > &&pAggregateTransaction)
 
void cosign (const crypto::KeyPair &cosigner)
 Cosigns an aggregate transaction using cosigner key pair. More...
 
std::unique_ptr< model::AggregateTransactionbuild () const
 Builds an aggregate transaction with cosigatures appended. More...
 

Private Attributes

GenerationHash m_generationHash
 
std::unique_ptr< model::AggregateTransactionm_pAggregateTransaction
 
Hash256 m_transactionHash
 
std::vector< model::Cosignaturem_cosignatures
 

Detailed Description

Helper to add cosignatures to an aggregate transaction.

Constructor & Destructor Documentation

◆ AggregateCosignatureAppender()

catapult::builders::AggregateCosignatureAppender::AggregateCosignatureAppender ( const GenerationHash generationHash,
std::unique_ptr< model::AggregateTransaction > &&  pAggregateTransaction 
)

Creates aggregate cosignature appender around aggregate transaction (pAggregateTransaction) for the network with the specified generation hash (generationHash).

Member Function Documentation

◆ build()

std::unique_ptr< TransactionType > catapult::builders::AggregateCosignatureAppender::build ( ) const

Builds an aggregate transaction with cosigatures appended.

◆ cosign()

void catapult::builders::AggregateCosignatureAppender::cosign ( const crypto::KeyPair cosigner)

Cosigns an aggregate transaction using cosigner key pair.

Here is the call graph for this function:

Member Data Documentation

◆ m_cosignatures

std::vector<model::Cosignature> catapult::builders::AggregateCosignatureAppender::m_cosignatures
private

◆ m_generationHash

GenerationHash catapult::builders::AggregateCosignatureAppender::m_generationHash
private

◆ m_pAggregateTransaction

std::unique_ptr<model::AggregateTransaction> catapult::builders::AggregateCosignatureAppender::m_pAggregateTransaction
private

◆ m_transactionHash

Hash256 catapult::builders::AggregateCosignatureAppender::m_transactionHash
private

The documentation for this class was generated from the following files: