MIT 6.5840:Lecture 20 Bitcoin
本篇逐行译注 MIT 6.5840 Spring 2026 Lecture 20,覆盖 Bitcoin、double spending、public ledger、proof-of-work、blockchain fork、51% attack、transaction validation 与 permissionless peer network。
MIT 6.5840:Lecture 20 Bitcoin
TL;DR
- Bitcoin 解决的问题:在不认识、且部分必然不诚实的 peer network 中,构建足够安全的 electronic cash system。
- 核心难题:double spending;单纯的签名 transaction chain 只能证明签名正确,不能阻止 owner 向不同 recipients 展示两个冲突 transactions。
- 核心机制:所有 peers flood transactions 和 blocks;miners 用 proof-of-work 竞争产生 block;最长且有效的 chain 作为公共 ledger。
- Fork 的处理:短暂 fork 是可能的,peers 先沿已知 block 挖矿,看到更长 chain 后切换;等待更多后继 blocks 会显著降低 double-spend 风险。
- 安全边界:如果 attacker 拥有超过所有 honest peers 的 CPU power,就能发动 51% attack;Bitcoin 的安全依赖 honest majority、proof-of-work 和足够多的 independent miners。
名词解释
| 名词 | 含义 | 本讲对应物 |
|---|---|---|
| Double spending | 同一 coin 被花费两次 | Y→Z 与 Y→Q |
| Public ledger | 所有人看到同一顺序的公共 transaction log | blockchain |
| Block | 包含 transactions、previous hash、nonce 等的记录 | 每约 10 分钟产生 |
| Mining | 通过 proof-of-work 竞争创建下一个 block | 寻找满足 leading zeros 的 nonce |
| Proof-of-work | 让创建有效 block 需要大量计算 | H(block) 有 N 个 leading zeros |
| Fork | 多个有效 successors 暂时形成的 chain 分支 | 最长 chain 规则解决 |
| 51% attack | attacker 掌握多数 CPU power 后控制最长 fork | 可 double-spend |
| Permissionless | 不需要预先获准即可参与 peer network | anyone can run a Bitcoin peer |
| Confirmation | transaction 后面已有的 blocks 数量 | 高价值交易等待多个 blocks |
| UTXO | 某地址拥有 private key、尚未花费的 transaction outputs | 课程中的 unspent transactions |
| Wallet key | 用于签名下一次 transaction 的 private key | 丢失或泄露会导致资金风险 |
目录
| 章节 | 内容 |
|---|---|
| 版本与来源 | 固定 Lecture 20 源文件 |
| 原文逐行翻译 | 按 l-bitcoin.txt 顺序译注 |
| 机制小结 | double spending、mining、fork 与安全边界 |
| 本篇验收 | 源行、图示和协议流程记录 |
版本与来源
- 课程版本:MIT 6.5840 Spring 2026。
- Lecture 源文件:l-bitcoin.txt,292 行,非空源行 242 行,SHA-256:0f3473baaca96f472eb8f78e9260760d92500c3b321d5b22518ad8f88994f13b。
- 配套论文:Bitcoin: A Peer-to-Peer Electronic Cash System,Satoshi Nakamoto,2008。
- 课程日程:MIT 6.5840 Spring 2026 Schedule。
- 翻译边界:英文源行按原顺序保留,随后给出中文译文;Bitcoin、coin、transaction、blockchain、mining、proof-of-work、fork、51% attack、peer、public/private key 和 validation 等术语原样保留。
- 图片结论:源文本没有独立图片文件;net diagram、blockchain 流程、fork 讨论和 validation 条目按原文位置保留。
原文逐行翻译
主题与阅读动机
6.5840 2026 Lecture 20: Bitcoin
6.5840 2026 年 Lecture 20:Bitcoin。
Bitcoin: A Peer-to-Peer Electronic Cash System, by Satoshi Nakamoto, 2008
《Bitcoin: A Peer-to-Peer Electronic Cash System》,作者 Satoshi Nakamoto,2008 年。
why this paper?
为什么阅读这篇 paper?
solves a problem that seemed obviously impossible
它解决了一个看起来显然不可能解决的问题。
built entirely on a collection of untrusted participants
完全建立在一组 untrusted participants 之上。
you don't know who they are
你不知道他们是谁。
some are certain to be corrupt
其中一些必然是 corrupt 的。
yet Bitcoin is secure enough for financial transactions
然而 Bitcoin 对 financial transactions 来说足够 secure。
contains some very clever ideas!
包含一些非常 clever 的 ideas!
与 SUNDR straw man 的关系
related to SUNDR straw man:
与 SUNDR straw man 的关系:
log of signed operations, linked by cryptographic hashes
由 cryptographic hashes 链接起来的 signed operations log。
agreement on log -> agreement on state
对 log 达成 agreement → 对 state 达成 agreement。
forks are a key danger
forks 是一个 key danger。
unlike SUNDR: Bitcoin automatically resolves forks
不同于 SUNDR:Bitcoin 会自动 resolve forks。
关键危险:double spending
the key danger: double spending
关键危险:double spending。
Notation
notation:
notation:
pub(new): public key of new owner
pub(new):new owner 的 public key。
H(prev): cryptographic hash of this coin's previous transaction record
H(prev):该 coin 的 previous transaction record 的 cryptographic hash。
sig(old): signature over this transaction by previous owner's private key
sig(old):previous owner 用其 private key 对这次 transaction 生成的 signature。
简单但 broken 的 transaction-chain scheme
a simple (broken) transaction-chain scheme:
一个简单但 broken 的 transaction-chain scheme:
X has previously paid a coin to Y:
X 之前已经向 Y 支付了一个 coin:
T6: pub(X), ...
T6:pub(X), ...
T7: pub(Y), H(T6), sig(X)
T7:pub(Y), H(T6), sig(X)。
Y buys a sandwich from Z and pays with this coin
Y 从 Z 购买 sandwich,并用这个 coin 支付。
Z sends public key to Y
Z 把 public key 发送给 Y。
Y creates a new transaction and signs it
Y 创建一个 new transaction 并签名。
T8: pub(Z), H(T7), sig(Y)
T8:pub(Z), H(T7), sig(Y)。
Y sends transaction T8 to Z
Y 把 transaction T8 发送给 Z。
Z verifies T8:
Z verify T8:
really pub(Z)
确实是 pub(Z)。
T7 exists, hash is correct
T7 存在,hash 正确。
T8's sig(Y) verifies using T7's pub(Y)
使用 T7 的 pub(Y) 可以 verify T8 的 sig(Y)。
verify(T8, T8.sig(), T7.pub()) == ok
verify(T8, T8.sig(), T7.pub()) == ok。
Z gives sandwich to Y
Z 把 sandwich 给 Y。
Bitcoin 记录 transactions,而不是 coins
Bitcoin only records transactions, not coins or accounts or balances
Bitcoin 只记录 transactions,不记录 coins、accounts 或 balances。
Z's "balance": unspent transactions for which Z knows private key
Z 的“balance”:Z 知道 private key、且尚未花费的 transactions。
the "identity" of a coin is the (hash of) its most recent xaction
一个 coin 的“identity”是它最近一次 xaction 的(cryptographic)hash。
非 owner 能否 spend coin
can anyone other than the owner spend a coin?
除了 owner 之外,其他人能 spend 一个 coin 吗?
current owner's private key needed to sign next transaction
签署 next transaction 需要 current owner 的 private key。
danger: perhaps attacker can steal Z's private key
危险:attacker 也许能 steal Z 的 private key。
e.g. from PC or smartphone or online exchange
例如从 PC、smartphone 或 online exchange 中盗取。
this is a serious problem in practice, and hard to solve well
这是一个 serious problem,在实践中很难很好地解决。
一个 coin 能否被 owner spend 两次
can a coin's owner spend it twice in this scheme?
在这个 scheme 中,coin 的 owner 能 spend 它两次吗?
Y creates two transactions for same coin: Y->Z, Y->Q
Y 为同一个 coin 创建两个 transactions:Y->Z、Y->Q。
both with H(T7)
两者都带有 H(T7)。
Y shows different transactions to Z and Q
Y 向 Z 和 Q 分别展示不同的 transactions。
both transactions look good, including signatures and hash
两个 transactions 看起来都 good,包括 signatures 和 hash。
now both Z and Q will give sandwiches to Y
现在 Z 和 Q 都会把 sandwiches 给 Y。
double-spending is the most fundamental problem that bitcoin solves
double-spending 是 Bitcoin 解决的最 fundamental problem。
为什么简单 scheme 允许 double spending
why is double-spending possible in my simple scheme?
为什么我的 simple scheme 允许 double-spending?
Z and Q didn't know about the other transaction
Z 和 Q 不知道另一个 transaction 的存在。
Public ledger
a "public ledger" would reveal Y's double-spend
一个“public ledger”会揭露 Y 的 double-spend。
publish a log of all transactions
发布所有 transactions 的 log。
ensure everyone sees the same log, in the same order
确保每个人看到同一个 log,且顺序相同。
ensure no-one can un-publish or modify a log entry
确保没有人能 un-publish 或 modify 一个 log entry。
Z, Q only believe transactions seen in log
Z、Q 只相信 log 中看到的 transactions。
result:
结果:
Q will see Y->Z is already in log, and will reject Y->Q
Q 会看到 Y->Z 已经在 log 中,并 reject Y->Q。
how to create such a ledger?
如何创建这样的 ledger?
Bitcoin peer network
the BitCoin peer network
Bitcoin peer network。
lots of peer computers participate in agreement
大量 peer computers 参与 agreement。
[net diagram]
[net diagram]。
each has a complete copy of the whole chain
每个 peer 都有 whole chain 的 complete copy。
each has TCP connections to a few other peers -- a "mesh overlay"
每个 peer 通过 TCP 与少量其他 peers 连接——形成一个“mesh overlay”。
new chain blocks flooded to all peers, by forwarding over TCP
new chain blocks 通过 TCP forwarding flood 给所有 peers。
proposed transactions also flooded to all peers
proposed transactions 也 flood 给所有 peers。
flooding helps ensure all peers are aware of all transactions
flooding 有助于确保所有 peers 都 aware of all transactions。
anyone can run a Bitcoin peer!
任何人都可以运行 Bitcoin peer!
currently tens of thousands
当前有 tens of thousands。
so some peers will be malicious
因此一些 peers 会是 malicious 的。
design assumes honest >> malicious
设计假设 honest >> malicious。
Bitcoin blockchain
the BitCoin block chain
Bitcoin blockchain。
the block chain contains all transactions on all coins
blockchain 包含所有 coins 上的所有 transactions。
so that double-spending will be visible
这样 double-spending 就会 visible。
each block:
每个 block 包含:
H(prevblock)
H(prevblock)。
reward transaction
reward transaction。
list of transactions (pub, H, sig)
transactions list(pub、H、sig)。
"nonce"
“nonce”。
block creation time (wall clock timestamp)
block creation time(wall clock timestamp)。
note that the block is not signed!
注意 block 没有被 signed!
new block every 10 minutes containing xactions since prev block
每 10 分钟产生一个 new block,包含自 prev block 以来的 xactions。
payee believes transaction when seen in the block chain
payee 在 blockchain 中看到 transaction 时相信它。
谁创建 new block
who creates each new block?
谁创建每个 new block?
this is "mining" via "proof-of-work"
这就是通过“proof-of-work”进行“mining”。
requirement: H(block) has N leading zeros
要求:H(block) 有 N 个 leading zeros。
each peer tries random nonce values until this works out
每个 peer 不断尝试 random nonce values,直到成功。
trying one nonce is fast, but most nonces won't work
尝试一个 nonce 很快,但大多数 nonces 都不会 work。
it's like flipping a zillion-sided coin until it comes up heads
这像是不断抛一个有 zillion 个面的 coin,直到出现 heads。
each flip has an independent small chance of success
每次 flip 都有独立且很小的 success chance。
mining a block is *not* a specific fixed amount of work
mining 一个 block 不是一个 specific fixed amount of work。
it would likely take one CPU months to create one block
一个 CPU 很可能需要数月才能创建一个 block。
but thousands of peers are working on it
但 thousands of peers 正在共同工作。
such that average time to first to find is about 10 minutes
因此 first find 的 average time 约为 10 分钟。
though the variance is high
但 variance 很高。
the winner floods the new block to all peers
winner 把 new block flood 给所有 peers。
Y->Z transaction 如何进入 blockchain
how does a Y->Z transaction work w/ block chain?
Y->Z transaction 如何在 blockchain 中工作?
start: all peers know ...<-B5
start:所有 peers 都知道 ...<-B5。
and are mining block B6 (trying different nonces)
并且正在 mining block B6(尝试不同 nonces)。
Y sends Y->Z transaction to peers, which flood it
Y 把 Y->Z transaction 发送给 peers,peers 再 flood 它。
peers buffer the transaction until B6 computed
peers buffer 该 transaction,直到 B6 computed。
peers that heard Y->Z include it in next block
听到 Y->Z 的 peers 会把它放进 next block。
so eventually ...<-B5<-B6<-B7, where B7 includes Y->Z
所以最终得到 ...<-B5<-B6<-B7,其中 B7 包含 Y->Z。
Fork 如何产生
Q: could there be two different successors to B6?
问题:B6 是否可能有 two different successors?
A: yes:
回答:可以:
- two peers find nonces at about the same time, or
1)两个 peers 几乎同时 find nonces,或者
- slow network, 2nd block found before 1st is flooded to all
2)network slow,2nd block 在 1st flood 给所有 peers 之前就被找到。
two simultaneous blocks will be different
两个 simultaneous blocks 会不同。
miners know about slightly different sets of new transactions, &c.
miners 知道的 new transactions sets 略有不同,等等。
if two successors, the blockchain temporarily forks
如果有两个 successors,blockchain 会 temporary fork。
peers mine a successor to whichever block they heard first
peers 针对它们 first heard 的 block mining successor。
but switch to longer chain if they hear one
但如果听到更长的 chain 就 switch。
Fork 如何解决
how is a fork resolved?
fork 如何被 resolved?
each peer initially believes the first new (and valid) block it sees
每个 peer 初始相信它看到的第一个 new(且 valid)block。
tries to mine a successor
并尝试 mining 一个 successor。
if more saw Bx than By, more will mine for Bx,
如果看到 Bx 的 peers 多于看到 By 的 peers,那么更多 peers 会为 Bx mining,
so Bx successor likely to be created first
因此 Bx 的 successor 更可能 first 被创建。
even if exactly half-and-half, one fork likely to be extended first
即使正好一半对一半,也很可能有一个 fork first 被 extended。
since significant variance in mining time
因为 mining time 有显著 variance。
peers switch to the longest fork once they see it
peers 一旦看到 longest fork 就 switch。
so longer fork gets more mining power extending it
因此 longer fork 得到更多 mining power 来 extend 它。
so agreement on a block tends to be re-enforced
因此对一个 block 的 agreement tends to be re-enforced。
what about transactions in the abandoned fork?
abandoned fork 中的 transactions 怎么办?
most will be in both forks
大多数会同时出现在两个 forks 中。
but some may be in just the abandoned fork -- appear, then disappear!
但有些可能只在 abandoned fork 中——出现,然后消失!
Transaction 落入 abandoned fork
what if Y->Z ends up in an abandoned transient fork?
如果 Y->Z 最终进入一个 abandoned transient fork,会怎样?
that might allow Y to double-spend!
这可能允许 Y double-spend!
Z sees Y->Z; then it disappears; then Y can broadcast Y->Q
Z 看到 Y->Z;随后它消失;然后 Y 可以 broadcast Y->Q。
Confirmation 与风险
thus:
因此:
double spending is possible, due to forks
由于 forks,double spending 是可能的。
but a transient fork is highly likely to be resolved quickly
但 transient fork 极有可能很快被 resolved。
if Z sees Y->Z with a few blocks after it,
如果 Z 看到 Y->Z 后面已经有 few blocks,
it's very unlikely that it could be overtaken by a
它极不可能被一个
different fork containing Y->Q
包含 Y->Q 的 different fork overtaken。
if Z is selling a high-value item, Z should wait for a few
如果 Z 正在出售 high-value item,Z 应该等待 few
blocks before shipping it
blocks 再发货。
if Z is selling something cheap, maybe OK to wait just for some peers
如果 Z 出售的东西很 cheap,也许只需等待一些 peers
to see Y->Z and validate it (even before Y->Z is in a block)
看到 Y->Z 并 validate 它(甚至在 Y->Z 进入 block 之前)即可。
从 old block 发起攻击 fork
could attacker start a fork from an old block, with Y->Q instead of Y->Z?
attacker 能否从一个 old block 开始 fork,用 Y->Q 替代 Y->Z?
yes -- but fork must be longer in order for peers to accept it
可以——但 fork 必须更长,peers 才会 accept 它。
since attacker's fork starts behind main fork,
由于 attacker's fork 从 main fork 后面开始,
attacker must mine blocks *faster* than total of other peers
attacker 必须比其他 peers 的 total mining speed 更快。
with just one CPU, will take months to create even a few blocks
仅用一个 CPU,创建 few blocks 就需要数月。
by that time the main chain will be much longer
到那时 main chain 会长得多。
no peer will switch to the attacker's shorter chain
没有 peer 会 switch 到 attacker 的 shorter chain。
51% attack
"51% attack"
“51% attack”。
if the attacker has more CPU power than all the honest
如果 attacker 的 CPU power 多于所有 honest
bitcoin peers -- then the attacker can create the longest fork,
bitcoin peers——那么 attacker 可以创建 longest fork,
everyone will switch to it, allowing the attacker to double-spend.
everyone 都会 switch 到它,从而允许 attacker double-spend。
Proof-of-work mining 的一种理解方式
one way to think about bitcoin's proof-of-work mining
理解 Bitcoin proof-of-work mining 的一种方式。
random choice over peers for who gets to choose which fork to extend
随机选择哪个 peer 获得选择要 extend 哪个 fork 的机会。
weighted by CPU power
权重由 CPU power 决定。
if most participants are honest,
如果 most participants 是 honest 的,
they will re-inforce agreement on longest fork
它们会 re-inforce 对 longest fork 的 agreement。
random choice means a (small) attacker won't get many
random choice 意味着一个(small)attacker 不会得到很多
chances to try to switch agreement to a different fork
尝试把 agreement switch 到 different fork 的 chances。
surprising that random choice is possible without knowing
令人惊讶的是,不知道
participant identities or even how many!
participant identities,甚至不知道 participants 有多少,也能进行 random choice!
Miners 的动机
what motivates miners?
什么 motivates miners?
critical that there be many miners, to make 51% attacks harder
必须有 many miners,这对让 51% attacks 更困难至关重要。
each new block pays miner a few newly created bitcoins -- a reward
每个 new block 向 miner 支付少量 newly created bitcoins——这是 reward。
block contains public key that gets the new bitcoins
block 包含获得 new bitcoins 的 public key。
this is incentive for people to operate bitcoin peers
这是激励 people operate bitcoin peers 的 incentive。
hardness (# of leading zeros) automatically adjusted
hardness(leading zeros 的数量)会自动调整。
to make avg interval be 10 minutes
使 avg interval 保持 10 分钟。
consequences:
consequences:
arms race, since more hardware -> more reward
arms race,因为更多 hardware → 更多 reward。
special hardware
special hardware。
pools of miners that collaborate
协作的 miners pools。
energy waste
energy waste。
Reward money 从何而来
how is it possible to create reward money out of nothing?
怎么可能凭空创建 reward money?
the rules are determined by the code in (a majority) of peers
规则由(majority)peers 中的 code 决定。
the peers all have code that honors the special reward transactions
所有 peers 的 code 都会 honor special reward transactions。
Validation checks
validation checks:
validation checks:
peer, new xaction:
peer 收到 new xaction:
previous transaction exists
previous transaction 存在。
no other transaction spends the same previous transaction
没有其他 transaction spend 同一个 previous transaction。
signature is by private key of pub key in previous transaction
signature 由 previous transaction 中 pub key 对应的 private key 生成。
then will add transaction to txn list for next block to mine
然后把 transaction 添加到待 mining next block 的 txn list。
peer, new block:
peer 收到 new block:
hash value has enough leading zeroes (i.e. nonce is right, proves work)
hash value 有足够 leading zeroes(也就是 nonce 正确,证明 work)。
previous block hash exists
previous block hash 存在。
all transactions in block are valid
block 中的所有 transactions 都 valid。
peer switches to new chain if longer than current longest
如果 new chain 比 current longest 更长,peer switch 到 new chain。
Z:
Z:
(client does above checks, or relies on a peer to do them)
(client 执行上述 checks,或依赖 peer 执行)。
Y->Z is in a block
Y->Z 位于一个 block 中。
Z's public key / address is in the transaction
Z 的 public key / address 位于 transaction 中。
there's several more blocks in the chain
chain 中还有 several more blocks。
(other stuff has to be checked as well, lots of details)
(还必须检查 other stuff,有 lots of details)。
Q&A
Q: why an open / "permissionless" / decentralized peer structure?
问题:为什么采用 open / “permissionless” / decentralized peer structure?
Q: why is it reasonable to assume the majority of peers are honest?
问题:为什么假设 majority of peers 是 honest 的是 reasonable?
Q: if one started a new bitcoin-like cryptocurrency, with only a few peers,
问题:如果创建一个只有 few peers 的 new bitcoin-like cryptocurrency,
would it be reasonable to trust it?
那么 trust 它是否 reasonable?
Q: what transaction rate can bitcoin support?
问题:Bitcoin 能支持什么 transaction rate?
10 minutes * 1 MB blocks -> about 5 transactions/second
10 分钟 × 1 MB blocks → about 5 transactions/second。
credit card system handles about 5000 / second
credit card system 处理 about 5000 / second。
Q: 10 minutes is annoying; could it be made much shorter?
问题:10 分钟很 annoying;能否显著缩短?
Q: what would happen if I modified my copy of the Bitcoin s/w?
问题:如果我修改自己的 Bitcoin s/w copy,会发生什么?
e.g. to reduce the proof-of-work hardness?
例如降低 proof-of-work hardness?
Q: could Bitcoin have been just a ledger w/o a new currency?
问题:Bitcoin 能否只是一个 ledger,而没有 new currency?
e.g. have dollars be the currency?
例如让 dollars 成为 currency?
since the currency part is pretty awkward.
因为 currency part 相当 awkward。
how to incentivize miners?
如何 incentivize miners?
how to transfer actual dollars?
如何 transfer actual dollars?
Q: why don't more people use Bitcoin for ordinary transactions?
问题:为什么没有更多 people 用 Bitcoin 进行 ordinary transactions?
high fees; not reversible; 10 minute delay; volatile value
high fees;不可 reversible;10 minute delay;volatile value。
Q: are transactions anonymous?
问题:transactions 是 anonymous 的吗?
Q: how could one steal someone else's bitcoins?
问题:如何 steal someone else 的 bitcoins?
Q: if I steal bitcoins, is it safe to spend them?
问题:如果 steal bitcoins,spend 它们是否 safe?
Q: what if the block format needs to be changed?
问题:如果 block format 需要改变怎么办?
esp if new format wouldn't be acceptable to previous s/w version?
尤其是 new format 不被 previous s/w version 接受时?
"hard fork"
“hard fork”。
Q: how do peers find each other?
问题:peers 如何 find each other?
Q: what if a peer has been tricked into only talking to corrupt peers?
问题:如果一个 peer 被 tricked,只与 corrupt peers 通信怎么办?
Q: what if a peer rejoins after a long period of disconnection?
问题:如果一个 peer 在长时间 disconnection 后 rejoin,会怎样?
Q: why does it make sense for the mining reward to decrease with time?
问题:为什么 mining reward 随时间 decrease 是有意义的?
Q: is it a problem that there will be a fixed number of coins?
问题:coins 数量固定会是问题吗?
what if the real economy grows (or shrinks)?
如果 real economy grow(或 shrink)呢?
Q: why do bitcoins have value?
问题:为什么 bitcoins 有 value?
e.g. people seem willing to pay $76,000 per bitcoin (April 2026).
例如 people 似乎愿意为每个 bitcoin 支付 $76,000(April 2026)。
Q: if lots of miners join, will blocks be created at a higher rate?
问题:如果 lots of miners join,blocks 会以更高 rate 创建吗?
Q: can bitcoins be forged, i.e. a totally fake coin created?
问题:bitcoins 能被 forged 吗,也就是创建一个 totally fake coin?
Design 的 weak points
weak points in the design?
这个 design 的 weak points?
proof-of-work uses a lot of electricity
proof-of-work 使用大量 electricity。
too bad it's a new currency as well as a payment system
它同时是 new currency 和 payment system,这一点不理想。
transaction confirmation takes at least 10 minutes, or 60 for high confidence
transaction confirmation 至少需要 10 分钟;high confidence 则需要 60 分钟。
flooding limits performance, may be a point of attack
flooding 限制 performance,也可能成为 attack point。
maximum block size plus 10 minutes limits max transactions per second
maximum block size 加上 10 分钟限制了 max transactions per second。
vulnerable to majority attack
容易受到 majority attack。
not very anonmyous
not very anonymous。
anonymous enough to attract illegal activity
又 anonymous 到足以 attract illegal activity。
users have trouble securing private keys
users 很难 secure private keys。
Take-away
key idea: block chain
key idea:blockchain。
public agreed-on ledger is a great idea
public agreed-on ledger 是一个 great idea。
mining is a clever way to resolve forks / ensure agreement
mining 是 resolve forks / ensure agreement 的 clever way。
下一周
next week:
下周:
BFT, another way to obtain security from possibly-insecure servers
BFT,另一种从 possibly-insecure servers 获得 security 的方式。
References
---- References ----
---- References ----。
https://www.ieee-security.org/TC/SP2015/papers-archived/6949a104.pdf
https://www.ieee-security.org/TC/SP2015/papers-archived/6949a104.pdf
https://en.bitcoin.it/wiki/Script
https://en.bitcoin.it/wiki/Script
https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch08.html
https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch08.html
机制小结
1. 从签名 transaction chain 到 public ledger
签名只能证明 transaction 确实由上一个 owner 授权,不能证明该 coin 没有被同时支付给另一个 recipient。Bitcoin 把所有 transactions 放进公共、按顺序共享的 ledger,使 peers 能看到 previous transaction 是否已经被 spend,从而把 double spending 从“两个 recipients 各自判断”转化为“全网对同一历史判断”。
2. Blockchain 与 proof-of-work
每个 block 包含 previous block hash、transactions、reward、nonce 和 timestamp。miner 反复尝试 nonce,直到 H(block) 满足 leading-zero 条件;成功者 flood 新 block。hash linking 让修改旧 block 会破坏后续 chain,proof-of-work 则让从旧点重写并追上主 chain 变得昂贵。
3. Fork resolution 与 confirmation
网络延迟或同时找到 nonce 会产生两个 successors,形成 transient fork。peers 先沿自己看到的 valid block mining,看到更长 chain 后切换;更长 fork 于是获得更多 mining power,agreement 被 re-enforce。transaction 后等待的 blocks 越多,被另一条 fork overtaken 的概率越低。
4. 51% attack 与 honest majority
proof-of-work 的 random choice 按 CPU power 加权。honest majority 会把 mining power 集中到更长的公共 fork;但拥有多数 CPU power 的 attacker 可以持续创建更长的 malicious fork,让 everyone switch 并 double-spend。Bitcoin 的安全不是来自 identities,而是来自多数计算能力、公开验证规则和经济激励。
5. 激励、验证与系统边界
block reward 激励 miners 参与,difficulty 自动调整以维持约 10 分钟 block interval;代价包括 energy waste、hardware arms race、pool concentration 和 throughput 限制。peers、clients、miners 都必须检查 transaction、signature、previous block hash、proof-of-work 和 chain length;Bitcoin 仍面临 confirmation latency、majority attack、private-key security、匿名性和 governance/hard-fork 等边界。
本篇验收
- [x] 官方 l-bitcoin.txt 已固定:292 行、242 个非空源行,SHA-256 与来源记录一致。
- [x] 源文本的非空行按原顺序逐行保留,中文译文紧随对应英文源行。
- [x] double spending、public ledger、peer network、blockchain、proof-of-work、fork resolution、confirmation、51% attack、mining incentives、validation checks 和 Q&A 全部覆盖。
- [x] net diagram、transaction-chain 流程、fork 过程和 validation 条目按原文位置保留;源文件没有独立图片。
- [x] Bitcoin、transaction、block、blockchain、mining、proof-of-work、fork、peer、public/private key 和 validation 等专用词没有强行翻译。
- [ ] 中文译文仍建议进行一次人工术语审校;自动审计只验证源文覆盖与顺序,不证明翻译语义正确。
评论 (0)