🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy
Article #29

Re: [ANN.] Yamn Offline Tools NG (with qrcode 4 airgapped scenarios)

#29
From: Gabx
Date: Mon, 09 Nov 2026 22:36
159 lines
8522 bytes
Billy G. wrote:
> Gabx wrote:
>> Announcing the release of YamnOfflineTools-NG, a standalone, pure-Go 
>> offline utility suite for constructing YAMN v2 mixnet packets.
> Thanks for releasing it.
> Building packets offline and moving them by QR code is a nice idea.
> 
> I compared yp/yp.go with crooks/yamn v0.2.6 (client.go and packet.go).
> The packet code is taken from there, with the same logic.
> That covers slotFinal, slotData, encodeHeader, encMessage,
> slotIntermediate and their methods.
> It also covers encodeMsg, seqIV, aesCtr and mixprep.
> The changes are small:
> panics became error messages with os.Exit(1), and Pubring became PubRing.
> blake2s.New became New256, which gives the same output.
> 
> The reuse is fine but crooks/yamn is MIT licensed 
>  ("Copyright (c) 2014 Steve Crook").
> MIT requires that notice to be included with copies 
>  or substantial portions.
> The repo has no LICENSE file right now.
> The README credits only Ch1ffr3punk and says the suite was 
> "redesigned from the ground up".
> 
> Suggested fix:
> - Add crooks/yamn's MIT notice to the repo, e.g. as
>   LICENSES/MIT-yamn.txt or in a NOTICE file.
> - Say in the yp.go header and in the README that the packet construction
>   is derived from github.com/crooks/yamn (MIT).
> - Add the AGPL-3.0 text as LICENSE, since the README names AGPL-3.0 but
>   the file is missing.
> 
> MIT code can be part of an AGPL project, so only the notice is needed.
> Nothing else has to change.
> 
> A small unrelated note: 
> go.mod says "go 1.27", while the guide says Go 1.25 or newer.
> 
> Since you build on crooks/yamn: 
> we maintain a fork of it at https://github.com/go-while/yamn.
> 
> crooks has been inactive for over a year, 
> so we went through the code in two reviews and fixed what we found.
> 
> Stock and fork remailers can run side by side in the same network.
> 
> What it does differently:
> - A malformed packet or file no longer crashes the remailer.
> - A middle remailer only forwards to remailers in its keyring, without
>   line breaks in the address, so a sender can't use it to mail arbitrary
>   addresses or inject headers.
> - Messages larger than one packet are delivered.
>   Stock clients reuse one packet ID for all chunks, so exits drop chunks
>   2 and up.
> - SMTP to a configured relay verifies the certificate, with an option to
>   require TLS.
>   SMTP connections have timeouts.
> - The replay window is closed: ID log entries last longer than the
>   maximum packet age.
> - A failed keyring download no longer overwrites a good keyring.
> - The client can merge keyrings and stats from several pingers, with a
>   quorum on keys.
> - It can verify signed pinger files (minisign).
> - Key pinning: a remailer key that changes earlier than a normal
>   rotation is held for 24 hours and logged before use.
> - Tor support, including .onion relays.
> - yamn refuses to run as root.
> 
> There is also go-echolot (https://github.com/go-while/go-echolot), 
> a pinger in Go meant to replace the Perl Echolot.
> 
> It signs its output, publishes a new remailer key only after a ping
> through that key comes back, and holds unexpected key changes for 24
> hours. One instance has been pinging the public network since late October.
> 
> Testing isn't finished yet.
> We run the fork on an 18-node private test network with three go-echolot
> pingers.
> Early and lost key changes pass automatically, on the pingers and on the
> client.
> Still open: a natural key rotation of all nodes, a mixed run with stock
> yamn nodes, and the long-term test.
> Until that's done, I wouldn't call the fork production-ready.
> 
> Feedback from an operator would be welcome.

Thank you for taking the time to review the code and for the
constructive, actionable feedback. You are completely right on all
points regarding licensing and code provenance.

1. Provenance and Licensing
You correctly identified the packet construction routines in yp.go.
While the motivation behind YamnOfflineTools-NG was to build an
isolated, terminal-centric toolchain for air-gapped packet construction
and QR transport, the low-level packet encoding logic (slotFinal,
slotData, encodeHeader, encMessage, etc.) derives directly from Steve
Crook's pioneering work in crooks/yamn (v0.2.6).

Crediting crooks/yamn and preserving Steve Crook's MIT notice is both a
legal obligation under the MIT license and a fundamental matter of
cypherpunk engineering ethics. I am pushing the following changes
immediately:
- Adding LICENSES/MIT-yamn.txt containing Steve Crook's original 2014
MIT copyright notice.
- Adding a top-level NOTICE file and updating the file headers in
yp/yp.go to explicitly state that the packet encoding routines are
derived from github.com/crooks/yamn.
- Adding the official AGPL-3.0 LICENSE file to the root of the
repository, properly documenting the dual inclusion.
- Updating the README to credit Steve Crook alongside Ch1ffr3punk.

2. Go Version Discrepancy
Thanks for catching the "go 1.27" in go.mod. That was an oversight
during  local toolchain experimentation. I have normalized go.mod to go
1.25 to match the documentation and ensure smooth compilation on current
stable Go distributions.

3. The go-while/yamn Fork
The review and fixes you completed on https://github.com/go-while/yamn
are impressive and sorely needed. In particular:
- Fixing the multi-packet delivery bug (where reusing packet IDs caused
exit nodes to drop subsequent chunks) resolves a long-standing headache
for large payloads.
- Defending middle remailers against address injection and arbitrary
mail forwarding is essential for keeping operator nodes off spam blocklists.
- Hardening against malformed packet panics, enforcing non-root
execution, and adding native Tor/.onion transport bring the remailer
codebase up to modern operational security standards.
- Key pinning and quorum-based keyring merges solve real metadata and
trust vulnerabilities in the pinger ecosystem.

I want to make sure YamnOfflineTools-NG stays fully compatible with both
stock networks and go-while/yamn. I will inspect your chunking and
packet ID handling to ensure yp generates packets that take full
advantage of your multi-packet delivery fixes.

4. go-echolot and Pinger Modernization
A pure-Go replacement for Perl Echolot
(https://github.com/go-while/go-echolot) is a massive leap forward.

Verifying loop pings before publishing keys and applying a 24-hour hold
on abrupt key rotations are exactly the right defensive heuristics.

5. Collaboration and Testing
I would be very glad to collaborate. I am interested in testing
YamnOfflineTools-NG against your 18-node test network and exchanging
operational feedback on go-while/yamn and go-echolot.

Let me know the best channel to coordinate (via this thread, email, or
git  tickets). Once again, thank you for the sharp peer review and for
revitalizing the YAMN mixnet ecosystem.

Best regards,

Gabx
-- 
https://contact.virebent.art
gemini://contact.virebent.art
Technical Details
Message-ID: <1794263793.65F20BE1E2029EE5@mail2news.tcpreset.net>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!not-for-mail
References: <1794253751.68CA05D02DA044D6@mail2news.tcpreset.net> <11ctcbs$19a6e$1@news-sin.pugleaf.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!not-for-mail
From: Gabx <rasmusx@nymserv-ng.virebent.art>
Newsgroups: alt.privacy.anon-server,alt.privacy,alt.cypherpunks
Subject: Re: [ANN.] Yamn Offline Tools NG (with qrcode 4 airgapped scenarios)
Date: Mon, 9 Nov 2026 23:36:22 +0100
Organization: TCPReset Usenet Service
Message-ID: <1794263793.65F20BE1E2029EE5@mail2news.tcpreset.net>
References: <1794253751.68CA05D02DA044D6@mail2news.tcpreset.net> <11ctcbs$19a6e$1@news-sin.pugleaf.net>
Reply-To: rasmusx@nymserv-ng.virebent.art
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: news.tcpreset.net; logging-data="770454"; mail-complaints-to="abuse@tcpreset.net"; posting-host="a1e60c499dc3ca8325c2887e638d3fd8"; posting-account="3179a42498143c7a25ef9805b8078591";
X-Gateway-Ed25519-Sig: 0ZUo6W5xicEeSmBc65qyZ7GvhSAPlYIKQxRWEX0C5enm8aEfkhZpk4NdYXtBMKdsooHYQEZnzfftGFZX5VR+BQ==
Comments: This message did not originate from the Sender address above. It was posted by the mail-to-news gateway at news.tcpreset.net.
X-Gateway-Info: mail2news@mail2news.tcpreset.net
X-Gateway-Ed25519-Pub: dIq/girbvrXc/pk+LoBp0ItjUE7CbBY45Jwyvj70gU0=
X-Postfilter: Postfilter-NG 2026.09.1-rc1