Bit-Wasp / bitcoin-php

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

Can I get a redeem script from segwit address without public key? #838

Closed vvpgrp closed 4 years ago

vvpgrp commented 4 years ago

Can I get a redeem script from segwit address without public key and how can I do it?

afk11 commented 4 years ago

No, addresses contain hashes of scripts (or pubkeys), and you can't reverse the hash function.

vvpgrp commented 4 years ago

No, addresses contain hashes of scripts (or pubkeys), and you can't reverse the hash function.

Thanks :)