Leanpub Header

Skip to main content

EOS による分散型アプリケーション開発

ここ数年間、ブロックチェーンというキーワードが注目されています。たとえブロックチェーン 2.0 と呼ばれているイーサリアムの場合、日本国内では、昨年 2017 年 12 月イーサリアムの開発者むけコミニティHi-Ether が立ち上げ、今年 2018 年 11 月はカンファレンスも開催されました。

イーサリアムがスマートコントラクトとブロックチェーンを広げてきましたが、まだいくつの課題が残っています。それらの課題を解決するために、いくつの新しいパブリックブロックチェーンが出ています。

本書は第三世代ブロックチェーンと呼ばれている EOS の仕組みと EOS 上で分散型アプリケーションを開発する仕方を紹介します。

Minimum price

$24.99

$29.99

You pay

$29.99

Author earns

$23.99
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
148
Pages
About

About

About the Book

本書の内容

本書は概ね4つの部分を分けて EOS の分散型アプリケーションを開発するために必要な知識一通り紹介します。

  1. EOS の基本知識
  2. EOS のスマートコントラクト構成
  3. EOS 上の分散型アプリケーション開発方法
  4. パブリックネットに接続する方法

EOS の基本知識

ブロックチェーンの歴史を振り返ながら、 EOS の特徴を紹介した後、EOS のコンセンサスアルゴリズム、データ構造 EOS のデータ構造を説明しながら、EOS がなぜブロックチェーン 3.0 と呼ばれているのかを紹介します。

EOS のスマートコントラクト構成

定番の hello world コントラクトを通じて、EOS のスマートコントラクトの構造やデプロイ・更新する方法など、スマートコントラクト開発周りの内容を紹介します。次は、EOS 上でデータを保存する仕組みであるマルチインデックステーブルの使い方を紹介します。最後、他のスマートコントラクトとやり取りする方法を紹介します。

EOS 上の分散型アプリケーション開発方法

EOS 上で分散型アプリケーションを構築する時、ウェブアプリケーションがどうやって eosjs を使って EOS とやり取りするかを紹介します。最初は eosjs にフォーカスするため、プライベートキーを直接に使いますが、その後のステップで、 Scatter アプリで秘密情報を保持しながら、ウェブアプリケーションから Scatter アプリに認証・認可してもらう形にします。

パブリックネットに接続する方法

テストネットである CryptoKylin Testnet とメインネットの接続方法を説明します。

2018 年 12 月現在、EOS のメインネットに接続するのはまだまだハードルが高い状況です。メインネットでアカウント作成する際、使える便利なサービスや気をつける箇所を紹介します。

上記の内容を通じて、読者皆さんが自分の分散型アプリケーションを EOS メインネットにデプロイできるように頑張って行きたいと思います。

本書のフィードバックについて

本書に関するフィードバックは、以下のフィードバックページにてお問い合わせ下さい。

https://leanpub.com/eos/feedback

Share this book

Author

About the Author

魚振江

Rails プログラマーからフルスタックエンジニアになって、現在はブロックチェーンエンジニア。

日本でブロックチェーンの普及を頑張っていきたいと考えています。

Contents

Table of Contents

著者について

まえがき

  1. 本書はどんな人に向いているか?
  2. 手と頭を動かして体感してみましょう
  3. 本書のソースと使ってるライブラリのバージョン

謝辞

1.EOS とは

  1. 1.1ブロックチェーンの歴史
  2. Bitcoin Script がチューリング不完全にされている理由
  3. 1.2なぜ EOS ?
  4. 1.3この章のまとめ

2.EOS の仕組み

  1. 2.1コンセンサスアルゴリズム
  2. トランザクションの確定時間とは
  3. 2.2EOS のブロックの構成
  4. 2.3Docker で開発環境を構築する
  5. 2.4ツールチェーン構成を知る
  6. 2.5ウォレット・キーペア・アカウント・権限の関係を理解する
  7. 2.6この章のまとめ

3.EOS のスマートコントラクト

  1. 3.1どんな言語で開発するの?
  2. 3.2Hello World コントラクトで基本構造と開発の流れを理解する
  3. ABI ファイルとは
  4. 3.3スマートコントラクトを更新してみる
  5. コントラクト更新の是正
  6. 3.4マルチインデックステーブルでデータを保存する
  7. 3.5他のスマートコントラクトのアクションを呼び出そう
  8. 3.6EOS の Token スマートコントラクトを確認する
  9. 3.7この章のまとめ

4.分散型アプリケーション開発

  1. 4.1Nuxt.js を使って画面を構築する
  2. 4.2eosjs を使って EOS とやり取りする
  3. 4.3Scatter と連携し、サインしてもらう
  4. 4.4この章のまとめ

5.パブリックネットに接続

  1. 5.1リソース RAM / CPU Bandwidth / NET Bandwidth のことを知る
  2. 5.2テストネットに接続する
  3. 5.3メインネットに接続する
  4. 5.4この章のまとめ

あとがき

履歴

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub