7 ms·
How did you code up the handling of payments? Was this easy to make?
by tocomment 13y ago
How did you code up the handling of payments? Was this easy to make?
- jbaudanza 13y agoIt's pretty simple. I generated a bunch of public/private keypairs. I kept the private keys offline and I hand out public addresses when people add a message. Then I poll blockchain.info for payments.
- jbaudanza 13y agoalso, the source is on github. https://github.com/jbaudanza/singleservingbitcoin https://github.com/jbaudanza/singleservingbitcoin
- tocomment 13y agoWhich part is generating the keypairs? Is it bitcoin specific? I'm curious how it's done. I'm thinking to code up something where people can have a small amount of bitcoins donated to every URL they visit. If it ever caught one if could be a way to fund content instead of ads.
- jbaudanza 13y agoLook at the Rakefile under `task :generate_keypairs`. It's using the bitcoin-ruby gem