Assume that Alice is controlling an address that requires multisig to spend bitcoins. Someone wants to send Alice bitcoins and this sender needs to create a
scriptPubKey as part of the output paying Alice.
scriptPubKey in the sender's transaction should look like this:
m pubKey_1, pubkey_2, ...pubKey_m n OP_CHECKMULTISIGVERIFY
How does the sender know the public keys to send funds to Alice? And further more, how does the sender know the value of
m? Isn't it more logical that Alice determines what the minimal number of signatures is?
If I understood correctly this output format is not used anymore, but I still want to understand how it worked.