CatapultServer
v0.5.0.1 (Elephant)
|
Builder for a secret proof transaction. More...
Public Types | |
using | Transaction = model::SecretProofTransaction |
using | EmbeddedTransaction = model::EmbeddedSecretProofTransaction |
Public Member Functions | |
SecretProofBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
void | setHashAlgorithm (model::LockHashAlgorithm hashAlgorithm) |
Sets the hash algorithm to hashAlgorithm. More... | |
void | setSecret (const Hash256 &secret) |
Sets the secret to secret. More... | |
void | setRecipient (const UnresolvedAddress &recipient) |
Sets the recipient to recipient. More... | |
void | setProof (const RawBuffer &proof) |
Sets the proof data to proof. More... | |
size_t | size () const |
std::unique_ptr< Transaction > | build () const |
Builds a new secret proof transaction. More... | |
std::unique_ptr< EmbeddedTransaction > | buildEmbedded () const |
Builds a new embedded secret proof transaction. More... | |
Public Member Functions inherited from catapult::builders::TransactionBuilder | |
TransactionBuilder (model::NetworkIdentifier networkIdentifier, const Key &signer) | |
Creates a transaction builder with networkIdentifier and signer. More... | |
const Key & | signer () const |
Returns signer. More... | |
void | setDeadline (catapult::Timestamp deadline) |
Sets transaction deadline. More... | |
void | setMaxFee (catapult::Amount fee) |
Sets maximum transaction fee. More... | |
Private Member Functions | |
template<typename TTransaction > | |
size_t | sizeImpl () const |
template<typename TTransaction > | |
std::unique_ptr< TTransaction > | buildImpl () const |
template<typename TransactionType > | |
std::unique_ptr< TransactionType > | buildImpl () const |
Private Attributes | |
model::LockHashAlgorithm | m_hashAlgorithm |
Hash256 | m_secret |
UnresolvedAddress | m_recipient |
std::vector< uint8_t > | m_proof |
Additional Inherited Members | |
Protected Member Functions inherited from catapult::builders::TransactionBuilder | |
template<typename TTransaction > | |
std::unique_ptr< TTransaction > | createTransaction (size_t size) const |
Static Protected Member Functions inherited from catapult::builders::TransactionBuilder | |
template<typename T , typename Predicate > | |
static void | InsertSorted (std::vector< T > &vector, const T &element, Predicate orderPredicate) |
Builder for a secret proof transaction.
using catapult::builders::SecretProofBuilder::EmbeddedTransaction = model::EmbeddedSecretProofTransaction |
using catapult::builders::SecretProofBuilder::Transaction = model::SecretProofTransaction |
catapult::builders::SecretProofBuilder::SecretProofBuilder | ( | model::NetworkIdentifier | networkIdentifier, |
const Key & | signer | ||
) |
Creates a secret proof builder for building a secret proof transaction from signer for the network specified by networkIdentifier.
std::unique_ptr< SecretProofBuilder::Transaction > catapult::builders::SecretProofBuilder::build | ( | ) | const |
Builds a new secret proof transaction.
std::unique_ptr< SecretProofBuilder::EmbeddedTransaction > catapult::builders::SecretProofBuilder::buildEmbedded | ( | ) | const |
Builds a new embedded secret proof transaction.
|
private |
|
private |
void catapult::builders::SecretProofBuilder::setHashAlgorithm | ( | model::LockHashAlgorithm | hashAlgorithm | ) |
Sets the hash algorithm to hashAlgorithm.
void catapult::builders::SecretProofBuilder::setProof | ( | const RawBuffer & | proof | ) |
Sets the proof data to proof.
void catapult::builders::SecretProofBuilder::setRecipient | ( | const UnresolvedAddress & | recipient | ) |
Sets the recipient to recipient.
void catapult::builders::SecretProofBuilder::setSecret | ( | const Hash256 & | secret | ) |
Sets the secret to secret.
size_t catapult::builders::SecretProofBuilder::size | ( | ) | const |
Returns size of secret proof transaction.
|
private |
|
private |
|
private |
|
private |
|
private |