Ethereum
Ethereumとは
暗号通貨
アプリケーションプラットフォーム
全てのユーザーがEthereumにアプリケーションをデプロイできる
アプリケーションも止められず,過去の履歴を変えることができない(尋常じゃなくコストがかかる)
Ethereumのコンセプト
World Computer
Ethereum Networkが,Ethereum上のアプリケーションを動かす世界で同一のサーバーに見える
Smart Contract
Ethereum上にデプロイされたアプリケーションによって契約が自動執行
Bitcoinとの違い
チューリング完全な命令セットをサポート
代表的な高級言語: Solidity
アプリケーションを表すaddressを追加
個人が使うaddress: EOA (externally owned address)
アプリ〜ションaddress: contract address
APIサーバーのエンドポイントみたいなイメージ
addressにEtherを送るとアプリケーションを動かせる
https://gyazo.com/ca65b4041eade0da4086acca453f6d54
Ethereum上のアプリケーション設計
ERC (Ethereum Request for Comment)
実装を含むアプリケーションレベルの標準/規約
トークン規格など
トークン: 付加価値を分割的、かつ定量的に扱うためのデータ?
キーワード: token economy
ERCに則ったトークンを採用してアプリ開発を行うことが多い
トークンを扱うOSSライブラリが存在
OpenZeppelin
代表的なトークン規格
ERC-20 Token Standard
Abstract
枚数を決めて発行,単純な受け渡しが可能
Motivation
A standard interface allows any tokens on Ethereum to be re-used by other applications: from wallets to decentralized exchanges.
利用例
ICO(Initial Coin Offering: IPOの暗号通貨版みたいなやつ)
ある期間内のあるコントラクトアドレスにEtherを送ると,所定のrateで特定のTokenがもらえる
ERC-721 Non-Fungible Token Standard
Abstract
Physical property — houses, unique artwork
Virtual collectables — unique pictures of kittens, collectable cards
“Negative value” assets — loans, burdens and other responsibilities
区別可能なものが表現可能
それぞれに区別があるので所有権も明示できる
Fungible: 代替可能
Aさんが持っている1万円とBさんが持っている1万円は同じ価値
Motivation
EIP-20 is insufficient for tracking NFTs because each asset is distinct (non-fungible) whereas each of a quantity of tokens is identical (fungible).
利用例
美術作品の所有権管理
電子署名が所有権と対応
所有権移転・Trackingも行いやすい
ゲームのアイテム
同じアイテムでも区別可能
Ethereum上にあるから,簡単に市場売買可能
参考文献