Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction_util.h
Show All 18 Lines | |||||
/** | /** | ||||
* Sign a transaction with the given keystore and previous transactions | * Sign a transaction with the given keystore and previous transactions | ||||
* | * | ||||
* @param mtx The transaction to-be-signed | * @param mtx The transaction to-be-signed | ||||
* @param keystore Temporary keystore containing signing keys | * @param keystore Temporary keystore containing signing keys | ||||
* @param coins Map of unspent outputs - coins in mempool and current | * @param coins Map of unspent outputs - coins in mempool and current | ||||
* chain UTXO set, may be extended by previous txns outputs after call | * chain UTXO set, may be extended by previous txns outputs after call | ||||
* @param hashType The signature hash type | * @param hashType The signature hash type | ||||
* @returns JSON object with details of signed transaction | * @param result JSON object where signed transaction results accumulate | ||||
*/ | */ | ||||
UniValue SignTransaction(CMutableTransaction &mtx, | void SignTransaction(CMutableTransaction &mtx, const SigningProvider *keystore, | ||||
const SigningProvider *keystore, | std::map<COutPoint, Coin> &coins, const UniValue &hashType, | ||||
std::map<COutPoint, Coin> &coins, | UniValue &result); | ||||
const UniValue &hashType); | |||||
/** | /** | ||||
* Parse a prevtxs UniValue array and get the map of coins from it | * Parse a prevtxs UniValue array and get the map of coins from it | ||||
* | * | ||||
* @param prevTxs Array of previous txns outputs that tx depends on but | * @param prevTxs Array of previous txns outputs that tx depends on but | ||||
* may not yet be in the block chain | * may not yet be in the block chain | ||||
* @param keystore A pointer to the temprorary keystore if there is one | * @param keystore A pointer to the temprorary keystore if there is one | ||||
* @param coins Map of unspent outputs - coins in mempool and current | * @param coins Map of unspent outputs - coins in mempool and current | ||||
Show All 13 Lines |