When I ask the google what is the purpose of P2WPKH nested in P2SH, it says the following:
This allows the user to send funds to a SegWit (Segregated Witness) address using a non-SegWit transaction, which can be useful in cases where the user's wallet or software does not support SegWit transactions.
But I do not get it, if a wallet does not support segwit, how will a wallet then create a transaction with witness data to spends it.
So my question: What is the purpose of P2WPKH-P2SH? What do we get with sending SegWit type to non-segwit address (starting with 3
base58check for P2SH)?
P2SH-P2WPKH
orP2WPKH-P2SH
for P2WPKH nested in P2SH? – dassd Sep 03 '23 at 19:273
, it won't even know if the hash is from some random redeem script or from witness program (0 for version then 20 byte for hash of public key)? How does wallet wont be able to create address when its literally classic P2SH? – dassd Sep 03 '23 at 19:35