Question regarding MultiSig outputs Just saw good question on Telegram:

So I working on an algorithm that would download and process bitcoin blocks, specifically the transactions in them. I want to take every output address of every transaction in a block and query my database if any users own this address as their deposit address. Initially I thought an output can only have one address and so I can just credit the person who owns it with the amount of that output. But now I found out that an output can actually have multiple addresses to it and thats called multisig. I don’t really understand the concept of this. So what if a person uses his deposit address that I’ve given them as first address and they also use another address of their own as second address in a single output? Can they use that output with their address to waste it so then so I lose the money they deposited?
No, when multiple entities create a multisig address together, it's still a single address. It's merely that the locking script that holds the funds needs more than one signature to allow funds to be sent. So, when you're writing an indexer, you can likely get away at first with simply not distinguish singlesig and multisig addresses.