Using BitcoinJS - How do you verify a message using a segwit bech32 (bc1…) / P2SH (3…) addresses?

0

I created a signature from a message using my private key. But how do I verify this signed message using my segwit addresses of 3... or bc1...? How do I verify this using the BitcoinJS library?

Patoshi パトシ

Posted 2018-03-31T04:11:03.307

Reputation: 8 911

Answers

2

A Trezor signed message with a 3 address can be verified here:

https://jhoenicke.github.io/brainwallet.github.io/#verify

Or your can verify it with another Trezor wallet.

xtraelv

Posted 2018-03-31T04:11:03.307

Reputation: 36

1

There is no established standard (yet) for signatures with addresses other than P2PKH (1...) addresses.

So whatever signature you created, it will only verify against the corresponding P2PKH address.

There is some ongoing discussion about new message signatures for this purpose, but nothing concrete.

Pieter Wuille

Posted 2018-03-31T04:11:03.307

Reputation: 54 032