verify Beacon
fun verifyBeacon(chainInfo: ChainInfo, beacon: RandomnessBeacon, expectedRound: Long): Result<RandomnessBeacon>
Verifies a beacon against expected round and chain info.
Performs comprehensive validation in the following order:
Validates beacon format (required fields present and valid)
Validates round matches expected round
Validates randomness equals SHA256(signature)
Verifies BLS signature using chain's public key
Return
Result.success containing the verified beacon if all checks pass, or Result.failure with DrandError describing what failed
Parameters
chain Info
The chain configuration containing public key and signing scheme
beacon
The beacon to verify
expected Round
The expected round number (typically the round you requested)