Skip to content

Conversation

@apoelstra
Copy link
Member

The messages we sign with musig2 do not need to be pre-hashed. They just need to be 32 bytes long. To make this clearer, stop using Message.

Fixes #810.

The messages we sign with musig2 do not need to be pre-hashed. They just
need to be 32 bytes long. To make this clearer, stop using Message.
Copy link
Member Author

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

On 9535f62 successfully ran local tests

@stevenroose
Copy link
Contributor

Didn't you push the release just a couple hours after this?

@apoelstra
Copy link
Member Author

Didn't you push the release just a couple hours after this?

I released 0.31.1 which just updated some deprecation messages. The musig2 release will be 0.32.0 which is not released yet.

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 9535f62

@apoelstra apoelstra merged commit 3233cb9 into rust-bitcoin:master Jun 25, 2025
28 checks passed
@apoelstra apoelstra deleted the push-vyluklmvmott branch June 25, 2025 14:51
chain-forgexcr45 added a commit to chain-forgexcr45/rust-secp256k1 that referenced this pull request Sep 28, 2025
…n Message for musig2 messages

9535f629aa02cf81c32be490053b361b7d3194c7 musig: use [u8; 32] rather than Message for musig2 messages (Andrew Poelstra)

Pull request description:

  The messages we sign with musig2 do not need to be pre-hashed. They just need to be 32 bytes long. To make this clearer, stop using Message.
  
  Fixes #810.


ACKs for top commit:
  tcharding:
    ACK 9535f629aa02cf81c32be490053b361b7d3194c7


Tree-SHA512: 5a40c60be15d4c67032d1e5e70e7675a58f76e4a21b6c78d31ef910451de54e0c60065ca6915b5693cfb75fca733422640d804ea90b2acf6613b0c431cf8a09f
william2332-limf added a commit to william2332-limf/rust-secp256k1 that referenced this pull request Oct 2, 2025
…n Message for musig2 messages

9535f629aa02cf81c32be490053b361b7d3194c7 musig: use [u8; 32] rather than Message for musig2 messages (Andrew Poelstra)

Pull request description:

  The messages we sign with musig2 do not need to be pre-hashed. They just need to be 32 bytes long. To make this clearer, stop using Message.
  
  Fixes #810.


ACKs for top commit:
  tcharding:
    ACK 9535f629aa02cf81c32be490053b361b7d3194c7


Tree-SHA512: 5a40c60be15d4c67032d1e5e70e7675a58f76e4a21b6c78d31ef910451de54e0c60065ca6915b5693cfb75fca733422640d804ea90b2acf6613b0c431cf8a09f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

musig nonce gen function should take a &[u8] not a Message

3 participants