feat: add I2P BitTorrent engine, DHT, and Firefox torrent extension
- Add pure-MoonBit bittorrent package: bencode codec, metainfo/magnet parsing with path traversal checks, peer wire protocol (BEP 10/9), and I2P Kademlia DHT with KRPC and 54-byte compact nodes - Add SHA-1 primitive in crypto for torrent info hashes - Add router torrent API and engine, enabled with --torrent-api (default 127.0.0.1:4445) and --download-dir - Add Firefox WebExtension torrent manager with native messaging host and packed .xpi - Add scripts to build a standalone Firefox + router AppImage and install the native host - Add just targets (proxy, appimage, extension), README docs, and ignore .cache/ and dist/
This commit is contained in:
1 parent
14eae00f5c
commit
fbe6818c4e
37 files changed
+8543
-9
No files matched your search
@@ -58,10 +58,25 @@ moon build --target native cmd/client
|
||||
just proxy
|
||||
|
||||
# Optional flags:
|
||||
# --http-proxy [host:port] Enable HTTP-over-I2P proxy (default: 127.0.0.1:4444)
|
||||
# --hops <1..4> Tunnel length (e.g. --hops 2 for 2-hop Inbound & Outbound tunnels)
|
||||
# --hosts <hosts.txt> Load hostname=base64dest (or .b32.i2p) entries from a local I2P hosts.txt
|
||||
# --debug Log peer dials, tunnel builds, NetDB lookups, and Garlic/Streaming state
|
||||
# --http-proxy [host:port] Enable HTTP-over-I2P proxy (default: 127.0.0.1:4444)
|
||||
# --torrent-api [host:port] Enable BitTorrent + I2P DHT HTTP API (default: 127.0.0.1:4445)
|
||||
# --download-dir <dir> Download directory for I2P torrents (default: ~/Downloads/moon-i2p)
|
||||
# --hops <1..4> Tunnel length (e.g. --hops 2 for 2-hop Inbound & Outbound tunnels)
|
||||
# --hosts <hosts.txt> Load hostname=base64dest (or .b32.i2p) entries from a local I2P hosts.txt
|
||||
# --debug Log peer dials, tunnel builds, NetDB lookups, and Garlic/Streaming state
|
||||
|
||||
# Or launch via just (starts --public --http-proxy 127.0.0.1:4444 --torrent-api 127.0.0.1:4445):
|
||||
just proxy
|
||||
|
||||
# Build a standalone zero-setup Firefox + moon-i2p router AppImage (insulaocculta.i2p homepage):
|
||||
just appimage
|
||||
./dist/MoonI2P-Browser-x86_64.AppImage
|
||||
|
||||
# Firefox WebExtension + I2P DHT Torrent Manager:
|
||||
# Installs native messaging host (~/.mozilla & ~/.config/mozilla) and packs .xpi:
|
||||
just extension
|
||||
# Load `extensions/firefox-i2p-torrent/manifest.json` temporarily in Firefox (`about:debugging`)
|
||||
# or install `extensions/firefox-i2p-torrent.xpi`.
|
||||
|
||||
# Once tunnels are up (`tunnels=in:2/out:2`), browse .i2p / .b32.i2p eepsites via the HTTP proxy:
|
||||
# Point your browser's HTTP Proxy to 127.0.0.1:4444 (or test with curl):
|
||||
|
||||
Reference in new issue
Block a user