validateRound

Validates that the beacon's round number matches the expected round.

This check ensures you received the beacon you requested and protects against replay attacks where an attacker might try to substitute a beacon from a different round.

Return

Result.success if rounds match, Result.failure with DrandError.VerificationFailed otherwise

Parameters

beacon

The beacon to validate

expectedRound

The expected round number