Skip to content

Conversation

shesek
Copy link
Contributor

@shesek shesek commented Mar 22, 2025

The recovery scriptPubKey needs to be prefixed with its CompactSize-encoded length when computing the sPK hash.

I verified this by:

Alternatively, the implementation could be amended to match the current specification and drop the length prefix. Since this is committing to a single element, the length isn't really necessary.

The recovery scriptPubKey needs to be prefixed with its CompactSize-encoded length.
@jonatack jonatack added Proposed BIP modification Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified labels Mar 23, 2025
@jonatack
Copy link
Member

cc @jamesob for feedback

@bitcoin bitcoin deleted a comment from Dieu3556 Apr 9, 2025
@murchandamus
Copy link
Contributor

Given that BIP 345 was withdrawn: @jamesob and @shesek, Is this pull request still relevant or should it be closed?

@murchandamus murchandamus added the PR Author action required Needs updates, has unaddressed review comments, or is otherwise waiting for PR author label Jul 16, 2025
@jamesob
Copy link
Contributor

jamesob commented Aug 8, 2025

Looks good to me - doesn't hurt to keep updated.

@jonatack jonatack removed Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified PR Author action required Needs updates, has unaddressed review comments, or is otherwise waiting for PR author labels Aug 8, 2025
@jonatack jonatack merged commit 3821aa3 into bitcoin:master Aug 8, 2025
4 checks passed
Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

ACK, as this modifies the specification, it might be worth adding a changelog.

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

Successfully merging this pull request may close these issues.

4 participants