EN - FR - DE - ES - IT - PT -

LexiconDream

🔒 不变性

区块链的特性是,一旦数据写入区块链,就无法更改。

不变性

不可篡改性意味着一旦数据写入区块链,它就永远留在那里。不存在编辑按钮。任何管理员都无法悄悄修改旧记录。每个区块都包含其前一个区块的哈希值,更改过去区块中的任何内容都会破坏后续所有区块的哈希值。网络会拒绝被篡改的链,并保留原始链。

区块链的这一特性使其适用于需要长期保存且可信的记录。产权、供应链日志和支付历史都受益于不可篡改的账本。但不可篡改性也有其阴暗面。智能合约中的漏洞无法修复,发送到错误地址的交易也无法撤回。2016 年的 DAO 黑客事件迫使以太坊在不可篡改性和追回被盗资金之间做出选择。社区选择了追回资金,将区块链一分为二,以太坊经典保留了原始历史记录。双方都没有明显的错误。

不变性究竟意味着什么,又不意味着什么?

区块链记录的是网络接受的内容。至于这些内容是否与实际情况相符,则是另一个问题。

Comments (3)

  1. Leo
    The concept is straightforward but the implications for data integrity are huge.
  2. Victor
    Once it's on the chain it's there. That permanence is both the feature and the risk depending on what you write.
  3. Hannah L
    How do hard forks fit into this idea? Feels like they kind of break the pure immutability story.

Leave a comment