mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-19 16:18:46 +02:00
find_index_matching_context accepted an entry matching either our excess or our nonce, while fill_round_2 requires both, so the two could disagree on which entry is ours and signing could return success without adding a signature. Both also indexed participant_data by position up to num_participants, which a counterparty can send short. Match on both keys and iterate the entries the slate carries. Require the participant count to be exact before signing a contract, and check for two participants in the contract tx log before pairing them with 'xor 1'.