Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introducing Blockchain to web developers

Introducing Blockchain to web developers

If you haven’t heard about blockchain, you probably know Bitcoin. Blockchain is the underlying technology that powers Bitcoin. Although it was created to support Bitcoin, the blockchain concept can be defined regardless of the Bitcoin ecosystem. Experts say that blockchain will cause a revolution similar to the one enabled by the advent of the Internet. But what is it really, and how can it be used to build apps today? In this talk, Badi explains the blockchain phenomenon to developers who primarily build web and mobile apps. You’ll understand the fundamentals of blockchain and how to get started with building apps with it.

Badi Sudhakaran

March 09, 2017
Tweet

More Decks by Badi Sudhakaran

Other Decks in Technology

Transcript

  1. Who updates the ledger on the blockchain •Updated every 10

    minutes •Miners compete for right to update •More processing power means more chance to win
  2. L L L L L L L L L L

    Achieving consensus on the blockchain
  3. L L L L L L L L L L

    Achieving consensus on the blockchain
  4. 5b878847d7f1d5b8fdeb14d54a143deaf 00ceeafe08a770023327e30eeefdc8c Feaceb488037fb9ecf4c66071de344cdb5 ab1f2a45d56c84fa942a088a0c5974 888aa3a6976bfd7a25dd4fcdf56c3ea717 284a54f5e8a01312e811dde9fb1ca2 5b878847d7f1d5b8fdeb14d54a143deaf 00ceeafe08a770023327e30eeefdc8c Feaceb488037fb9ecf4c66071de344cdb5 ab1f2a45d56c84fa942a088a0c5974

    888aa3a6976bfd7a25dd4fcdf56c3ea717 284a54f5e8a01312e811dde9fb1ca2 5b878847d7f1d5b8fdeb14d54a143deaf 00ceeafe08a770023327e30eeefdc8c Feaceb488037fb9ecf4c66071de344cdb5 ab1f2a45d56c84fa942a088a0c5974 888aa3a6976bfd7a25dd4fcdf56c3ea717 284a54f5e8a01312e811dde9fb1ca2 5b878847d7f1d5b8fdeb14d54a143deaf 00ceeafe08a770023327e30eeefdc8c Feaceb488037fb9ecf4c66071de344cdb5 ab1f2a45d56c84fa942a088a0c5974 888aa3a6976bfd7a25dd4fcdf56c3ea717 284a54f5e8a01312e811dde9fb1ca2
  5. Blockchain Examples: •Sovereign Blockchain •Trading Platforms •Property registrations and transfers

    •Registration of births and deaths •Verification of academic records
  6. Example: bitcoinjs • npm install bitcoinjs-lib • Create a new

    bitcoin address with a private key: var bitcoin = require(‘bitcoinjs-lib’) var keyPair = bitcoin.ECPair.makeRandom({ rng: rng }) var wif = keyPair.toWIF() var address = keyPair.getAddress()
  7. Example: bitcoinjs • Create a new transaction moving bitcoin around:

    var tx = new bitcoin.TransactionBuilder() tx.addInput(transactionId, 0) tx.addOutput(address,15000) tx.sign(0, keyPair) tx.build().toHex() var tx = new bitcoin.TransactionBuilder(bitcoin.networks.testnet)