以太幣交易所 以太幣交易所
Ctrl+D 以太幣交易所
ads

《精通比特幣》英文版批注導讀·第1章_bitcoin

Author:

Time:1900/1/1 0:00:00

今天起,我們一起學習比特幣領域經典的作品MasteringBitcoin,國內譯作《精通比特幣》。這本書的作者是AndreasM.Antonopoulos是國外比特幣圈一位前輩,這本書被譽為比特幣最好的技術參考。

《精通比特幣》的第一版中文版已經在國內出版,第二版英文版于2017年7月完成,目前沒有中文紙質版本。但是在網絡上有網友貢獻出了英文版。以下是相關鏈接:

書籍主頁:https://github.com/bitcoinbook/bitcoinbook英文版鏈接:https://github.com/bitcoinbook/bitcoinbook/blob/develop/book.asciidoc中文版鏈接:https://bitcoinbook.info/wp-content/translations/cmn/book.pdf

我會選擇英文版作為我們的學習主材料,針對這些英文材料,梳理出邏輯,并寫出我的理解。由于已經有現成的中文版譯本,因此我不會對英文逐句翻譯;對于一些比較簡單的部分,我會擇機省略。但是對其中的部分英文用法,我會給出解釋。我期待能達到的效果是,既能把比特幣給學了,順便把英語的表達積累。作為讀者,建議你先閱讀英文,嘗試自己搞明白,再看我的文字;如果英文理解有困難,那就自行參考一下譯本。不要只看中文,不看英文,這樣你會看不懂的。

好,下面我從前言開始梳理:

0.前言

前言地址參見https://github.com/bitcoinbook/bitcoinbook/blob/develop/preface.asciidoc

由于前言有許多說明性的文字,我僅從中摘錄部分論述。

WritingtheBitcoinBook

Ifirststumbleduponbitcoininmid-2011.Myimmediatereactionwasmoreorless"Pfft!Nerdmoney!"andIignoreditforanothersixmonths,failingtograspitsimportance.ThisisareactionthatIhaveseenrepeatedamongmanyofthesmartestpeopleIknow,whichgivesmesomeconsolation.ThesecondtimeIcameacrossbitcoin,inamailinglistdiscussion,IdecidedtoreadthewhitepaperwrittenbySatoshiNakamototostudytheauthoritativesourceandseewhatitwasallabout.IstillrememberthemomentIfinishedreadingthoseninepages,whenIrealizedthatbitcoinwasnotsimplyadigitalcurrency,butanetworkoftrustthatcouldalsoprovidethebasisforsomuchmorethanjustcurrencies.Therealizationthat"thisisn’tmoney,it’sadecentralizedtrustnetwork,"startedmeonafour-monthjourneytodevoureveryscrapofinformationaboutbitcoinIcouldfind.Ibecameobsessedandenthralled,spending12ormorehourseachdaygluedtoascreen,reading,writing,coding,andlearningasmuchasIcould.Iemergedfromthisstateoffugue,morethan20poundslighterfromlackofconsistentmeals,determinedtodedicatemyselftoworkingonbitcoin.

目前已有10萬個獨立地址幫助EIP-4844進行隨機數據采樣:5月31日消息,以太坊研究人員提出一項計劃以使存儲來自Layer 2匯總的數據成本更低,第一階段需要將 EIP-4844(稱為 proto-danksharding)引入以太坊主網,預計將在年底前與Dencun升級一起進行。目前已有10萬個獨立地址幫助以太坊EIP-4844引入“blob-carrying交易”進行隨機數據采樣。[2023/5/31 11:50:36]

這段有幾個信息點值得注意:

(1)作者在第一次接觸比特幣的時候,并沒有太在意,忽略了六個月的時間;第二次是在郵件討論中遇到比特幣,這時才開始讀中本聰的白皮書。作者想必是懊悔的,但是后面他發現其他很多聰明人,在第一次遇到比特幣,也是這樣的反應,卻給了他一些安慰。不過作者還是幸運的,有的人每一次都說要讀,但是最后仍然是不了了之,一拖十幾年,甚至一輩子就過去了。看一下你的待辦清單,有多少事情是你一直想做但是卻沒有做的呢?

