CommitmentViolation
class CommitmentViolation(val peer: PeerId, val expectedHash: ByteArray, val actualHash: ByteArray) : Exception
Thrown when a peer's revealed secret does not match its earlier commitment hash.
peer committed to expectedHash but their revealed (secret, nonce) hashes to actualHash.