jimbojw / memorelay

In-memory Nostr relay.
Apache License 2.0
0 stars 0 forks source link

Implement NIP-13 proof of work #24

Open jimbojw opened 1 year ago

jimbojw commented 1 year ago

NIP-13 describes how events can include proof-of-work by using a nonce tag. Enforce this convention by rejecting events which include a nonce but do not also have the required number of leading zero bits in the event id.

Note: Use the OK message response type to inform the client if it provided an event with insufficient proof of work. The description should begin with pow:. See NIP-20