(2)作者在研究完白皮書以后,意識到這不僅僅是電子貨幣,而是一種信任的網絡,這不只是可以為貨幣打下基礎,還可以是很多事情的基礎。在意識到這個問題以后,作者沉迷學習四個月,每天研究12個小時,盯著電腦,閱讀、編碼、寫作,之后瘦了20磅。注意這里的becameobsessedandenthralled,gluedtoascreen,emergedfromthisstateoffugue都是很好的表達,英語寫作可以借鑒。

(3)這里要學習的是作者的精神。從描述上看,作者是內驅力很強的一個人。做一件事情,不是因為別人給你打了雞血,而是你自己通過學習,發現一件事情的極端重要意義,從而自主產生動力,不惜一切代價精進。這是區分人與人成就的重要原因。我記得,李笑來老師在講他最初接觸到比特幣的時候,也有類似的場景片斷。其實在任何領域,要有一定的成績,都要有這樣一種“釘釘子”精神,完成自己的原始知識資本積累。

(4)在十九大報告中有這樣一句話,“增強狠抓落實本領,堅持說實話、謀實事、出實招、求實效,把雷厲風行和久久為功有機結合起來,勇于攻堅克難,以釘釘子精神做實做細做好各項工作。”

Twoyearslater,aftercreatinganumberofsmallstartupstoexplorevariousbitcoin-relatedservicesandproducts,Idecidedthatitwastimetowritemyfirstbook.Bitcoinwasthetopicthathaddrivenmeintoafrenzyofcreativityandconsumedmythoughts;itwasthemostexcitingtechnologyIhadencounteredsincetheinternet.Itwasnowtimetosharemypassionaboutthisamazingtechnologywithabroaderaudience.

這里作者聲情并茂地說:“比特幣讓我創意勃發,讓我殫精竭慮;就互聯網出來以來,我遇到的最激動人心的技術”。那就讓我們跟著這位瘦下來20磅的作者,開始精通比特幣的旅程吧。

剩下的部分作者講了一些書面向的讀者,封面的隱喻以及閱讀指南,請大家自行閱讀。

https://github.com/bitcoinbook/bitcoinbook/blob/develop/preface.asciidoc

1.簡介

這一部分基礎內容由于在比特幣白皮書的解析部分已經有所討論,所以行文會比較簡略。原文地址在

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch01.asciidoc。

WhatIsBitcoin?

Open Forest Protocol宣布已完成410萬美元種子輪融資:金色財經報道,碳中和區塊鏈平臺Open Forest Protocol??(OFP)宣布已完成410萬美元種子輪融資,吸引了包括風險投資家和天使投資人在內的大約 17 個投資者團體。Shima Capital、übermorgen Ventures、Not Boring Capital、Mercy Corps Ventures、Byzantine Marine、Big Brain Holdings 和 Valor Capital 等風險投資技術專家與許多天使投資人一起支持該平臺。[2023/1/11 11:06:58]

Bitcoinisacollectionofconceptsandtechnologiesthatformthebasisofadigitalmoneyecosystem.Unitsofcurrencycalledbitcoinareusedtostoreandtransmitvalueamongparticipantsinthebitcoinnetwork.Bitcoinuserscommunicatewitheachotherusingthebitcoinprotocolprimarilyviatheinternet,althoughothertransportnetworkscanalsobeused.Thebitcoinprotocolstack,availableasopensourcesoftware,canberunonawiderangeofcomputingdevices,includinglaptopsandsmartphones,makingthetechnologyeasilyaccessible.

比特幣是一套概念與技術,形成的電子現金生態系統。在解析比特幣白皮書的文章中,我們已經對電子現金需要有的基本特點進行過分析。

Userscantransferbitcoinoverthenetworktodojustaboutanythingthatcanbedonewithconventionalcurrencies,includingbuyandsellgoods,sendmoneytopeopleororganizations,orextendcredit.Bitcoincanbepurchased,sold,andexchangedforothercurrenciesatspecializedcurrencyexchanges.Bitcoininasenseistheperfectformofmoneyfortheinternetbecauseitisfast,secure,andborderless.

比特幣在某種程度上,是現金互聯網的最佳形式,因為快、安全、無界。

