nostr-websocket-utils / calculatePowEventId
calculatePowEventId(
event
,targetDifficulty
,maxAttempts
):Promise
<string
>
Calculates event ID with proof of work
Record
<string
, unknown
>
Event object without ID
number
Target number of leading zero bits
number
= 1000000
Maximum number of attempts
Promise
<string
>
Event ID with sufficient proof of work