I am planning to attempt to write a simple fair lottery service in probably ruby. Ultimately I am looking for recommendations on what type of library to use, and some configuration information. There is a bitcoin-ruby gem, but I was wondering if it's possible to use that with BCH or even maybe BSV. BTC is just too unattractive to me for a variety of reasons, and many other coins, while feasible or even technically attractive, there's just too many features to differentiate them.
Anyway, yeah, my main question is just high level details at this point, about programmatically handling transactions. I imagine I will want to plug into some blockchain explorer like webservice or API, so that I can track that funds are transferred successfully, and so I won't have to run a full node myself. So the biggest question is whether the APIs I can find out there will handle these hard forked coins. Then on my end I will be signing transactions, and I'm not exactly clear on how transactions get submitted to miners, so I'll be researching that.
The main purpose is just to gain familiarity with crypto programming, as I imagine there's already plenty of similar projects out there. I also have a highly specific use case in mind, that I can't really get into to much detail.
I know this type of stuff can be done with smart contracts, but I'm not really interested in doing that, although that could be a thing for the future. It would be people transferring a balance on to the site, having a lottery run with hashes to prove fairness, and then transferring the outputs to the winner. The idea is to use a lottery as an alternative to a savings account, so that if you want to buy something specific, you find a lottery pool for that amount, and then when you have money to "save", you play until you win.
But anyway, any help with just a high level overview of these programming issues, or where y'all might recommend I look, that would be helpful.
[link] [comments]
from Bitcoin - A Peer to Peer Electronic Cash System https://ift.tt/3A2wChR
No comments:
Post a Comment
We have received your message and would like to thank you for writing to us, we will reply by email as soon as possible.
Talk to you soon,
[Pakcoin Worker]
[Pakcoin Global]