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

ブロックチェーンを利用したサービス開発について

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for GMO次世代 GMO次世代
October 13, 2016

 ブロックチェーンを利用したサービス開発について

2016年10月12日 GMOエンジニアトークにて公開

Avatar for GMO次世代

GMO次世代

October 13, 2016
Tweet

More Decks by GMO次世代

Other Decks in Technology

Transcript

  1. • ブロックチェーンに書き込むプログラム • トランザクションにコード Tx contract Class { uint variable;

    function funcA() { variable= 1; } function funcB() constant returns (uint) { return variable; } } Tx Tx Class.funcA()
  2. • JavaScript に似た高級言語 • Ethereum で動作するコードにコンパイル可能 • ブラウザIDE がおすすめ –

    https://ethereum.github.io/browser-solidity/ – JavaScript VM、Ethereum クライアント接続可能
  3. contract SimpleStorage { uint storedData; function set(uint x) { storedData

    = x; } function get() constant returns (uint) { return storedData; } }
  4. contract Coin { address public minter = msg.sender; mapping (address

    => uint) public balances; function mint(address receiver, uint amount) { if (msg.sender != minter) return; balances[receiver] += amount; } function send(address receiver, uint amount) { if (balances[msg.sender] < amount) return; balances[msg.sender] -= amount; balances[receiver] += amount; } }
  5. • Node Proxy – Ethereum ノード以外でTx を実⾏ • データストア連携 –

    機密データの保管 – ファイルサイズの大きなデータの保存