Let's say I have the stealth addresses S1 (unspent outputs = 10 XMR), S2 (unspent outputs = 20 XMR), S3 (unspent outputs = 30 XMR). Then I'm sending 35 XMR of the outputs to another one-time public key R.
- How does the reference wallet choose which of my stealth addresses will be used to have
35 XMRas input?S1andS3, orS2andS3? Why? - To which address does the reference client send the change? To one of my stealth addresses (
S1,S2, orS3) or to a new stealth addressS4?