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

JavaScript Meets The Blockchain

JavaScript Meets The Blockchain

Introduction to Ethereum, Smart Contracts and JavaScript

Ignacio Anaya

April 19, 2018
Tweet

More Decks by Ignacio Anaya

Other Decks in Programming

Transcript

  1. Nacho Anaya @ianaya89 • Full Stack Developer @BloqInc • Speaker

    • Embajador @Auth0 • Organizador @Vuenos_Aires JS ! The Blockchain - @ianaya89 2
  2. ❌ NO! • Experto Blockchain • Experto en Criptografia •

    Cryptocurrencies & ICO's JS ! The Blockchain - @ianaya89 3
  3. ! Hash => Función Criptográfica Irreversible hash(' ! ') //

    d2d4e9ddd66e9ce4ee288aea24a345de hash(' " ') // 23622db6154ea91d793647c9bd990824 JS ! The Blockchain - @ianaya89 10
  4. ! Ventajas • 100% confiable • Publica, accesible y trackeable

    • Inmutable JS ! The Blockchain - @ianaya89 12
  5. ! ↔ # ↔ P2P => Red de Pares JS

    ! The Blockchain - @ianaya89 16
  6. ! Nodos => Par de la red JS ! The

    Blockchain - @ianaya89 17
  7. ! Smart Contracts => So&ware / Aplicaciones pragma solidity ^0.4.21;

    contract HelloCoin { mapping (address => uint) public balance; function mint (address receiver, uint amount) public returns(uint) { balance[receiver] += amount; return balance[receiver]; } } JS ! The Blockchain - @ianaya89 25
  8. ! Network • Main • Test (Ropsten, Kovan, Rinkeby) •

    Privadas • Local JS ! The Blockchain - @ianaya89 29
  9. ! Truffle => Development Framework $ npm i -g truffle

    $ truffle init $ truffle compile $ truffle migrate JS ! The Blockchain - @ianaya89 32
  10. ! Web3 => Libreria JS para Ethereum const Web3 =

    require('web3') const web3 = new Web3('http://localhost:8545') JS ! The Blockchain - @ianaya89 33
  11. ! Proyectos • cryptoKi*es.io • fishbank.io • ponzicoin.co • metronome.io

    • decentraland.org JS ! The Blockchain - @ianaya89 38