Code Immutability

Definition ∞ Code immutability describes the characteristic of smart contracts or blockchain protocols that prevents their alteration once deployed to a distributed ledger. This means the underlying programming cannot be changed, deleted, or modified. It ensures the consistent and predictable execution of predefined rules. This property forms a fundamental security and trust mechanism in many decentralized systems.
Context ∞ The state of code immutability often presents a trade-off between security and adaptability in blockchain development. While it guarantees reliability, it also complicates bug fixes or feature upgrades, sometimes necessitating entirely new contract deployments. A key debate involves balancing the benefits of unchangeable code with the practical need for iterative improvement and response to unforeseen issues.