Thank you for your assessment. Is it possible to decode “txinwitness” even further? So the first value:
"304402201616c3090b25b40a1972fc1af2100fac806c6671a6c0f2c3d70760dc0bddda3c02203ae0cb30476e5c9ecfe022cedc645fb7e82fcd4dc966935eb5dd9016af0311c501",
If you mean a command to decode it, AFAIK there's none but that's the signature followed by the sighash flag "
0x01" so it's basically the actual data that it represents.
The DER-encoded signature:
304402201616c3090b25b40a1972fc1af2100fac806c6671a6c0f2c3d70760dc0bddda3c02203ae0cb30476e5c9ecfe022cedc645fb7e82fcd4dc966935eb5dd9016af0311c5
And the SigHash type:
01
The signature can be further sorted-out to get the R and S values, refer to BIP66: (
https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki#der-encoding-reference)