Show HN: Peer-to-peer instant messaging with proof-of-work spam protection https://ift.tt/01RBzgo

Show HN: Peer-to-peer instant messaging with proof-of-work spam protection Bitmessage.org still doesn't support Python 3 and over the years I've tried several times to create something similar but each time have run up against unclear/incomplete/missing documentation in Python/Rust/flask/tokio/asyncio/etc. Finally decided to give ChatGPT a real try and with tutoring based on minimal examples managed to have something usable in about a day. Most "difficult" part was having two instances of flask/quart running simultaneously while also having other stuff happen periodically in background. Novel thing in p2pIM compared to Bitmessage is that messages' PoW decays and that larger messages require better PoW than smaller ones. Thus small messages that are discarded quickly require significantly less PoW than large messages that persist for a long time. p2pIM doesn't support encryption but that should be straightforward to build on top. Message_v0 class in https://ift.tt/yivNM6Q defines low level details such as PoW, how many bytes to use for nonce, checksum, etc. Currently they're all only about 10 bytes or hex characters for easier debugging and testing. PoW is calculated as sha256 of timestamp+nonce+checksum, where checksum is sha256 of payload. Adding channel name as fourth item to PoW is on the https://ift.tt/XTOUe5k list. server1.py mentioned at end of README is my previous attempt at this (without AI help) and the one before that is probably https://ift.tt/80GLZhO in Rust. https://ift.tt/hepui2t October 10, 2026 at 04:51AM

No comments:

Show HN: BetterWispr – Free, open-source dictation for Mac https://ift.tt/JKByoOH

Show HN: BetterWispr – Free, open-source dictation for Mac https://ift.tt/yP7lwUf October 11, 2026 at 02:01AM