Bit-Wasp / bitcoin-php

Bitcoin implementation in PHP
The Unlicense
1.05k stars 419 forks source link

Support signing and verifying messages signed with a segwit address. #874

Open sanderkruger opened 3 years ago

afk11 commented 3 years ago

Hi, thanks for the PR! I haven't been keeping up with cutting edge side of things, but I wasn't 100% sure there was a way to sign a message with a segwit address? Is there a BIP for this?

[1] https://bitcoin-development.narkive.com/EpLpjyeL/sign-verify-message-against-segwit-p2sh-and-bech32-addresses [2] https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki#Legacy