public static Difficulty fromHexOrDecimalString(final String str) {
    return str.startsWith("0x") ? new Difficulty(str) : new Difficulty(new BigInteger(str));
  }
A particular quantity of difficulty, the block difficulty to create new blocks.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Difficulty.java