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.

Constructors

Link copied to clipboard
constructor(peer: PeerId, expectedHash: ByteArray, actualHash: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
expect open val message: String?
Link copied to clipboard