Unliketraditionalcurrencies,bitcoinareentirelyvirtual.Therearenophysicalcoinsorevendigitalcoinsperse.Thecoinsareimpliedintransactionsthattransfervaluefromsendertorecipient.Usersofbitcoinownkeysthatallowthemtoproveownershipofbitcoininthebitcoinnetwork.Withthesekeystheycansigntransactionstounlockthevalueandspenditbytransferringittoanewowner.Keysareoftenstoredinadigitalwalletoneachuser’scomputerorsmartphone.Possessionofthekeythatcansignatransactionistheonlyprerequisitetospendingbitcoin,puttingthecontrolentirelyinthehandsofeachuser.

比特幣的隱含波動率創2020年10月以來最低:金色財經報道,根據Amberdata數據,比特幣的年化7天隱含波動率已降至2020年10月以來的低點,達38.2%。一位觀察人士表示,隨著經濟背景的改善以及市場對FTX的負面消息變得有彈性,比特幣的波動性將繼續下降。[2022/12/15 21:47:25]

比特幣通過密鑰的方式來證明所有權。如果你掌握了密鑰,你就掌握了對應的貨幣。

Bitcoinisadistributed,peer-to-peersystem.Assuchthereisno"central"serverorpointofcontrol.Bitcoinarecreatedthroughaprocesscalled"mining,"whichinvolvescompetingtofindsolutionstoamathematicalproblemwhileprocessingbitcointransactions.Anyparticipantinthebitcoinnetwork(i.e.,anyoneusingadevicerunningthefullbitcoinprotocolstack)mayoperateasaminer,usingtheircomputer’sprocessingpowertoverifyandrecordtransactions.Every10minutes,onaverage,abitcoinminerisabletovalidatethetransactionsofthepast10minutesandisrewardedwithbrandnewbitcoin.Essentially,bitcoinminingdecentralizesthecurrency-issuanceandclearingfunctionsofacentralbankandreplacestheneedforanycentralbank.

比特幣的挖礦機制,將中央銀行的貨幣發行與清算工作去中心化,從而不需要任何中央銀行。

Thebitcoinprotocolincludesbuilt-inalgorithmsthatregulatetheminingfunctionacrossthenetwork.Thedifficultyoftheprocessingtaskthatminersmustperformisadjusteddynamicallysothat,onaverage,someonesucceedsevery10minutesregardlessofhowmanyminers(andhowmuchprocessing)arecompetingatanymoment.Theprotocolalsohalvestherateatwhichnewbitcoinarecreatedevery4years,andlimitsthetotalnumberofbitcointhatwillbecreatedtoafixedtotaljustbelow21millioncoins.Theresultisthatthenumberofbitcoinincirculationcloselyfollowsaneasilypredictablecurvethatapproaches21millionbytheyear2140.Duetobitcoin’sdiminishingrateofissuance,overthelongterm,thebitcoincurrencyisdeflationary.Furthermore,bitcoincannotbeinflatedby"printing"newmoneyaboveandbeyondtheexpectedissuancerate.

比特幣有內置的算法用于調控挖礦速度,以保證每10分鐘挖到一次。比特幣總數是2100萬枚,預計到2140年全部挖出。比特幣是通縮型貨幣,無法通過“印鈔”的方式,增發貨幣。

Arbitrum鏈上智能合約創建總量突破100萬:金色財經報道,據 Dune Analytics 11 月 24 日數據顯示,以太坊 Layer2 網絡 Arbitrum 鏈上智能合約創建總量突破 100 萬,截至目前為 1,000,830 個。其他指標方面,當前 Arbitrum鏈上總鎖倉量跌至 22.46 億美元,鏈上賬戶創建總量為 196.8 萬個,交易總量達到 6660.4 萬筆,活躍賬戶數約為 155 萬個。[2022/11/24 8:02:47]

Behindthescenes,bitcoinisalsothenameoftheprotocol,apeer-to-peernetwork,andadistributedcomputinginnovation.Thebitcoincurrencyisreallyonlythefirstapplicationofthisinvention.Bitcoinrepresentstheculminationofdecadesofresearchincryptographyanddistributedsystemsandincludesfourkeyinnovationsbroughttogetherinauniqueandpowerfulcombination.Bitcoinconsistsof:

