Sha256ChallengeVerifier

class Sha256ChallengeVerifier(hashFunction: Sha256HashFunction = DefaultSha256MessageDigestHashFunction) : ChallengeVerifier<Sha256Challenge>

The SHA-256 challenge verifier is a replica of the client's implementation of the SHA-256 proof of work verifier.

Constructors

Link copied to clipboard
constructor(hashFunction: Sha256HashFunction = DefaultSha256MessageDigestHashFunction)

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
Link copied to clipboard
open override fun verify(result: Long, challenge: Sha256Challenge): Boolean

Verifies the work performed by the client.