Skip to content

Conversation

@jonatack
Copy link
Member

Add test coverage for passing an invalid sighashtype to RPCs signrawtransactionwithwallet, signrawtransactionwithkey, walletprocesspsbt, and descriptorprocesspsbt.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 26, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK MarcoFalke, brunoerg

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@jonatack jonatack force-pushed the 2023-07-invalid-sighashtype-test-coverage branch from f27f460 to 9dde725 Compare July 27, 2023 01:25
Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think it is fine to squash all the sighhashtype commits into one. They all do the same thing, and splitting it just makes review work harder, because at a minimum for each commit there is additional overhead for reviewers to check that a commit doesn't add a backdoor and removes it in the next commit.

jonatack added 3 commits July 27, 2023 06:37
in RPCs descriptorprocesspbst, walletprocesspbst, signrawtransactionwithkey,
and signrawtransactionwithwallet.
as they are parsed identically.

See AmountFromValue() / ParseFixedPoint() / UniValue#getValStr()
@jonatack jonatack force-pushed the 2023-07-invalid-sighashtype-test-coverage branch from 9dde725 to 90c8f79 Compare July 27, 2023 13:03
@jonatack
Copy link
Member Author

Thanks @MarcoFalke, done.

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ACK 90c8f79 🎥

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: lgtm ACK 90c8f79e945863f3818748b86572948d1558aec3 🎥
4nQVxrCzq3s4J1Z4BUrM5/b3iTRnVbJgJm6YkPfqhKZXEU7aCffkfhrz97XrUTitu/61d3dFQ202n8xosxSfBQ==

Copy link
Contributor

@brunoerg brunoerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

light crACK 90c8f79

@fanquake fanquake requested a review from achow101 July 28, 2023 14:21
@fanquake fanquake merged commit eb95368 into bitcoin:master Aug 1, 2023
@jonatack jonatack deleted the 2023-07-invalid-sighashtype-test-coverage branch August 1, 2023 16:02
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 9, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants