Meteor and Bitcoin (Lightning Talk)

8

Click here to load reader

description

My experience integrating Bitcoin with a Meteor app. Given in August 2013 at the Meteor meetup in San Francisco.

Transcript of Meteor and Bitcoin (Lightning Talk)

Page 1: Meteor and Bitcoin (Lightning Talk)

Meteor and BitcoinMagical, awesome cryptocurrency for a

magical, awesome framework

Page 2: Meteor and Bitcoin (Lightning Talk)

Our implementation

● Initially planned an elaborate scheme…○ Multiple offline servers○ Manual transfers between servers

Page 3: Meteor and Bitcoin (Lightning Talk)

Our implementation

Page 4: Meteor and Bitcoin (Lightning Talk)

Our implementation

● ...ended up with something much simpler○ One “cold” wallet, to minimize potential losses○ One “hot” wallet, for everything else

Page 5: Meteor and Bitcoin (Lightning Talk)

Implementation speedbumps

● Testing!github.com/codebounty/bitcoin

● Encryption and keypool errorsgithub.com/codebounty/bitcoin-meteor

Page 6: Meteor and Bitcoin (Lightning Talk)

Bitcoin for Meteor

● Sending transactions

var client = new Bitcoin.Client(settings);

client.sendToAddress(address, amount, callback);

More information atgithub.com/jb55/node-bitcoinand github.com/codebounty/bitcoin-meteor

Page 7: Meteor and Bitcoin (Lightning Talk)

Bitcoin for Meteor

● Receiving transactions○ Register a proxy address with Blockchain.info

https://blockchain.info/api

○ Set up an IPN endpoint■ Needs to have a secret key to verify that the

request is coming from Blockchain.info■ Needs to be able to relate payments to orders by

Bitcoin address.■ Should also verify transaction hashes against

your local copy of bitcoind.

Page 8: Meteor and Bitcoin (Lightning Talk)

Resources

Code Bounty: codebounty.co

Bitcoin: en.bitcoin.it/wiki/

Me: ryepdx.com