Adecentralizedpeer-to-peernetwork(thebitcoinprotocol)

Apublictransactionledger(theblockchain)

Asetofrulesforindependenttransactionvalidationandcurrencyissuance(consensusrules)

Amechanismforreachingglobaldecentralizedconsensusonthevalidblockchain(Proof-of-Workalgorithm)

比特幣代表了過去幾十年密碼學研究和分布式系統的研究頂點,包括以下四個方面的創新:

(1)分布式的點對點網絡

(2)一套公眾賬簿系統

(3)一套交易驗證和發幣的規則

(4)一套在區塊鏈上達到共識的機制

Asadeveloper,Iseebitcoinasakintotheinternetofmoney,anetworkforpropagatingvalueandsecuringtheownershipofdigitalassetsviadistributedcomputation.There’salotmoretobitcointhanfirstmeetstheeye.

比特幣就像金錢的互聯網,可以通過分布式的計算方式,傳播價值,保障電子資產所有權。

Inthischapterwe’llgetstartedbyexplainingsomeofthemainconceptsandterms,gettingthenecessarysoftware,andusingbitcoinforsimpletransactions.Infollowingchapterswe’llstartunwrappingthelayersoftechnologythatmakebitcoinpossibleandexaminetheinnerworkingsofthebitcoinnetworkandprotocol.

DigitalCurrenciesBeforeBitcoin

Theemergenceofviabledigitalmoneyiscloselylinkedtodevelopmentsincryptography.Thisisnotsurprisingwhenoneconsidersthefundamentalchallengesinvolvedwithusingbitstorepresentvaluethatcanbeexchangedforgoodsandservices.Threebasicquestionsforanyoneacceptingdigitalmoneyare:

NFT Worlds團隊:正與《我的世界》團隊溝通,并考慮備選方案:7月21日消息,針對“《我的世界》禁止在游戲中使用NFT或其他區塊鏈技術”,NFT Worlds項目團隊在其Discord頻道發文回應稱,目前正在與《我的世界》(Minecraft)團隊相關人員進行溝通,了解禁令發布原因,并爭取在Minecraft平臺繼續運營。

如果溝通不能取得預期效果,NFT Worlds也在考慮以下備選方案:

1. 將項目遷移至類似Minecraft的游戲引擎和游戲平臺;

2. 轉型為GameFi平臺,為游戲開發者或游戲工作室提供技術服務。

此前消息,《我的世界》(Minecraft)更新其使用指南,宣布禁止Minecraft客戶端和服務器應用程序集成區塊鏈技術,也不得用于創建與任何游戲內容相關的NFT,包括世界、皮膚、角色物品或其他模組。[2022/7/21 2:27:59]

CanItrustthatthemoneyisauthenticandnotcounterfeit?

CanItrustthatthedigitalmoneycanonlybespentonce(knownasthe“double-spend”problem)?

CanIbesurethatnooneelsecanclaimthismoneybelongstothemandnotme?

Issuersofpapermoneyareconstantlybattlingthecounterfeitingproblembyusingincreasinglysophisticatedpapersandprintingtechnology.Physicalmoneyaddressesthedouble-spendissueeasilybecausethesamepapernotecannotbeintwoplacesatonce.Ofcourse,conventionalmoneyisalsooftenstoredandtransmitteddigitally.Inthesecases,thecounterfeitinganddouble-spendissuesarehandledbyclearingallelectronictransactionsthroughcentralauthoritiesthathaveaglobalviewofthecurrencyincirculation.Fordigitalmoney,whichcannottakeadvantageofesotericinksorholographicstrips,cryptographyprovidesthebasisfortrustingthelegitimacyofauser’sclaimtovalue.Specifically,cryptographicdigitalsignaturesenableausertosignadigitalassetortransactionprovingtheownershipofthatasset.Withtheappropriatearchitecture,digitalsignaturesalsocanbeusedtoaddressthedouble-spendissue.

這里講的是傳統的現金安全與電子現金安全的異同,與我們前一篇文章中談到的信息要點類似,參見《比特幣白皮書解析|從零開始區塊鏈》。這一部分英語我就不展開介紹,但是可以分享一個學習思路:如果你對一件事情本身就很了解,或者你對這件事情的了解,是通過母語或者其他語言習得,那你用英語或者你需要學習的語言,再去讀關于這個主題的討論,你的語言學習吸收效率會很高。

