Decred Technical Whitepaper¶
Decred is a cryptocurrency whose consensus rules are enforced, and amended, by the people who hold it. Blocks are produced by proof-of-work miners, but a block only becomes part of the chain once a pseudorandomly selected quorum of stakeholders, who have time-locked funds to buy tickets, has voted to approve it. The same tickets vote on changes to the consensus rules themselves and on every expenditure from a treasury that is funded by a fixed share of each block reward.
This paper specifies the complete protocol as deployed on the Decred main network: the cryptographic primitives, the serialization of every consensus-critical structure, the script language, the transaction and block validation rules, the stake system and its ticket lottery, both difficulty adjustment algorithms, the issuance schedule, the decentralized treasury, the on-chain voting mechanism for rule changes together with every change activated to date, and the peer-to-peer protocol. It is written so that an independent implementation built from this document alone accepts and rejects exactly the same blocks as the reference implementation.
Contents¶
- 1 Introduction
- 2 Conventions and Notation
- 3 Cryptographic Primitives
- 4 Data Encoding and Structures
- 5 Keys and Addresses
- 6 The Script System
- 7 Transactions
- 8 The Stake System
- 9 Proof of Work and Difficulty
- 10 Blocks and Chain Selection
- 11 Issuance and Block Subsidy
- 12 The Decentralized Treasury
- 13 Consensus Rule Changes
- 14 Network Parameters
- 15 The Peer-to-Peer Protocol
- 16 Compact Filters and Light Clients
- 17 Relay Policy and Mining
- 18 StakeShuffle Mixing
- 19 Governance and Ecosystem
- A Opcode Reference
- B Index of Consensus Rules
- C Differences from Bitcoin
- References