Extract {script, controlBlock} from a taproot script-path witness stack, ignoring any annex (last item starting 0x50 when >1 items, per BIP-341). Returns undefined for key-path spends (single-element stack).
Extract {script, controlBlock} from a taproot script-path witness stack, ignoring any annex (last item starting 0x50 when >1 items, per BIP-341). Returns undefined for key-path spends (single-element stack).