damus icon indicating copy to clipboard operation
damus copied to clipboard

Proof of work

Open 0xtlt opened this issue 2 years ago • 1 comments

Because the application must remain understandable to everyone, it will not be possible to choose its PoW level, instead 4 distinct levels will be available:

  • Disabled: No filter and PoW on sent messages
  • Level 1: PoW difficulty 5 (may change in the future)
  • Level 2: PoW of difficulty 10 (may change in the future)
  • Level 3: PoW of difficulty 15 (may change in the future)

It would be necessary to find a "naming" simpler than PoW on the other hand, like "security filter" or "anti spam filter"


  • The "parent" messages of a message with a proof of work that is validated by the client will by default be validated without a check to avoid breaking the threads

0xtlt avatar Dec 28 '22 22:12 0xtlt

pow is already implemented in damus (count_hash_leading_zero_bits) it's just not used because it's not that useful for spam prevention at this time. all levels described here are extremely trivial to create on a single-core CPU in under a second.

jb55 avatar Dec 29 '22 06:12 jb55

My opinion is that Sats are the PoW that's already been done :-)

Shall we close this?

BenGWeeks avatar May 28 '23 14:05 BenGWeeks

yeah PoW is a dead end imo

On Sun, May 28, 2023 at 07:26:47AM -0700, Ben Weeks wrote:

My opinion is that Sats are the PoW that's already been done :-)

Shall we close this?

-- Reply to this email directly or view it on GitHub: https://github.com/damus-io/damus/pull/172#issuecomment-1566157005 You are receiving this because you commented.

Message ID: @.***>

jb55 avatar May 29 '23 19:05 jb55

Yep, I agree

I close this PR :)

0xtlt avatar May 31 '23 05:05 0xtlt