Do you remember that bit about darksend transactions being anonymous? Yeah, well it isn't possible to figure out where they come from
Solarminer, thanks for the explanation. I also think the vending machine idea is a great example of the power and versatility of instantly confirming crypto. It's a fantastic initiative. But I can see some banana skins that you might want to think about before rolling it out to a public demo.
First of all, this:
If a darksend transactions without exact amount is sent, it keeps the change.
...I don't think that's acceptable because it isn't commercially consistent and basically amounts to theft. Think two 13 year old teenage kids with iPhones who buy a coke. One gets change and one doesn't cos they're not technologically nerdy enough to check their denominations ? They don't really want to be faced with questions like "Darksend" "Not Darksend". It might as well be two different currencies.
Further, if change is involved, it should be on condition of supply of a change address, not the on condition of coin denominations. That way the service can be commercially consistent and also optimally serve instances of homogeneous denominations as your current design does. (Because it supplies an implicit change address, but heterogeneous payments then need the option of supplying an explicit one).
It depends on amount you send. Transaction comes from few addresses. Denominations like 0.1, 1.0, 10 are in different addresses.
I'd just ditch the whole idea of change since it isn't really compatible with cryptocurrency (other than change addresses in wallets where the wallet itself has full control over everything). Just accept exact amounts otherwise no coke - since it's far easier for a customer to type the right amount into their wallet than be worrying about how their payment was denominated. Doesn't the QR code do that for them anyway ?
Sorry to be so nerdy about this but it's a great idea and I don't want you to get shot down by a*ssholes (other than me
) who home in on the glaring banana skins of the concept only to ignore the huge potential of it.
Also, what you're demonstrating isn't really a vending machine, it's a metaphor for an entire commercial business model so it's the commercial priorities that need to be thought through, not the blockchain technicalities. In that regard, details like that change thing can explode in your face when presented to the "wrong" audience.