ProofOfWork

class ProofOfWork<T : ChallengeType<MetaData>, in MetaData : ChallengeMetaData>(val challengeType: T, val challengeVerifier: ChallengeVerifier<T>)

Proof of work is a procedure during login to attempt to throttle login requests from a single source, by requiring them to do CPU-bound work before accepting the login.

Constructors

Link copied to clipboard
constructor(challengeType: T, challengeVerifier: ChallengeVerifier<T>)

Properties

Link copied to clipboard

the type of the challenge to require the client to solve

Link copied to clipboard

the verifier of that challenge, to ensure the client did complete the world successfully

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String