mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-28 11:28:33 +01:00
De-panic the contract paths flagged in review plus several found alongside them: - new: use unsigned_abs (abs() panics on i64::MIN). - proofs: surface InvoiceProof serialization errors instead of expect(); bounds- check the participant index before indexing participant_data. - utils/slate: propagate the error when a context input is missing from the db instead of unwrapping. - revoke: return an error when a locked input has no cached commitment. - selection: checked i64/u64 conversions so large amounts can't wrap into a wrong (possibly negative) change. - types: checked sum of output amounts. Addresses PR #754 review (new.rs, proofs.rs, utils.rs, selection.rs).