比特幣交易所 比特幣交易所
Ctrl+D 比特幣交易所
ads
首頁 > Coinw > Info

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

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.

馬斯克:推特將分享來自個人資料頁面瀏覽量的廣告收入:金色財經報道,馬斯克在推特發文稱,推特將“很快”分享來自個人資料頁面瀏覽量的廣告收入,這將使支出翻倍。馬斯克提醒,只有來自認證用戶的瀏覽次數才會被計算在內。[2023/7/16 10:58:02]

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

(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?

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

V神地址將5枚ETH轉至0x3945開頭地址:金色財經報道,PeckShield監測數據顯示,Vitalik Buterin地址已將5枚ETH轉移到0x3945開頭地址。[2023/4/4 13:44:02]

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

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

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

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

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

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

今日恐慌與貪婪指數為26,恐慌程度有所上升:金色財經報道,今日恐慌與貪婪指數為26(昨日為28),恐慌程度較昨日有所上升,等級仍為恐慌。

注:恐慌指數閾值為0-100,包含指標:波動性(25%)+市場交易量(25%)+社交媒體熱度(15%)+市場調查(15%)+比特幣在整個市場中的比例(10%)+谷歌熱詞分析(10%)。[2022/12/18 21:51:33]

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

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

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

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

Adecentralizedpeer-to-peernetwork(thebitcoinprotocol)

Apublictransactionledger(theblockchain)

Asetofrulesforindependenttransactionvalidationandcurrencyissuance(consensusrules)

Amechanismforreachingglobaldecentralizedconsensusonthevalidblockchain(Proof-of-Workalgorithm)

A??lchemy Pay法幣支付解決方案現已支持Arbitrum:11月28日,據官方公告,A??lchemy Pay宣布其法幣支付解決方案已支持Arbitrum,將向開發者提供插件,使得開發者可以將法幣支付渠道集成至應用中。

A??lchemy Pay表示,其目前支持來自173個國家和地區的用戶的Mastercard和Visa支付以及歐洲、東南亞和拉丁美洲流行的區域支付系統和電子錢包,此外還支持使用法幣直接購買NFT。[2022/11/28 21:07:27]

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

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

(2)一套公眾賬簿系統

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

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

Asadeveloper,Iseebitcoinasakintotheinternetofmoney,anetworkforpropagatingvalueandsecuringtheownershipofdigitalassetsviadistributedcomputation.There’salotmoretobitcointhanfirstmeetstheeye.

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

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

DigitalCurrenciesBeforeBitcoin

Theemergenceofviabledigitalmoneyiscloselylinkedtodevelopmentsincryptography.Thisisnotsurprisingwhenoneconsidersthefundamentalchallengesinvolvedwithusingbitstorepresentvaluethatcanbeexchangedforgoodsandservices.Threebasicquestionsforanyoneacceptingdigitalmoneyare:

CanItrustthatthemoneyisauthenticandnotcounterfeit?

CanItrustthatthedigitalmoneycanonlybespentonce(knownasthe“double-spend”problem)?

CanIbesurethatnooneelsecanclaimthismoneybelongstothemandnotme?

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

DeFi初創公司Stakefair完成67萬美元pre-seed輪融資:7月13日消息,DeFi初創公司Stakefair宣布完成67萬美元pre-seed輪融資,本輪融資由Adaverse、Nestcoin、Kepple Africa Ventures、Canza Finance、Voltron Capital、Echo VC Chain、Timi Aboyeji、Tomiwa Olaosebikan、Peter Kisadha、Saturn Blockchain Ventures、Thrive Africa Syndicate、NehikhareIgbinijesu、Oluchi Enebeli和Clement Hugbo等參投。[2022/7/13 2:11:09]

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

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幣是什么幣

Coinw
以太坊開發者資源工具集_區塊鏈

區塊鏈兄弟社區,區塊鏈技術專業問答先行者,中國區塊鏈技術愛好者聚集地 來源:GitHub 原文鏈接:http://t.cn/Rdgc7QP著作權歸作者所有.

1900/1/1 0:00:00
比特幣是世界上最成功的互聯網產品,沒有之一!_BAT

文/一劉 如果要問互聯網世界投入最小、運營最簡單、最省事、估值最高、回報最大的單個互聯網產品,也許你一時會想不起來.

1900/1/1 0:00:00
這些年!你都錯過了什么?_GLS

錯過是人一生中經常犯下的“錯誤”直到老去倚在藤椅回想起來最心塞的就是“我應該...”還記得那些年里你錯過了什么嗎? 在過去10年里 我們錯過了太多太多 現在都2018年了 難道你還想繼續錯過嗎?.

1900/1/1 0:00:00
2017年中國硬幣進出口數據分析:全年出口數量增長60.85%_

中商情報網訊:2017年我國硬幣出口數量為100.7噸,與上年同期相比增長60.85%。2017年全年硬幣出口金額為711.9千美元,同比增長1.57%.

1900/1/1 0:00:00
大盤有變,有比特幣的注意了,這個機會你值得珍惜!_比特幣

市場情況 截止發文時,BTC報價為9680美元,ETH報價為780.5美元。更多詳細大數據請登錄幣今網直接查看.

1900/1/1 0:00:00
2020年,我們能否買到L5級別無人駕駛汽車?_DIA

整齊的車隊從港珠澳大橋穿梭過去,駕駛座位上竟然沒有人…這是百度無人駕駛汽車借助今年春晚的正式亮相,同時也標志無人駕駛技術正在將曾經的科幻場景,拉進到我們現實生活中來.

1900/1/1 0:00:00
ads