Whencryptographystartedbecomingmorebroadlyavailableandunderstoodinthelate1980s,manyresearchersbegantryingtousecryptographytobuilddigitalcurrencies.Theseearlydigitalcurrencyprojectsissueddigitalmoney,usuallybackedbyanationalcurrencyorpreciousmetalsuchasgold.

Althoughtheseearlierdigitalcurrenciesworked,theywerecentralizedand,asaresult,wereeasytoattackbygovernmentsandhackers.Earlydigitalcurrenciesusedacentralclearinghousetosettlealltransactionsatregularintervals,justlikeatraditionalbankingsystem.Unfortunately,inmostcasesthesenascentdigitalcurrenciesweretargetedbyworriedgovernmentsandeventuallylitigatedoutofexistence.Somefailedinspectacularcrasheswhentheparentcompanyliquidatedabruptly.Toberobustagainstinterventionbyantagonists,whetherlegitimategovernmentsorcriminalelements,adecentralizeddigitalcurrencywasneededtoavoidasinglepointofattack.Bitcoinissuchasystem,decentralizedbydesign,andfreeofanycentralauthorityorpointofcontrolthatcanbeattackedorcorrupted.

這一部分在我以前的文章里面也提到過,中心化的問題就是單點容易受到攻擊,但是比特幣采用了去中心化的方式,通過數字簽名來實現驗證和所有權。

HistoryofBitcoin

Bitcoinwasinventedin2008withthepublicationofapapertitled"Bitcoin:APeer-to-PeerElectronicCashSystem,"writtenunderthealiasofSatoshiNakamoto(see).Nakamotocombinedseveralpriorinventionssuchasb-moneyandHashCashtocreateacompletelydecentralizedelectroniccashsystemthatdoesnotrelyonacentralauthorityforcurrencyissuanceorsettlementandvalidationoftransactions.Thekeyinnovationwastouseadistributedcomputationsystem(calleda"Proof-of-Work"algorithm)toconductaglobal"election"every10minutes,allowingthedecentralizednetworktoarriveatconsensusaboutthestateoftransactions.Thiselegantlysolvestheissueofdouble-spendwhereasinglecurrencyunitcanbespenttwice.Previously,thedouble-spendproblemwasaweaknessofdigitalcurrencyandwasaddressedbyclearingalltransactionsthroughacentralclearinghouse.

比特幣白皮書我們之前已經梳理完了,我讀到這里的時候,內心啊哈一笑。

Thebitcoinnetworkstartedin2009,basedonareferenceimplementationpublishedbyNakamotoandsincerevisedbymanyotherprogrammers.TheimplementationoftheProof-of-Workalgorithm(mining)thatprovidessecurityandresilienceforbitcoinhasincreasedinpowerexponentially,andnowexceedsthecombinedprocessingpoweroftheworld’stopsupercomputers.Bitcoin’stotalmarketvaluehasattimesexceeded$135billionUSdollars,dependingonthebitcoin-to-dollarexchangerate.Thelargesttransactionprocessedsofarbythenetworkwas$400millionUSdollars,transmittedinstantlyandprocessedforafeeof$1.

這里的數據是,比特幣目前最大的一筆交易是4億美金的轉賬,手續費1美金。不過現在有比這個更高的交易了。

SatoshiNakamotowithdrewfromthepublicinApril2011,leavingtheresponsibilityofdevelopingthecodeandnetworktoathrivinggroupofvolunteers.Theidentityofthepersonorpeoplebehindbitcoinisstillunknown.However,neitherSatoshiNakamotonoranyoneelseexertsindividualcontroloverthebitcoinsystem,whichoperatesbasedonfullytransparentmathematicalprinciples,opensourcecode,andconsensusamongparticipants.Theinventionitselfisgroundbreakingandhasalreadyspawnednewscienceinthefieldsofdistributedcomputing,economics,andeconometrics.

這里說了兩個重要的信息點:

(1)比特幣開發出了以后,即使中本聰也無法控制

