diff --git a/electrum/plugins/psbt_nostr/psbt_nostr.py b/electrum/plugins/psbt_nostr/psbt_nostr.py index 0be6ab995..ea53c1a9d 100644 --- a/electrum/plugins/psbt_nostr/psbt_nostr.py +++ b/electrum/plugins/psbt_nostr/psbt_nostr.py @@ -193,6 +193,9 @@ class CosignerWallet(Logger): if event.id in self.known_events: self.logger.info(f'known event {event.id} {util.age(event.created_at)}') continue + if not any(event.pubkey == pubkey for _, pubkey in self.cosigner_list): + self.logger.warning(f"got event from unknown author: {event.pubkey}") + continue if event.created_at > now() + self.KEEP_DELAY: # might be malicious continue