I wonder, did the customer tell you what it is they are trying to achieve by using the same bitcoin address for everything, including for change? I mean, maybe they are looking to solve a problem that doesn't need solving that way because there are other better ways to go about it.
Goes back to what I said, they took over a project with some really crappy code and instead of starting from scratch they are trying to fix it.
Short (but still long) version. They want to repair BATMs they want to have the ability to send
BTC from any of the techs phones and receive to the same address.
At least that is the theory. This way it all stays in a loop for now and the only cost is TX fees. It's for the short to medium term.
For now, the problem is accounting. Where did DaveF send the funds? Where did the change go? Pmalek was supposed to get $50 in
BTC from the machine what address did it go to? This way at least all the funds stay in that loop.
The plan in the long term is for the home office to be running an app that has the master public key for all the phones so it can monitor what went where and so on.
For now, they have this mess.
Here is the kicker....THEY ARE NOT A CRYPTO COMPANY...THEY HAVE JUST ABOUT NO IDEA HOW CRYPTO WORKS. But, they have been repairing ATMs and self checkout kiosks and Slot machines and the like for years so they figured this should be an easy fit. <cut to laughter, they said easy HAHAHAHAH>
They took over a small company that was doing BATM repair but just the assets, the staff all left as of Sept 30th. So the Tech / Hardware side is close enough to fake it. The other stuff, yeah not so much. And instead of hiring someone they just deal with me and a couple of other IT support people and ask questions like they did, which I then passed on to the forum.
-Dave