最近大餅盤上沒什麼動靜(在我看來啦) 但是 BIP 的部分其實應該很多人都知道,Taproot 升級是大餅繼 SegWit 後違睽四年的主要升級,已於 2021年 11月 14日在第 709632個區塊生效。上一次升級時分成了 BTC / BCH... Taproot 升級有三個部分: - BIP340 (BIP – Schnorr) - BIP341 (BIP – Taproot) - BIP342 (BIP – Tapscript) BIP 340 Schnorr 簽名的部分,如果用 Electron Cash 稍有注意的話,會發現其實早就已經有了,如圖。另可參考如下報導: 在 2018 年 7 月,比特幣核心開發者 Pieter Wuille 就提議了升級 Schnorr 的 BIP,隨後 Blockstream 和開源社群亦參與了相關開發工作。在比特幣正式採用之前,比特幣的分叉幣 BCH 中已通過硬分叉提前部署了 Schnorr。即在 2019 年 5 月,BCH 就已經將簽名方案升級為了 Schnorr 簽名。之所以它會被更早啟用,主要是因為它是通過硬分叉完成的升級,而比特幣不能採用硬分叉的方案,需要更為精巧設計的軟分叉方案。 https://www.gushiciku.cn/pl/pnO1/zh-tw 以及黑鴨板大在 ptt 新聞轉錄下的推文: https://www.ptt.cc/bbs/DigiCurrency/M.1623656656.A.4E4.html 這三個升級的功能如下: - BIP340新增了Schnorr多重簽名的管道,也相容以往的橢圓曲線數位簽章。 - BIP341結合了聚合簽名的特點,提出了名為「Pay-to-Taproot」(P2TR)這樣一個新的網絡支付方式,採用了MAST(默克爾樹)的資料結構。 - BIP342則是對比特幣網絡的指令碼語言進行了改進,它新增了Tapscript新指令碼語言,來協助驗證Schnorr聚合簽名和Pay-to-Taproot的支付路徑,提升P2TR包容性和靈活性的同時,給未來比特幣網絡在智慧合約方面的陞級提供空間。 https://www.grenade.tw/blog/will-the-taproot-upgrade-of-bitcoin-be-a-timely-rain/ 或者海妖的介紹: BIP-Schnorr introduces “Schnorr Signatures,” a faster, more secure and less data-intensive way to authorize transactions. BIP – Schnorr also enables BIP – Taproot, which uses a technique called “MAST” to commit less smart contract transaction data to the blockchain while also obscuring some private transaction information. Finally, BIP – Tapscript outfits Bitcoin with an upgraded transaction programming language which utilizes Schnorr and Taproot technology. Tapscript also allows developers to implement future Bitcoin upgrades more efficiently. BIP341 – Taproot builds on the privacy innovations of the most recent Bitcoin upgrade, SegWit, and implements Merklized Alternative Script Trees (MAST), which allow for only the executed conditions of a smart contract transaction to be committed to the blockchain rather than the full details of all other possible outcomes. https://www.kraken.com/en-gb/learn/what-is-taproot Impact 方面海妖提到了閃電網路: Taproot upgrades should also enable the Lightning Network to scale more efficiently and rapidly. Some believe Taproot, combined with Lightning Network, will advance bitcoin’s utility from a “store of value” to also a “medium of exchange,” further validating bitcoin as a true peer-to-peer digital cash. 用 true peer-to-peer digital cash 來描述 Taproot 升級算是很高的評價吧。 海妖介紹閃電網路的頁面有這樣一則軼聞: In a poetic ending to the alpha development stage, Lazlo Hanyezc – the first person to use bitcoin in the real world by paying 10,000 BTC for two pizzas in 2013 – used Lightning to, once again, purchase two pizzas. https://www.kraken.com/en-gb/learn/lightning-network Schnorr 簽名的部分沒什麼問題,BCH / BTC 都想採用,因為就好處多多,一來簽名(在單簽的狀況似乎只有微微)變短,二來他可以線性疊加(雖然我不知道為什麼),所以可以用來壓縮多簽的情況並強化多簽的隱私性。網路上也有一些關於中本聰為什麼沒有從一開始就用 Schnorr 簽名的討論,有興趣可以找來看看。 Taproot 的部分,看起來則是 SegWit 和 Lightning Network 的進一步推展。SegWit 算是普遍被認為是比特幣發展過程裡的一個重大轉捩點吧: https://news.bitcoin.com/segregated-witness-concept-turning-point-bitcoin/ 如何擴容一直以來都是比特幣發展的大哉問。要不要有 L2、L2 怎麼做也是眾說紛紜各自出招。閃電網路的概念可以見黑鴨在這篇推文: https://www.ptt.cc/bbs/DigiCurrency/M.1512604587.A.DEB.html Tapscript 的部分,感覺跟之前聊到的 BCH 上的 CashScript https://noise.cash/post/lzxww059 也很打對台。 BTC 跟 BCH 都還在各自走各自的擴容路線。而擴容以外,智能合約的支援現在也越來越被推上火線。BCH 的部分最主要的擴容是大區塊,智能合約有 CashScript 一類的 native 發展亦有側鏈 SmartBCH 的實作。而 BTC 在 Taproot 升級後,看起來是打算把擴容跟智能合約都押在 L2 上。 BCH 一路走來也是吃了很多 BIP,如 Schnorr 甚至比 BTC 還早服用。CashAddr 的部分我理解無誤的話也是借用 SegWit / Bech32 裡 Pieter Wuille 的檢查碼運算方式 polymod。 而現在 BCH 的更新倡議要改稱 CHIP 了:A CasH Improvement Proposal (CHIP) is a change request for the Bitcoin Cash protocol 不知道是不是要叫大家趕快 chip in XD 貼了很多資料,但其實很多我自己也是一知半解。也不藏拙,可以笑笑討論。 擴容之戰,誰會勝出?或者兩者都是對的?我自己是比較喜歡簡單的方案,但何謂簡單以及是否存在簡單這樣的選項就見仁見智了。 最後,海妖情報組出了一個 Taproot Primer https://kraken.docsend.com/view/9e9y7may8526z934 看起來很有系統且附上了來龍去脈 如果對 Taproot 升級細節有興趣或許是蠻好的參考資料
2 comments
技術文連發的哎滴李維
不如說緩步學習中的哎滴李維