verify

abstract fun <T : ChallengeType<*>, V : ChallengeVerifier<T>> verify(result: Long, challenge: T, verifier: V): CompletableFuture<Boolean>

Verifies the result sent by the client.

Return

a future object containing the result of the work, or an exception. If the future doesn't return immediately, there will be a 30-second timeout applied to it, after which the work will be concluded failed.

Parameters

result

the byte buffer containing the result data sent by the client

challenge

the challenge the client had to solve

verifier

the verifier used to check the work done by the client for out challenge