Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Signature with Message Signature #326

Conversation

masud-abdulkadir
Copy link
Contributor

When attempting to use verify_message() function, using Singature kept leading to InvalidSignature.

As such, we replaced Signature with MessageSignature from bitcoin::sign_message::MessageSignature.

We also noticed that there was a // TODO comment to test verify_message, so we also added a test function and it works with the new MessageSignature.

Co-authored-by: mplsgrant <58152638+mplsgrant@users.noreply.github.com>
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 2e4dac9

@tcharding tcharding merged commit 05f5b82 into rust-bitcoin:master Apr 30, 2024
10 checks passed
@tcharding
Copy link
Member

tcharding commented Apr 30, 2024

Legendary, thanks!

tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 1, 2024
In rust-bitcoin#326 we changed a function to use
`bitcoin::sign_message::MessageSignature` but doing so requires the
"base64" feature to be on for `bitcoin`. This did not get caught by CI
but improvements to CI in rust-bitcoin#338 will now catch this.

Add a feature to `json` and `client` that allows enabling "base64" if
the `verifymessage` RPC call is required.
tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 1, 2024
In rust-bitcoin#326 we changed a function to use
`bitcoin::sign_message::MessageSignature` but doing so requires the
"base64" feature to be on for `bitcoin`. This did not get caught by CI
but improvements to CI in rust-bitcoin#338 will now catch this.

Add a feature to `json` and `client` that allows enabling "base64" if
the `verifymessage` RPC call is required.
tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 1, 2024
In rust-bitcoin#326 we changed a function to use
`bitcoin::sign_message::MessageSignature` but doing so requires the
"base64" feature to be on for `bitcoin`. This did not get caught by CI
but improvements to CI in rust-bitcoin#338 will now catch this.

Add a feature to `json` and `client` that allows enabling "base64" if
the `verifymessage` RPC call is required.
tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 1, 2024
In rust-bitcoin#326 we changed a function to use
`bitcoin::sign_message::MessageSignature` but doing so requires the
"base64" feature to be on for `bitcoin`. This did not get caught by CI
but improvements to CI in rust-bitcoin#338 will now catch this.

Add a feature to `json` and `client` that allows enabling "base64" if
the `verifymessage` RPC call is required.
tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 1, 2024
In rust-bitcoin#326 we changed a function to use
`bitcoin::sign_message::MessageSignature` but doing so requires the
"base64" feature to be on for `bitcoin`. This did not get caught by CI
but improvements to CI in rust-bitcoin#338 will now catch this.

Add a feature to `json` and `client` that allows enabling "base64" if
the `verifymessage` RPC call is required.
tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 1, 2024
In rust-bitcoin#326 we changed a function to use
`bitcoin::sign_message::MessageSignature` but doing so requires the
"base64" feature to be on for `bitcoin`. This did not get caught by CI
but improvements to CI in rust-bitcoin#338 will now catch this.

Add a feature to `json` and `client` that allows enabling "base64" if
the `verifymessage` RPC call is required.
@tcharding tcharding mentioned this pull request May 1, 2024
tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 2, 2024
In rust-bitcoin#326 we changed a function to use
`bitcoin::sign_message::MessageSignature` but doing so requires the
"base64" feature to be on for `bitcoin`. This did not get caught by CI
but improvements to CI in rust-bitcoin#338 will now catch this.

Add a feature to `json` and `client` that allows enabling "base64" if
the `verifymessage` RPC call is required.
tcharding added a commit to tcharding/rust-bitcoincore-rpc that referenced this pull request May 4, 2024
…ure"

This reverts commit 05f5b82, reversing
changes made to c0fc7cb.
tcharding added a commit that referenced this pull request May 5, 2024
0b08150 Revert "Merge #326: Replace Signature with Message Signature" (Tobin C. Harding)

Pull request description:

  …e with Message Signature"

  This reverts commit 05f5b82, reversing changes made to c0fc7cb.

  #326 was broken, I should never have merged it. It also should never have gotten past CI. All blame falls on me.

ACKs for top commit:
  apoelstra:
    ACK 0b08150

Tree-SHA512: d42c6e1c0e21fd6394d295279d13bdc9a3e34e04df13dc2907336f64f68e111cbf80454d25997382a81ceb6da5a8ca6b9fd28f2a489b3a33c9b5e4f68494e827
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.

2 participants