pset: verify blind value and asset proofs when signing

This commit is contained in:
Andrew Chow 2021-09-09 00:45:45 -04:00
parent a7ef9f325d
commit b2a7007961
5 changed files with 56 additions and 2 deletions

View file

@ -37,6 +37,10 @@ bilingual_str TransactionErrorString(const TransactionError err)
return Untranslated("Transaction values or blinders are not balanced");
case TransactionError::UTXOS_MISSING_BALANCE_CHECK:
return Untranslated("Missing UTXOs that are needed to check transaction balance");
case TransactionError::INVALID_VALUE_PROOF:
return Untranslated("Proof of blinded value is invalid");
case TransactionError::INVALID_ASSET_PROOF:
return Untranslated("Proof of blinded asset is invalid");
// no default case, so the compiler can warn about missing cases
}
assert(false);