getDifficulty static method

int getDifficulty(
  1. String eventId
)

Implementation

static int getDifficulty(String eventId) {
  return countLeadingZeroBits(eventId);
}