Slashing is a punitive mechanism in Proof-of-Stake (PoS) and Byzantine Fault Tolerant (BFT) consensus systems where a portion of a validator's staked cryptocurrency is permanently confiscated as a penalty for provably malicious or negligent behavior. This action, enforced via the protocol's native code, is the primary economic disincentive against attacks like double-signing (equivocation) or voting on multiple conflicting blocks, which could undermine the network's security and finality. By making dishonest participation economically irrational, slashing secures the network's safety and liveness guarantees.
