# How miner collects their transaction fee in Confidential Transaction

These are followup questions from Transaction Fee in Confidential Transactions

In Confidential Transaction, Alice own 10btc sends 1 btc to Bob

Input : C1 = Commit (10btc) = 10 G + 10 H
Output: C2 = Commit (1 btc) = 1 G + 1 H
C3 = Commit (8.999 btc) = 8.999 G + 8.999H
C4 = Commit (stated as fee) (0.001 btc) = 0.001G + 0.001H
C1 = C2 + C3 + C4. (for simplicity reason, the r (blinding value rG) is the same as v (actual btc value vH).

My questions are
Q1. Is the winning miner is pre-determined already?
Q2. If Q1 = Yes? Then what is the coinbase address?
Q3. If Q1 = No? Then how does Alice know which address to send the fee to?
Q4. Suppose the fee is not yet sent to the winning miner yet? Then how does the winning miner know the blinding value of r = 0.001 since Alice don't know which miner to tell. Or the r and v values are not encrypted at all for this case.

Q3. Alice doesn't send the fee to any address. Her transaction simply lists inputs, outputs, and fee (the fee is not an output, it has no address; it's just a field that says "the fee is 0.001", in cleartext - no Pedersen commitment). In your example, the transaction would list {inputs: [utxo with output C1,witness], outputs:[(C2,address1),(C3,address2)], fee:0.001}, and the validity rule would be `C1 = C2 + C3 + 0.001*H`).