◆ getAddress()
optional< std::string > ledger::core::BitcoinLikeInputApi::getAddress |
( |
| ) |
|
|
overridevirtual |
◆ getCoinbase()
optional< std::string > ledger::core::BitcoinLikeInputApi::getCoinbase |
( |
| ) |
|
|
overridevirtual |
◆ getDerivationPath()
std::vector< std::shared_ptr< api::DerivationPath > > ledger::core::BitcoinLikeInputApi::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::BitcoinLikeInputApi::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::BitcoinLikeInputApi::getPreviousTxHash |
( |
| ) |
|
|
overridevirtual |
◆ getPublicKeys()
std::vector< std::vector< uint8_t > > ledger::core::BitcoinLikeInputApi::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::BitcoinLikeInputApi::getScriptSig |
( |
| ) |
|
|
overridevirtual |
◆ getSequence()
int64_t ledger::core::BitcoinLikeInputApi::getSequence |
( |
| ) |
|
|
overridevirtual |
◆ getValue()
std::shared_ptr< api::Amount > ledger::core::BitcoinLikeInputApi::getValue |
( |
| ) |
|
|
overridevirtual |
◆ isCoinbase()
bool ledger::core::BitcoinLikeInputApi::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::BitcoinLikeInputApi::pushToScriptSig |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
overridevirtual |
◆ setP2PKHSigScript()
void ledger::core::BitcoinLikeInputApi::setP2PKHSigScript |
( |
const std::vector< uint8_t > & |
signature | ) |
|
|
overridevirtual |
◆ setScriptSig()
void ledger::core::BitcoinLikeInputApi::setScriptSig |
( |
const std::vector< uint8_t > & |
scriptSig | ) |
|
|
overridevirtual |
◆ setSequence()
void ledger::core::BitcoinLikeInputApi::setSequence |
( |
int32_t |
sequence | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: