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

Signmessage command does not work with Segwit address #119

Closed
Kuosumi opened this issue Nov 9, 2018 · 1 comment
Closed

Signmessage command does not work with Segwit address #119

Kuosumi opened this issue Nov 9, 2018 · 1 comment

Comments

@Kuosumi
Copy link
Contributor

Kuosumi commented Nov 9, 2018

Signmessage in XSN wallet, should sign the address and verify address owner is true.

This works for legacy addresses however; when using SegWit addresses, it returns the following:

Address does not refer to key (code -3)

Address was unable to be signed as expected with that command.

Yes, tried on two different wallets - same issue.

Wallet version 1.0.17

Windows

@bwang22
Copy link
Collaborator

bwang22 commented Dec 8, 2018

The address is a p2sh address, it doesn't have an associated public or private key to sign and verify messages with. The underlying script has a private key associated with it, but not the address itself.

bitcoin/bitcoin#10542

@bwang22 bwang22 closed this as completed Dec 8, 2018
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

No branches or pull requests

2 participants