Say I'm creating a multi-sig wallet with a friend to bet on the election. Can my deposit to the multi-sig wallet be dependent on the my friends deposit to the wallet?
Say I'm Alice, and my friend is Bob. Our shared multi-sig wallet is S. Would the following work?
Block N:
TxA
Input1: A.amountX
Input2: B.amountX
Output1: S.amountY
A.sig
B.sig
Edit: Received good answer below, to summarize use Partially Signed Bitcoin Transactions (PSBT) BIP-174, it relies on Sighash Flags
, this enables parties to sign more than just their own input.