Đang lật trang.
Đang mở chương tiếp theo…
Này… tạo phong cách đọc riêng nhé.
Phông chữ và chủ đề nằm trong Giao diện. Hãy chọn điều dễ chịu cho mắt.
Đang mở chương tiếp theo…
When one party controls enough hashpower or stake to rewrite recent blocks and double-spend.
Đang kiểm tra khả năng đọc thành tiếng của trình duyệt…
Bài đọc này hiện có bằng tiếng Anh. Giao diện sử dụng ngôn ngữ bạn đã chọn.
Đọc bản gốc tiếng Anh →Double-spending is the unauthorized spending of the same money (either digital or conventional) more than once. As with counterfeit money, double-spending leads to supply inflation by creating a new amount of copied currency that did not previously exist. It can also devalue the currency and diminish user trust in the currency.
There are many fundamental cryptographic techniques to prevent double-spending while preserving anonymity in a transaction, including the introduction of a centralized authority (proof-of-authority) for blind signatures and, particularly in offline systems, secret splitting. Other methods to mitigate the double-spend problem include decentralized consensus protocols such as proof-of-work and proof-of-stake.
Prevention of double-spending is usually implemented using an online central trusted third party that can verify whether a token has been spent. This normally represents a single point of failure from both availability and trust viewpoints.
In a decentralized system, the double-spending problem is significantly harder to solve. To avoid the need for a trusted third party, many clients must store compatible copies of a public transaction ledger. As transactions (requests to spend money) are broadcast, they will arrive at each client at slightly different times. If two transactions attempt to spend the same tokens, each client will consider one transaction to be valid while rejecting the other transaction. Conflicting transactions or blocks will cause a chain-split.
Decentralized systems reduce the risk of double-spending by using consensus protocols where clients agree on which is the valid chain, also known as the canonical chain. Two notable types of consensus mechanisms are proof-of-work and proof-of-stake.
By 2007, a number of distributed systems for the prevention of double-spending had been proposed.
The cryptocurrency Bitcoin implemented a protocol to address the double-spending problem in early 2009. It uses a proof-of-work consensus mechanism where transactions are batched into blocks and chained together using a linked list of hash pointers (blockchain). Any miner can produce a block after winning a lottery race that's determined by finding a valid hash of the block with a sufficient number of leading zeroes.
Bitcoin's proof-of-work protocol has probabilistic finality where transactions are never technically "final" because a conflicting chain of blocks can always outgrow the current canonical chain. However, as blocks are built on top of a transaction, it becomes increasingly costly and thus unlikely for another chain to overtake it. Because competing chains and reorgs can arise naturally, it is recommended that participants wait a number of blocks (i.e. "confirmations") before accepting the probabilistic finality of the transaction.
The more confirmations a participant waits, the less risk of encountering a reorg or double-spend.
Proof-of-work blockchains naturally allow for blocks to reorg and thus have probabilistic finality. Competing miners race to submit blocks and build the longest chain. If a competing miner takes over as the longest chain, the blocks of the losing chain are reorged and no longer considered canonical. Any client or merchant that doesn't wait for a sufficient number of confirmations is at risk of experiencing a double-spend if the tokens they received are reverted during a natural reorg.
Được chọn lọc và định dạng lại từ Double-spending, do các cộng tác viên biên soạn, theo . Bản sửa đổi 1365268963. Các phần và định dạng đã được rút gọn; bản sửa đổi được liên kết cung cấp bối cảnh đầy đủ và lịch sử đóng góp. Nội dung tham khảo này giữ nguyên giấy phép. Các liên kết trích dẫn bổ sung được nhập từ bản sửa đổi đó và chưa được kiểm tra độc lập tại đây.