Renames PoW Parser to open space for the PoW creator

This commit is contained in:
Vitor Pamplona
2025-02-14 16:28:40 -05:00
parent 0f6c3b9a3a
commit 793b3fcd16
3 changed files with 8 additions and 8 deletions
@@ -22,7 +22,7 @@ package com.vitorpamplona.quartz.nip13Pow
import com.vitorpamplona.quartz.nip01Core.core.Event
fun Event.pow() = PoWRankProcessor.compute(id, tags.commitedPoW())
fun Event.pow() = PoWRankParser.compute(id, tags.commitedPoW())
fun Event.hasPoWTag() = tags.hasPoW()
@@ -34,7 +34,7 @@ fun Event.hasPoWTag() = tags.hasPoW()
fun Event.strongPoWOrNull(min: Int = 20): Int? {
val commitment = tags.commitedPoW()
if (commitment != null) {
val pow = PoWRankProcessor.compute(id, commitment)
val pow = PoWRankParser.compute(id, commitment)
if (pow >= min) {
return pow
}
@@ -22,7 +22,7 @@ package com.vitorpamplona.quartz.nip13Pow
import com.vitorpamplona.quartz.nip01Core.HexKey
class PoWRankProcessor {
class PoWRankParser {
companion object {
@JvmStatic
fun compute(