Skip to content

BIP-0322: polishing follow-up#2155

Open
guggero wants to merge 4 commits into
bitcoin:masterfrom
guggero:bip-0322-follow-up
Open

BIP-0322: polishing follow-up#2155
guggero wants to merge 4 commits into
bitcoin:masterfrom
guggero:bip-0322-follow-up

Conversation

@guggero
Copy link
Copy Markdown
Contributor

@guggero guggero commented May 8, 2026

Addresses a couple of review comments in #2141 as a follow-up.

Comment thread bip-0322.mediawiki Outdated
@jonatack jonatack added the BIP Update by Owner PR by Author or Deputy to modify their own BIP label May 8, 2026
Comment thread bip-0322.mediawiki Outdated
@jonatack
Copy link
Copy Markdown
Member

jonatack commented May 8, 2026

Thanks for following up @guggero!

Here are some suggested edits. Feel free to pick and choose (or for the BIP names, adopt a different format to be used consistently):

https://github.com/jonatack/bips/commits/2026-05-bip322-suggested-edits-or-areas-of-feedback/

@guggero guggero force-pushed the bip-0322-follow-up branch from d9feef3 to 6a61279 Compare May 9, 2026 15:53
@guggero
Copy link
Copy Markdown
Contributor Author

guggero commented May 9, 2026

Thanks a lot for the review and suggested fixes, @jonatack! Took almost all of them, really appreciate the inputs.

I also added a commit to clarify the use of the SIGHASH_DEFAULT for Taproot-based inputs.

Copy link
Copy Markdown
Member

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

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

Left some comments.
It's my first time reading BIP322, so I also left some comments outside of the current PR diff :)

Comment thread bip-0322.mediawiki Outdated

The [[#full-proof-of-funds|Proof of Funds]] variant allows demonstrating control
of a set of UTXOs in addition to the message being signed.
The list of UTXOs may or may not be related to the address being signed with (the
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm a bit unsure about this sentence... I think this is an implementation detail that doesn't really belong in the motivation. Also, before reading the whole BIP, I found this sentence to be a bit confusing, it almost reads as if a signer could prove ownership of arbitrary UTXOs, including ones they don't control.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You're right, this sounds weird in the motivation. I moved the section to the definition of the Proof of Funds variant and also attempted to make it more clear in what it means. What do you think?

Comment thread bip-0322.mediawiki Outdated
Comment thread bip-0322.mediawiki Outdated
This specification is backwards compatible with the legacy signmessage/verifymessage specification
through the special case as described above.
This specification is backwards-compatible with the legacy signmessage/verifymessage specification
through the special case [#legacy|as described above].
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The [#legacy|as described above] is not a link on Github, and is shown as this:

Image

I think you want it written as: [[#legacy|as described above]].

Also, you may want to move this to the second commit (it's in the fourth one at the moment).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right, good catch!

Comment thread bip-0322.mediawiki Outdated
Comment thread README.mediawiki Outdated
Comment thread bip-0322.mediawiki Outdated
Copy link
Copy Markdown
Member

@murchandamus murchandamus left a comment

Choose a reason for hiding this comment

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

Good improvements. I just have one additional suggestion.

Comment thread bip-0322.mediawiki Outdated
@murchandamus murchandamus added the PR Author action required Needs updates, has unaddressed review comments, or is otherwise waiting for PR author label May 12, 2026
@guggero guggero force-pushed the bip-0322-follow-up branch from 6a61279 to ae43dce Compare May 13, 2026 11:10
@murchandamus murchandamus removed the PR Author action required Needs updates, has unaddressed review comments, or is otherwise waiting for PR author label May 13, 2026
Copy link
Copy Markdown
Member

@murchandamus murchandamus left a comment

Choose a reason for hiding this comment

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

Sorry for the piece-meal review: I noticed an open parenthesis that isn’t being closed on this read. Other than that all the changes looks good to me. Let’s get this shipped. :)

Comment thread bip-0322.mediawiki
Comment on lines +172 to +173
This UTXO set is chosen freely by the signer and need not be associated with the signing address
(the <code>message_challenge</code>. For example, it may consist of outputs paid to that address,
Copy link
Copy Markdown
Member

@murchandamus murchandamus May 13, 2026

Choose a reason for hiding this comment

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

There is at least a closing parenthesis missing here, but the first sentence reads a bit wonky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BIP Update by Owner PR by Author or Deputy to modify their own BIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants