|
| BitcoinLikeWritableInputApi (const std::shared_ptr< ledger::core::BitcoinLikeBlockchainExplorer > &explorer, const std::shared_ptr< api::ExecutionContext > &context, uint32_t sequence, const std::vector< std::vector< uint8_t > > &pubKeys, const std::vector< std::shared_ptr< api::DerivationPath >> &paths, const std::string &address, const std::shared_ptr< api::Amount > &amount, const std::string &previousTxHash, int32_t index, const std::vector< uint8_t > &scriptSig, const std::shared_ptr< api::BitcoinLikeOutput > &previousOutput, const std::string &keychainEngine="") |
|
optional< std::string > | getAddress () override |
|
std::vector< std::vector< uint8_t > > | getPublicKeys () override |
|
std::shared_ptr< api::Amount > | getValue () override |
|
std::vector< std::shared_ptr< api::DerivationPath > > | getDerivationPath () override |
|
bool | isCoinbase () override |
|
optional< std::string > | getCoinbase () override |
|
optional< std::string > | getPreviousTxHash () override |
|
optional< int32_t > | getPreviousOutputIndex () override |
|
std::shared_ptr< api::BitcoinLikeOutput > | getPreviousOuput () override |
|
std::vector< uint8_t > | getScriptSig () override |
|
std::shared_ptr< api::BitcoinLikeScript > | parseScriptSig () override |
|
void | setScriptSig (const std::vector< uint8_t > &scriptSig) override |
|
void | pushToScriptSig (const std::vector< uint8_t > &data) override |
|
void | setSequence (int32_t sequence) override |
|
int64_t | getSequence () override |
|
void | getPreviousTransaction (const std::shared_ptr< api::BinaryCallback > &callback) override |
|
Future< std::vector< uint8_t > > | getPreviousTransaction () |
|
void | setP2PKHSigScript (const std::vector< uint8_t > &signature) override |
|
virtual void | getPreviousTransaction (const std::shared_ptr< BinaryCallback > &callback)=0 |
|
◆ getAddress()
optional< std::string > ledger::core::BitcoinLikeWritableInputApi::getAddress |
( |
| ) |
|
|
overridevirtual |
◆ getCoinbase()
optional< std::string > ledger::core::BitcoinLikeWritableInputApi::getCoinbase |
( |
| ) |
|
|
overridevirtual |
◆ getDerivationPath()
std::vector< std::shared_ptr< api::DerivationPath > > ledger::core::BitcoinLikeWritableInputApi::getDerivationPath |
( |
| ) |
|
|
overridevirtual |
◆ getPreviousOuput()
Retrieve the output spent by this input. Depending on the implementation this method may use a lock to fetch data from a database. Therefore it may have poor performance, use with caution.
- Returns
- The output spent by this input.
Implements ledger::core::api::BitcoinLikeInput.
◆ getPreviousOutputIndex()
optional< int32_t > ledger::core::BitcoinLikeWritableInputApi::getPreviousOutputIndex |
( |
| ) |
|
|
overridevirtual |
Get output index, it identifies which UTXO from tht transaction to spend.
- Returns
- Optional 32 bits integer, index of previous transaction
Implements ledger::core::api::BitcoinLikeInput.
◆ getPreviousTxHash()
optional< std::string > ledger::core::BitcoinLikeWritableInputApi::getPreviousTxHash |
( |
| ) |
|
|
overridevirtual |
◆ getPublicKeys()
std::vector< std::vector< uint8_t > > ledger::core::BitcoinLikeWritableInputApi::getPublicKeys |
( |
| ) |
|
|
overridevirtual |
Returns the public associated with the address. This value can be NULL if you are building a transaction with an address which does not belong to your wallet.
Implements ledger::core::api::BitcoinLikeInput.
◆ getScriptSig()
std::vector< uint8_t > ledger::core::BitcoinLikeWritableInputApi::getScriptSig |
( |
| ) |
|
|
overridevirtual |
◆ getSequence()
int64_t ledger::core::BitcoinLikeWritableInputApi::getSequence |
( |
| ) |
|
|
overridevirtual |
◆ getValue()
std::shared_ptr< api::Amount > ledger::core::BitcoinLikeWritableInputApi::getValue |
( |
| ) |
|
|
overridevirtual |
◆ isCoinbase()
bool ledger::core::BitcoinLikeWritableInputApi::isCoinbase |
( |
| ) |
|
|
overridevirtual |
Check whether input is for a coinbase.
- Returns
- Boolean, true if input belongs to coinbase transaction (reward for mining a block)
Implements ledger::core::api::BitcoinLikeInput.
◆ parseScriptSig()
◆ pushToScriptSig()
void ledger::core::BitcoinLikeWritableInputApi::pushToScriptSig |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
overridevirtual |
◆ setP2PKHSigScript()
void ledger::core::BitcoinLikeWritableInputApi::setP2PKHSigScript |
( |
const std::vector< uint8_t > & |
signature | ) |
|
|
overridevirtual |
◆ setScriptSig()
void ledger::core::BitcoinLikeWritableInputApi::setScriptSig |
( |
const std::vector< uint8_t > & |
scriptSig | ) |
|
|
overridevirtual |
◆ setSequence()
void ledger::core::BitcoinLikeWritableInputApi::setSequence |
( |
int32_t |
sequence | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: