ChallengeWorker

interface ChallengeWorker

A worker is used to perform the verifications of the data sent by the client for our proof of work requests. While the work itself is relatively cheap, servers may wish to perform the work on other threads - this interface allows doing that.

Inheritors

Functions

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

Verifies the result sent by the client.