calculate proof of work on events
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -25,6 +25,7 @@ enum NostrResponse: Decodable {
|
||||
print(error)
|
||||
throw error
|
||||
}
|
||||
ev.pow = count_hash_leading_zero_bits(ev.id)
|
||||
self = .event(sub_id, ev)
|
||||
return
|
||||
} else if typ == "NOTICE" {
|
||||
|
||||
Reference in New Issue
Block a user