isValid

fun isValid(code: String, counter: Long): Boolean

Validates the given code.

Parameters

code

the code calculated from the challenge to validate.

counter

the used challenge for the code.