validateEvent static method
Implementation
static bool validateEvent(Nip01Event event) {
final targetDifficulty = getTargetDifficultyFromEvent(event);
if (targetDifficulty == null) {
return true;
}
return checkDifficulty(event.id, targetDifficulty);
}