CatapultServer  v0.5.0.1 (Elephant)
catapult::extensions::TransactionExtensions Class Reference

Extensions for working with transactions. More...

Collaboration diagram for catapult::extensions::TransactionExtensions:

Public Member Functions

 TransactionExtensions (const GenerationHash &generationHash)
 Creates extensions for transactions for the network with the specified generation hash (generationHash). More...
 
void sign (const crypto::KeyPair &signer, model::Transaction &transaction) const
 Signs the transaction using signer private key. More...
 
bool verify (const model::Transaction &transaction) const
 Verifies signature of the transaction. More...
 

Private Attributes

GenerationHash m_generationHash
 

Detailed Description

Extensions for working with transactions.

Constructor & Destructor Documentation

◆ TransactionExtensions()

catapult::extensions::TransactionExtensions::TransactionExtensions ( const GenerationHash generationHash)
explicit

Creates extensions for transactions for the network with the specified generation hash (generationHash).

Member Function Documentation

◆ sign()

void catapult::extensions::TransactionExtensions::sign ( const crypto::KeyPair signer,
model::Transaction transaction 
) const

Signs the transaction using signer private key.

Here is the call graph for this function:

◆ verify()

bool catapult::extensions::TransactionExtensions::verify ( const model::Transaction transaction) const

Verifies signature of the transaction.

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

Member Data Documentation

◆ m_generationHash

GenerationHash catapult::extensions::TransactionExtensions::m_generationHash
private

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