I'm not sure I understand the fields of my input. I have a P2SH address (Testnet). This is the input of my transaction:
"vin": [
{
"txid": "a61389ff9af670770182198a984a4c1785625c60795bd57645ecc78765b23679",
"vout": 1,
"scriptSig": {
"asm": "0014778daf651b21684b572644b47d551fce0ff71c74",
"hex": "160014778daf651b21684b572644b47d551fce0ff71c74"
},
"txinwitness": [
"3044022034a07f088dd88396cd378912a4ed6a156701b075f0facbbae810677048c390e602205df07e13bf4d56feece791a1b5e4d94bec9c93aae14bb87a1b4c6c54ae9bf2f701",
"032c27921f2d15e7eca768c0e8a8b1aeb863328c74d6c194d41dde2888d4b0e75b"
],
"sequence": 4294967295
}
],
I understand that: in "asm" i have RedeemScript. In txinwitness i have my signature and the pubblic key. Correct?
Now, from the utxo used:
"txid": "a61389ff9af670770182198a984a4c1785625c60795bd57645ecc78765b23679",
"vout": 1,
"address": "2N7MaihNErbNH8XTkuZWtJYPzMQAWMPVKHd",
"label": "",
"redeemScript": "0014778daf651b21684b572644b47d551fce0ff71c74",
"scriptPubKey": "a9149ac58ff47e27214b158b38da04bc8cbf72def14387",
"amount": 0.01944571,
"confirmations": 116,
"spendable": true,
"solvable": true,
"desc": "sh(wpkh([7de694b7/0'/0'/7']032c27921f2d15e7eca768c0e8a8b1aeb863328c74d6c194d41dde2888d4b0e75b))#6z7uwusp",
"safe": true
I deduce that I have used a P2SH-P2WPKH output. So in the ScriptPubkey I find the unlock condition (HASH160 of the public key of my address). In the redeem script I find HASH160 of the compressed public key 032c27921f2d15...
is it correct to say that, as an additional condition, to unlock a UTXO P2SH-P2WPKH, compared to a P2PKH, you need the HASH of an additional public key?