Right now process_response only decodes a successful PSBT which it validates. Error response bodies should also be parsed to be displayed safely to end users. As specified in the well known errors section of BIP 78.
Errors from process_response may be improved by being separated into safe ReceiverError::WellKnown standard error types that can be displayed in the UI and ReceiverError::DebugOnly which "can only appear in debug logs." Separation would simplify an integration's error handling.
Right now
process_responseonly decodes a successful PSBT which it validates. Error response bodies should also be parsed to be displayed safely to end users. As specified in the well known errors section of BIP 78.Errors from
process_responsemay be improved by being separated into safeReceiverError::WellKnownstandard error types that can be displayed in the UI andReceiverError::DebugOnlywhich "can only appear in debug logs." Separation would simplify an integration's error handling.