(2)比特幣這項發明是突破性的,并且帶來了分布式計算、經濟學以及計量經濟學的新領域。

ASolutiontoaDistributedComputingProblem

SatoshiNakamoto’sinventionisalsoapracticalandnovelsolutiontoaproblemindistributedcomputing,knownasthe"ByzantineGenerals'Problem."Briefly,theproblemconsistsoftryingtoagreeonacourseofactionorthestateofasystembyexchanginginformationoveranunreliableandpotentiallycompromisednetwork.SatoshiNakamoto’ssolution,whichusestheconceptofProof-of-Worktoachieveconsensuswithoutacentraltrustedauthority,representsabreakthroughindistributedcomputingandhaswideapplicabilitybeyondcurrency.Itcanbeusedtoachieveconsensusondecentralizednetworkstoprovethefairnessofelections,lotteries,assetregistries,digitalnotarization,andmore.

比特幣用了一種新的方式解決拜占庭問題,即在一個不受信任的網絡環境下,不同角色如何通過交換信息,來對行動或者狀態達成一致。

網絡是一個充滿了不信任的危險環境,雖然對小白來說不是這樣的。我以安全行業的從業者為例,這個行業里很多安全工程師是在虛擬機里看郵件的,因為郵件往往是重要的攻擊風險來源,而且對于安全工程師,有一種有趣的說法,兩個人的最高信任就是,你發了一個郵件,有一個附件,我毫不猶豫地點開。

要在這樣的不信任的環境中,構建信任,是密碼學一直以來研究的課題。比特幣就是在這個方向上的一次積極的嘗試。

BitcoinUses,Users,andTheirStories

ChoosingaBitcoinWallet

GettingYourFirstBitcoin

接下來的小節,原書舉了幾個比特幣的應用場景,以及如何購買第一枚比特幣。該部分內容相對簡單,在此就不予以詳述。可以閱讀英文鏈接

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch01.asciidoc#bitcoin-uses-users-and-their-stories

Tags:bitcoin比特幣atcbitcoin幣是什么幣比特幣中國官網聯系方式40億比特幣能提現嗎比特幣最新價格行情走勢atc幣是什么幣

歐易交易所app官網下載
為什么幣圈重視域名,有人曾經因為域名不好,沒被收購_區塊鏈

隨著Btc這種事物的興起,這種曾經的高利潤模式,造就了很多一夜暴富的人,也有很多做反方向很慘的人,跳樓都有,但這種新興的行業卻讓很多人看到機會.

1900/1/1 0:00:00
比特幣支付多國遍地開花,印尼連續警示風險_比特幣

機場消費、買機票、購置家電、支付餐費、UPS儲物柜、打車,比特幣等虛擬貨幣支付已經滲透到日常生活的許多方面.

1900/1/1 0:00:00
勁爆!迅雷大數據宣稱玩客幣非法傳銷,沒有使用任何區塊鏈技術_區塊鏈

↗關注“零壹財經”,讀懂新金融。 11月28日,微信公眾號“迅雷蜂鳥金融”發布公告稱,迅雷旗下網心科技公司負責人陳磊以其同時擔任迅雷CEO之身份便利,非法發行玩客幣活動,“玩客幣”沒有使用任何區.

1900/1/1 0:00:00
鏈克口袋不能轉賬的解決方案 玩客幣錢包不能轉賬的解決方案_APP

鏈克錢包,也就是玩客幣錢包,國內版本不能轉賬了,用戶在轉賬的時候就會提示網絡異常。是不是玩客云用戶就沒有辦法轉賬了呢?其實很簡單,使用一個合理上網軟件就輕松搞定了.

1900/1/1 0:00:00
藝考文化課怎么學?教你中等生如何拿下歷史高分_SDT

歷史易學不易考,拿下高分更是艱難。在文化課培訓的過程中,歷史基礎較為不錯的藝考生,發現想進一步提升歷史考分頗為不易.

1900/1/1 0:00:00
萊特幣Litecoin(LTC)_萊特幣

LTC介紹 萊特幣誕生于2011年11月9日,被稱為是“數字白銀”。萊特幣在技術上和比特幣具有相同的實現原理.

1900/1/1 0:00:00
ads