PSBT for Confidential Assets

This commit is contained in:
Glenn Willen 2019-05-01 18:28:10 -07:00 committed by Steven Roose
parent 059b90f0e6
commit 16beefa2d2
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87
20 changed files with 1166 additions and 227 deletions

View file

@ -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);

View file

@ -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);