Global Feed Post Login
Replying to Avatar Girino Vey!

So, i was tinkering with the WoT relay and NIP-13. So events are accepted if they either are from someone in the WoT, or they have a NIP-13 tag with PoW difficulty above a configurable amount. Thsi way we can have both newbies and people in the WoT. (A shame not all clients implement NIP-13, i think this combination of PoW and WoT is a great way to avoid spammers)

I think i made it work. so i'll be testing it tonight, and if nothing goes wrong i can submit a PR by tomorrow (unless you don't want to mix NIP-13 with you WoT, then i can keep it in a separate codebase)

Avatar
utxo the webmaster 🧑‍💻 1y ago

Most people aren't using pow, so it can't be hard coded in, but if you make a configuration option that could be cool

Reply to this note

Please Login to reply.

Discussion

Avatar
Girino Vey! 1y ago

it only checks for Pow if:

1- The event is not from the WoT

2- The NIP-13 tag "nonce" is present.

People in the WoT are not checked for PoW.

But it still configurable, so you can just turn it off.

Avatar
utxo the webmaster 🧑‍💻 1y ago

Awesome look forward to it

Thread collapsed
Thread collapsed