Contenu connexe Similaire à Bitcoinの技術 (20) Plus de Kindai University Plus de Kindai University (16) Bitcoinの技術35. P2Pネットワークへの接続方法
p DNS seed
以下のようなDNで(wellknownな)ノードのIPアドレス
がわかる
seed.bitcoin.sipa.be
dnsseed.bitcoin.dashjr.org
bitseed.xf2.org $ host bitseed.xf2.org
bitseed.xf2.org has address 91.121.164.210
bitseed.xf2.org has address 46.19.139.72
bitseed.xf2.org has address 184.174.153.96
bitseed.xf2.org has address 187.139.68.233
bitseed.xf2.org has address 212.7.21.46
bitseed.xf2.org has address 69.164.206.88
bitseed.xf2.org has address 62.75.216.13
bitseed.xf2.org has address 207.164.207.54
bitseed.xf2.org has address 78.129.167.5
bitseed.xf2.org has address 177.71.192.164
bitseed.xf2.org has address 69.64.34.118
bitseed.xf2.org has address 62.75.253.91
51. Bitcoinの取引データ
Bitcoinアドレス(山崎)1.0 BTC
Bitcoinアドレス(ピンクカウ)1.0 BTC
0.1 BTC
手数料0.0001 BTC
output 1 ピンクカウ 0.1 BTC
output 2 山崎 0. 8999 BTC
手数料 0. 0001 BTC
取引1データ
取引1(送金者は山崎)
1.0 BTC 1.0 BTC
output 1 山崎1.0 BTC
直前の取引の
output
直前の
送金先
金額 input1 山崎
input1 新規
output 未使用
0.8999 BTC
input1 山崎
1.0 BTC
直後の取引
直前の
送金者 output 未使用
0.1 BTC
送金者 送金者
過去 現在 未来
52. Bitcoinの取引データ
Bitcoinアドレス(山崎)0.8999 BTC
Bitcoinアドレス(ピンクカウ)1.1 BTC
0.2 BTC
手数料0.0001 BTC
output 1 ピンクカウ 0.2 BTC
output 2 山崎 0. 6998 BTC
手数料 0. 0001 BTC
取引2データ
取引2(送金者は山崎)
0.8999 BTC 0.8999 BTC
output 1 山崎
0. 8999 BTC
直前の取引の
output
input1 山崎
input1 山崎
output 未使用
0.6998 BTC
input1 山崎
0.8999 BTC
直後の取引
output 未使用
0.2 BTC
過去 現在 未来
53. Bitcoinの取引データ
Bitcoinアドレス(岡田)1.0 BTC
Bitcoinアドレス(ピンクカウ)1.0 BTC
0.1 BTC
手数料0.0001 BTC
output 1 ピンクカウ 0.1 BTC
output 2 岡田 0. 8999 BTC
手数料 0. 0001 BTC
取引3データ
取引3(送金者は岡田)
1.0 BTC 1.0 BTC
output 1 岡田1.0 BTC
直前の取引の
output
input1 岡田
input1 新規
output 未使用
0.8999 BTC
input1 岡田
1.0 BTC
直後の取引
output 未使用
0.1 BTC
過去 現在 未来
60. ブロックチェインの追跡方法
p 取引情報を取得 https://blockchain.info のAPIを利用
http://blockexplorer.com/rawtx/
d1c6b8140246950475735394b0ac68f9ada60d313d2
b5308afbc569c84f7fd08
{
"hash":"d1c6b8140246950475735394b0ac68f9ada60d313d2b5308afbc569c84f7fd08",
"ver":1,
"vin_sz":1,
"vout_sz":1,
"lock_time":0,
"size":168,
"in":[
{
"prev_out":{
"hash":"0000000000000000000000000000000000000000000000000000000000000000",
"n":4294967295
},
"coinbase":"038349040d00456c69676975730052d8f72ffabe6d6dd991088decd13e658bbecc0b2b4c87306f637828917838c02a5d95d0e1bdff9b04000
00000000000002f73733331312f00906b570400000000e4050000"
}
],
"out":[
{
"value":"25.08660927",
"scriptPubKey":"OP_DUP OP_HASH160 5399c3093d31e4b0af4be1215d59b857b861ad5d OP_EQUALVERIFY OP_CHECKSIG"
}
]
}
82. マイニングのインセンティブ
p 新ブロック生成時の報酬
最初の4年 50BTC、次の約4年 25BTC
p 取引手数料報酬
現在の実装では手数料の支払いは自発的行為で、無料でもOK
0"
5,000,000"
10,000,000"
15,000,000"
20,000,000"
25,000,000"
2005" 2010" 2015" 2020" 2025" 2030" 2035" 2040" 2045" 2050" 2055"