Hi there,
You can now earn satoshis on Nostr. You can provide proof of work and be rewarded with satoshis. For this you must have a bitcoin instance, an LND instance, an oak-node instance.
Tutorial : https://oak-node.net/doc/trunk/doc/nip-13-pow-implementation.md
pull down to refresh
0 sats \ 7 replies \ @k00b 29 Aug 2022
How does this work? I send to the PoW provider:
- a message
- the PoW needed
Then they send me an invoice to get the PoW?
Is it trusted or are the sats escrowed?
reply
100 sats \ 3 replies \ @02a9caab98 29 Aug 2022
It works in a distributed way. Steps are
- User indicates what sort of PoW they want (difficulty, timeframe, amount willing to pay)
- Miner(s) start working
- Miner(s) post blinded PoW
- The invoice preimage unblinds the PoW, so when the Client pays, the PoW is unblinded and usable
Both have risks (user doesnt know if PoW is correct until unblinded, miner doesn't know will get paid until user actually pays). But there is a reputation system in place too.
Goal was to make it fully p2p, no escrow. The website is just a frontend on top of Nostr.
reply
0 sats \ 2 replies \ @k00b 29 Aug 2022
I wonder if escrow could somehow be automated using hodl invoices.
reply
100 sats \ 1 reply \ @02a9caab98 29 Aug 2022
AFAIK escrow (and therefore handling the possible dispute around hodl invoices) involves a 3rd party, is there a way to do it trustlessly?
reply
3 sats \ 0 replies \ @k00b 29 Aug 2022
It would be a 3rd party but it seems like it might be easier for both to trust an escrow node than each other.
The ideal system would be trustless peer to peer for sure. That might require PTLC magic though if its possible at all.
reply
0 sats \ 2 replies \ @04b3ceda2a OP 29 Aug 2022
You can watch and test it with: https://oak-node.net/uv/pow/index.html
reply
6 sats \ 1 reply \ @k00b 29 Aug 2022
I see, so the PoW is blinded until you pay and they somehow are determining that it's valid without seeing it.
I guess the PoW provider could get spammed. Still really cool!
reply
100 sats \ 0 replies \ @02a9caab98 29 Aug 2022
Yes the PoW provier could get spammed. But the PoW provider has full flexibility on when (and for whom) to start mining.
For example, some could skip mining for "new and unproven" clients, with no reputation.
Others could only mine at higher difficulties for miners they've already had successful trades with, etc.
Still others could mine at a baseline "expensive" rate for new clients, but give cheaper rates to "trusted" clients they've mined for before, who they know will pay.
Lots of things possible :)
reply