iT邦幫忙

2019 iT 邦幫忙鐵人賽

DAY 17
0
Blockchain

D30 Block Chain 系列 第 17

D17 區塊鏈中的比特幣(三)

  • 分享至 

  • xImage
  •  

How do Bitcoin transactions work?

誠實的節點交易會有很大的優勢,攻擊的節點只會破壞了整個系統,而無法得到更有價值的利益,反而如果當個誠實的節點更能得到更多的利益;除完整有效節點外,還有一種不要維護一整條的區塊鏈節點,其稱之為輕客戶端或稱簡單支付驗證SPV節點 ,SPV節點不儲存所有交易也不會下載整個區塊,僅僅儲存區塊頭80Bytes,它們只儲存部分交易,安全性比完全節點要來的差。

It is possible to verify payments without running a full network node. A user only needs to keep a copy of the block headers of the longest proof-of-work chain, which he can get by querying network nodes until he's convinced he has the longest chain, and obtain the Merkle branch linking the transaction to the block it's timestamped in. He can't check the transaction for himself, but by linking it to a place in the chain, he can see that a network node has accepted it, and blocks added after it further confirm the network has accepted it.

以比特幣測試簡略截圖來作以下範例:
得知區塊鏈資訊:
https://ithelp.ithome.com.tw/upload/images/20181031/20112498wjWBuCilyM.png

新增一個帳戶:
https://ithelp.ithome.com.tw/upload/images/20181031/20112498RrgtH5TtCq.png

產生101個錢幣:
https://ithelp.ithome.com.tw/upload/images/20181031/20112498IzAYp7pgAT.png

送10塊錢給自己的帳戶:
https://ithelp.ithome.com.tw/upload/images/20181031/20112498otX1ogW6XJ.png

查看交易紀錄:
https://ithelp.ithome.com.tw/upload/images/20181031/20112498vdOjtVkpUg.png

得知錢包資訊:
https://ithelp.ithome.com.tw/upload/images/20181031/20112498ndTuHZpyky.png

之前也有寫得不錯的介紹給大家參考。

文章另會分享在stars blog中,歡迎一起交流。


上一篇
D16 區塊鏈中的比特幣(二)
下一篇
D18 區塊鏈中的以太坊
系列文
D30 Block Chain 30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言