Ok, so here is a draft NIP for a Proof of Work Service Provider. All Feedback welcome!

Would love to hear from relay operators, open source relay contributors, client apps, Nostr users.

Basically, it allows for you to generate an event POW before signing as part of a relay membership or pre-paid credit system. Ultimately to succeed, Nostr apps would need to offer it.

I have a fully functional rust implementation I’ll likely open source (if enough interest), that just needs the payment integration code - and a bunch of testing.

https://gist.github.com/blakejakopovic/6c0ea718c0f956c461e9e8952d8c6533

Reply to this note

Please Login to reply.

Discussion

#[0]

It’s an option for anyone to use I guess for every note, or perhaps if relay are rejecting them with PoW minimum. If you’re not a member, it could be an ok way for relays to generate income - or pay costs.

In early testing you need at least 20 PoW to start to combat spam and automated flooding. That’s more than a laptop or mobile can do in a second. So around there may be the starting point.

Plus, if you PoW once, ideally your pubkey event now is accepted by any relay with a minimum PoW that’s same or lower.

#[6]

This might interest you.

It’s looking like the proof of work minimum required to combat spam is likely around 20. That’s really high for mobiles and even laptops.

Therefore, we need to offload that computation somewhere - like a service provider.

I aim to release initial code this week. It’s missing payments and remote POW generation (if you want to use a different server).

#[2]

Thanks!

#[0]