CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace builders {
57 std::unique_ptr<Transaction>
build()
const;
63 template<
typename TTransaction>
66 template<
typename TTransaction>
67 std::unique_ptr<TTransaction>
buildImpl()
const;
const Key & signer() const
Returns signer.
Definition: TransactionBuilder.h:41
SecretProofBuilder(model::NetworkIdentifier networkIdentifier, const Key &signer)
Definition: SecretProofBuilder.cpp:25
UnresolvedAddress m_recipient
Definition: SecretProofBuilder.h:72
void setProof(const RawBuffer &proof)
Sets the proof data to proof.
Definition: SecretProofBuilder.cpp:45
std::unique_ptr< Transaction > build() const
Builds a new secret proof transaction.
Definition: SecretProofBuilder.cpp:60
void setRecipient(const UnresolvedAddress &recipient)
Sets the recipient to recipient.
Definition: SecretProofBuilder.cpp:41
size_t size() const
Definition: SecretProofBuilder.cpp:56
Hash256 m_secret
Definition: SecretProofBuilder.h:71
model::LockHashAlgorithm m_hashAlgorithm
Definition: SecretProofBuilder.h:70
void setSecret(const Hash256 &secret)
Sets the secret to secret.
Definition: SecretProofBuilder.cpp:37
std::unique_ptr< EmbeddedTransaction > buildEmbedded() const
Builds a new embedded secret proof transaction.
Definition: SecretProofBuilder.cpp:64
model::EmbeddedSecretProofTransaction EmbeddedTransaction
Definition: SecretProofBuilder.h:31
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Base transaction builder.
Definition: TransactionBuilder.h:31
Builder for a secret proof transaction.
Definition: SecretProofBuilder.h:28
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
size_t sizeImpl() const
Definition: SecretProofBuilder.cpp:69
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Definition: AddressExtractionExtension.cpp:28
model::SecretProofTransaction Transaction
Definition: SecretProofBuilder.h:30
void setHashAlgorithm(model::LockHashAlgorithm hashAlgorithm)
Sets the hash algorithm to hashAlgorithm.
Definition: SecretProofBuilder.cpp:33
std::unique_ptr< TTransaction > buildImpl() const
LockHashAlgorithm
Lock secret hash algorithm.
Definition: LockHashAlgorithm.h:27
model::AggregateTransaction TransactionType
Definition: AggregateTransactionBuilder.cpp:28
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
std::vector< uint8_t > m_proof
Definition: SecretProofBuilder.h:73