Do you plan to extend this code? A few ideas are:
- Integrate with (own) bitcoin network monitoring node and notify the web frontend via socket.io (no busy waiting)
- Support (simple) invoices with a fixed (or dynamic) amount.
- Support HD wallets and use only the extended public key on the server side (no need for the MySQL database, at least not for bitcoin addresses).
- ...
I was not aware of socket.io, what a great find! I was using Wt to accomplish the same thing for another project; socket.io seems far more practical.
Can you explain how you would use the extended public key on the server? I was planning to build the next version of this project using Python and Redis, but it would be great to just use Python/socket.io to do everything without a database...I just don't know how you'd safely generate a key pair on a public-facing server.