CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace builders {
45 std::unique_ptr<model::AggregateTransaction>
build()
const;
58 std::unique_ptr<model::AggregateTransaction>&& pAggregateTransaction);
65 std::unique_ptr<model::AggregateTransaction>
build()
const;
Builder for an aggregate transaction.
Definition: AggregateTransactionBuilder.h:29
A cosignature.
Definition: Cosignature.h:29
void cosign(const crypto::KeyPair &cosigner)
Cosigns an aggregate transaction using cosigner key pair.
Definition: AggregateTransactionBuilder.cpp:77
std::vector< model::Cosignature > m_cosignatures
Definition: AggregateTransactionBuilder.h:71
const Key & signer() const
Returns signer.
Definition: TransactionBuilder.h:41
std::unique_ptr< model::AggregateTransaction > build() const
Builds a new aggregate transaction.
Definition: AggregateTransactionBuilder.cpp:43
GenerationHash m_generationHash
Definition: AggregateTransactionBuilder.h:68
std::unique_ptr< model::AggregateTransaction > m_pAggregateTransaction
Definition: AggregateTransactionBuilder.h:69
Helper to add cosignatures to an aggregate transaction.
Definition: AggregateTransactionBuilder.h:52
void addTransaction(EmbeddedTransactionPointer &&pTransaction)
Adds a transaction.
Definition: AggregateTransactionBuilder.cpp:34
auto Sum(const TContainer &container, TFunction accessor)
Definition: Functional.h:39
std::vector< EmbeddedTransactionPointer > m_pTransactions
Definition: AggregateTransactionBuilder.h:48
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
AggregateCosignatureAppender(const GenerationHash &generationHash, std::unique_ptr< model::AggregateTransaction > &&pAggregateTransaction)
Definition: AggregateTransactionBuilder.cpp:70
Hash256 CalculateHash(LockHashAlgorithm hashAlgorithm, const RawBuffer &data)
Calculates hashAlgorithm hash of data.
Definition: LockHashUtils.cpp:46
uint64_t size
Definition: MemoryCounters.cpp:65
std::unique_ptr< model::AggregateTransaction > build() const
Builds an aggregate transaction with cosigatures appended.
Definition: AggregateTransactionBuilder.cpp:91
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
AggregateTransactionBuilder(model::NetworkIdentifier networkIdentifier, const Key &signer)
Creates an aggregate transaction builder using signer for the network specified by networkIdentifier.
Definition: AggregateTransactionBuilder.cpp:30
Base transaction builder.
Definition: TransactionBuilder.h:31
Hash256 m_transactionHash
Definition: AggregateTransactionBuilder.h:70
const auto & publicKey() const
Returns a public key of a key pair.
Definition: KeyPair.h:56
std::unique_ptr< model::EmbeddedTransaction > EmbeddedTransactionPointer
Definition: AggregateTransactionBuilder.h:31
Definition: AddressExtractionExtension.cpp:28
GenerationHash m_generationHash
Definition: HashCalculatorConsumer.cpp:67
size_t size() const
Returns size of aggregate transaction.
Definition: AggregateTransactionBuilder.cpp:38
void Sign(const KeyPair &keyPair, const RawBuffer &dataBuffer, Signature &computedSignature)
Definition: Signer.cpp:82
model::AggregateTransaction TransactionType
Definition: AggregateTransactionBuilder.cpp:28
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
Binary layout for an aggregate transaction.
Definition: AggregateTransaction.h:47