ChallengeVerifier

interface ChallengeVerifier<in T : ChallengeType<*>>

A challenge verifier is used to check the work that the client did. The general idea here is that the client has to perform the work N times, where N is pseudo-random, while the server only has to do that same work one time - to verify the result that the client sent. The complexity of the work to perform is configurable by the server.

Parameters

T

the challenge type to verify

Inheritors

Functions

Link copied to clipboard
abstract fun verify(result: Long, challenge: T): Boolean

Verifies the work performed by the client.