CatapultServer
v0.5.0.1 (Elephant)
|
Extensions for working with transactions.
Definition: TransactionExtensions.h:27
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
TransactionExtensions(const GenerationHash &generationHash)
Creates extensions for transactions for the network with the specified generation hash (generationHas...
Definition: TransactionExtensions.cpp:36
Key Signer
Entity signer's public key.
Definition: EntityBody.h:36
Definition: AddressExtractionExtension.cpp:28
bool Verify(const Key &publicKey, const RawBuffer &dataBuffer, const Signature &signature)
Definition: Signer.cpp:136
GenerationHash m_generationHash
Definition: TransactionExtensions.h:40
void sign(const crypto::KeyPair &signer, model::Transaction &transaction) const
Signs the transaction using signer private key.
Definition: TransactionExtensions.cpp:39
GenerationHash m_generationHash
Definition: HashCalculatorConsumer.cpp:67
bool verify(const model::Transaction &transaction) const
Verifies signature of the transaction.
Definition: TransactionExtensions.cpp:43
void Sign(const KeyPair &keyPair, const RawBuffer &dataBuffer, Signature &computedSignature)
Definition: Signer.cpp:82
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
Binary layout for a transaction.
Definition: Transaction.h:32