Original Summary

Bitmessage.org still doesn&#x27;t support Python 3 and over the years I&#x27;ve tried several times to create something similar but each time have run up against unclear&#x2F;incomplete&#x2F;missing documentation in Python&#x2F;Rust&#x2F;flask&#x2F;tokio&#x2F;asyncio&#x2F;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 &quot;difficult&quot; part was having two instances of flask&#x2F;quart running simultaneously while also having other stuff happen periodically in background.<p>Novel thing in p2pIM compared to Bitmessage is that messages&#x27; 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&#x27;t support encryption but that should be straightforward to build on top.<p>Message_v0 class in <a href="https:&#x2F;&#x2F;github.com&#x2F;iljah&#x2F;p2pIM&#x2F;blob&#x2F;main&#x2F;messages.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iljah&#x2F;p2pIM&#x2F;blob&#x2F;main&#x2F;messages.py</a> defines low level details such as PoW, how many bytes to use for nonce, checksum, etc. Currently they&#x27;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 <a href="https:&#x2F;&#x2F;github.com&#x2F;iljah&#x2F;p2pIM&#x2F;blob&#x2F;main&#x2F;TODO" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iljah&#x2F;p2pIM&#x2F;blob&#x2F;main&#x2F;TODO</a> list. server1.py mentioned at end of README is my previous attempt at this (without AI help) and the one before that is probably <a href="https:&#x2F;&#x2F;github.com&#x2F;iljah&#x2F;a2amd" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iljah&#x2F;a2amd</a> in Rust.


  • 情报分类:商业与市场研究
  • 分类依据:内容涉及商业、投资或市场动态
  • 信息来源:Hacker News 新项目
  • 发布时间:2026/10/10 22:51:19