Silent payments scanning needs the public key from every input. For SegWit inputs it is in the witness stack. For P2PKH inputs it is in scriptSig. Without these new functions, callers must deserialize the raw transaction themselves to reach that data, which is difficult and error-prone.
Adds three functions:
btck_transaction_input_count_witness_stack_itemsitem countbtck_transaction_input_get_witness_stack_itemsingle item by index viabtck_WriteBytesbtck_transaction_input_get_script_sigfull scriptSig viabtck_WriteBytes
All three are exposed in the C++ wrapper via GetWitnessStackNumItems(), GetWitnessStackItem(), WitnessStack() (generated by MAKE_RANGE_METHOD), and GetScriptSig().
The scriptSig commit was previously in #35382, bundled here per stickies-v's suggestion.