mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
PSBT for Confidential Assets
This commit is contained in:
parent
059b90f0e6
commit
16beefa2d2
20 changed files with 1166 additions and 227 deletions
|
|
@ -33,6 +33,12 @@ std::string TransactionErrorString(const TransactionError err)
|
|||
return "PSBTs not compatible (different transactions)";
|
||||
case TransactionError::SIGHASH_MISMATCH:
|
||||
return "Specified sighash value does not match existing value";
|
||||
case TransactionError::BLINDING_REQUIRED:
|
||||
return "Transaction is not yet fully blinded";
|
||||
case TransactionError::VALUE_IMBALANCE:
|
||||
return "Transaction values or blinders are not balanced";
|
||||
case TransactionError::UTXOS_MISSING_BALANCE_CHECK:
|
||||
return "Missing UTXOs that are needed to check transaction balance";
|
||||
// no default case, so the compiler can warn about missing cases
|
||||
}
|
||||
assert(false);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ enum class TransactionError {
|
|||
INVALID_PSBT,
|
||||
PSBT_MISMATCH,
|
||||
SIGHASH_MISMATCH,
|
||||
BLINDING_REQUIRED,
|
||||
VALUE_IMBALANCE,
|
||||
UTXOS_MISSING_BALANCE_CHECK,
|
||||
};
|
||||
|
||||
std::string TransactionErrorString(const TransactionError error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue