ledger-core
|
#include <BitcoinLikeTransaction.hpp>
Public Member Functions | |
virtual std::string | getHash ()=0 |
virtual std::vector< std::shared_ptr< BitcoinLikeInput > > | getInputs ()=0 |
virtual std::vector< std::shared_ptr< BitcoinLikeOutput > > | getOutputs ()=0 |
virtual std::shared_ptr< BitcoinLikeBlock > | getBlock ()=0 |
virtual int64_t | getLockTime ()=0 |
virtual std::shared_ptr< Amount > | getFees ()=0 |
virtual std::chrono::system_clock::time_point | getTime ()=0 |
virtual std::experimental::optional< int32_t > | getTimestamp ()=0 |
virtual int32_t | getVersion ()=0 |
virtual std::vector< uint8_t > | serialize ()=0 |
virtual std::vector< uint8_t > | serializeOutputs ()=0 |
virtual std::experimental::optional< std::vector< uint8_t > > | getWitness ()=0 |
virtual EstimatedSize | getEstimatedSize ()=0 |
virtual BitcoinLikeSignatureState | setSignatures (const std::vector< BitcoinLikeSignature > &signatures, bool override)=0 |
virtual BitcoinLikeSignatureState | setDERSignatures (const std::vector< std::vector< uint8_t >> &signatures, bool override)=0 |
Class representing a Bitcoin transaction.
|
pure virtual |
Get the block in which the transaction is inserted if the transaction is confirmed.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Estimate the size of the raw transaction in bytes. This method returns a minimum estimated size and a maximum estimated size.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the amount of fees of the transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the hash of the transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the input of the transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the lock time of the transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the output of the transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the time when the transaction was issued or the time of the block including this transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the timestamps serialized in the raw transaction if the underlying currency handles it.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get Transaction version.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Get the witness if the underlying transaction is a segwit transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Serialize the transaction to its raw format.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Serialize outputs of the raw transaction into a byte array using the bitcoin transaction format.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Sign all inputs for given transaction.
Implemented in ledger::core::BitcoinLikeTransactionApi.
|
pure virtual |
Sign all inputs for given transaction. Build DER encoded signature from RSV data.