Post
Topic
Board Development & Technical Discussion
Merits 3 from 2 users
Re: C# Bitcoin Address Validation [Legacy, Nested SegWit, Native SegWit] | OFFLINE
by
Coding Enthusiast
on 20/08/2021, 07:07:21 UTC
⭐ Merited by ETFbitcoin (2) ,vapourminer (1)
So there should be a way for Nested SegWit (P2SH) too.
The point I was making is that you can't know the script type that was hashed by seeing the address alone. In other words you can validate a P2SH address and get the 20-byte hash out but there is no way to tell from the address if the script type which is hashed is P2WPKH or P2WSH or a legacy redeem script or something else entirely (eg. P2TR-P2SH).