Let say Alice wants to send Bob 10 XMR and she has 15, so assume the outputs are divided like this -
transaction - {
output #1 - {7, Bob's stealth address}
output #2 - {3, Bob's stealth address}
output #3 - {5, Alice's stealth address}
}
Am I right or am I far off?
If it's liked I said above, I would like a reference to the code that handles the change (calculates a stealth address for it, puts it in the outputs, etc).
Thanks a million for any answers!