Weitere ähnliche Inhalte Mehr von Kenichi Kurimoto (7) Kürzlich hochgeladen (10) Bitcoin2.0の本命 Ethereum とは何か22. owner
売りたい
買いたい
①nonce生成して送る
(車のデータをくれ!)
identification key署名
nonce
cars public cert
Car’s data
現owner PK
最後にownerが変わった
transactionとmarkle branch
②車のデータや、本当に現 ownerかどう
か署名付きのデータを貰う
④新しいownership keyを作るK2
⑤新しいtransaction作って ownerに送
る。 input2があるまで無効
③支払いを受け取る Key K1を作
る。価格はP
⑥input2が入って、transactionが
認証されれば、ownershipがCoin払
いと共に移動!
input1: P Coin output1: P CoinをK1に送る
input2: T Coin output2: T CoinをK2に送る
ownership key
T Coin
transaction
32. 現状のBitcoin2.0の実現方法
1. 独自のP2P blockchain サーバーネットワークを立ち上げる
Namecoinが行ったが大変
2. Bitcoin上にメタプロトコルを作る
Coloredcoinが行ったが、SPVができない等欠点あり
3. Bitcoinのスクリプトを利用する (bitcoinの通常のやり取りもscript実行です)
最も簡単に実現できるがスクリプトでできることに制限あり
40. 外部アカウント 秘密鍵コントロール
• nonce
• Ether balance(Ethereは暗号貨幣)
• storage
contract アカウント
• nonce
• Ether balance
• contract code
• storage(key/valueストア)
message
を送ることができる
Ethereum の2種類のアカウント
Bitcoinのアカウント
みたいなもの
ユーザが書いたコードが格納されている
messageを受け取って起動する
41. トークンシステム
from = msg.sender
to = msg.data[0]
value = msg.data[1]
if contract.storage[from] >= value:
contract.storage[from] = contract.storage[from] - value
contract.storage[to] = contract.storage[to] + value
少ない行数でsmart propertyを実現
48. If you must trust, trust people, not orgs!
Dr.Gavin Wood