Deutsche Fassung · German version
The emulated A500 (FS-UAE, cycle-exact, 68000 at 7.09 MHz, 2 MiB Fast) chats with WhatsApp: logged in as a linked device, login with stored credentials in ≈ 48 s, text in both directions end-to-end encrypted, its own chat interface with history on disk, notification sound and emojis – with its own stack from TCP upward, no gateway, no outside computing power. The phone lists it as "Firefox (Amiga 500)". 30 live runs on 2026-11-28, the last one 10 minutes straight without a hang. Everything in docs/ is measured, nothing is estimated.
Host renderer (make gui-png), pixel-identical to the A500 screen (640 × 256, 16 colours, shown here with doubled line height):
| Chat with history | Help (F1) |
|---|---|
![]() |
![]() |
| Chat with unread pills | Emojis (16 × 8 pixels, 16 colours) |
|---|---|
![]() |
![]() |
The same program in FS-UAE under Kickstart 1.3 (offline demo make run-gui):
Live runs 33, 35 and 36 (2026-12-01): a stock A1200 runs the client from Chip RAM and is as slow as the A500; 2 MiB of Fast RAM make it 4 to 5 times faster (docs/BENCHMARKS.md step 27).
| What | Status | Evidence |
|---|---|---|
| Cryptography on the 68000 (phase 2) | X25519 ladder 7.71 s, key pair (comb) 3.1 s, XEdDSA verification 9.4 s, signature 7.8 s, RSA-2048 verification 7.7 s, SHA-256 9.9 KB/s, AES-256-GCM 5.6 KB/s CPU / 11 KB/s with Blitter+Copper – all asm, bit-identical to the C references, RFC/Go/libsignal vectors | BENCHMARKS.md 1–13, 20, CUSTOM-CHIPS.md, X25519-PLAN.md |
| Network (phase 3) | DNS, TCP (TheWire13 bsdsocket.library under Kickstart 1.3, A2065 on slirp), TLS 1.3 with pin set, certificate cache and RSA-PSS, WebSocket |
NETWORK.md, PROTOCOL.md 7, BENCHMARKS.md 14–18 |
| WhatsApp connection (phase 4) | Noise XX bit-exact to whatsmeow, binary XML/protobuf, QR pairing from the screen, identity, persistent credentials, login, prekey upload, <active/>, acknowledgements, zlib frames |
PROTOCOL.md 6, 11; UI.md; BENCHMARKS.md 19–23 |
| Messages (phase 5) | Signal sessions (X3DH both roles, Double Ratchet) bit-exact to libsignal, send and decrypt <message>/<enc>, receipts like whatsmeow, session record with SHA-256; receiving in the same direction 0.4 s, after a direction change 11–13 s (one X25519 ladder, the send half of the ratchet step is caught up during idle time); the phone's own messages (DeviceSentMessage) land in the target chat; media as placeholders (<BILD>, <SPRACHNACHRICHT> …); prekey replenishment during idle time; groups and media not yet |
SIGNAL.md; make signal-test, make pair-sim (scenario E) |
| Program start → logged in | ≈ 48 s (122 s on the first day): nothing is computed before the connect any more, the connection itself takes 43 s (TLS 20 s, Noise 20 s) – three X25519 ladders with a fresh server ephemeral, RSA-PSS, HKDF/GCM; the history from disk is already there beforehand (60–100 ms) | BENCHMARKS.md 21–27 |
| Server limits | TLS flight 60 s, WebSocket idle time 10 s, extendable indefinitely by a pong heartbeat; no TLS tickets from the server | PROTOCOL.md 8 |
| Memory | Stack + client need 2 MiB Fast, of which ≈ 20 KB stay free in operation (binary 456 KB); the large buffers (receive, sessions: ≈ 140 KB) live in Chip RAM; 1 MiB remains the benchmark machine | NETWORK.md 6, SIGNAL.md 2.5 |
| Interface, history, sound (phase 6) | Chat GUI live since run 15 (ui/gui.c: 640 × 256, 16 colours, speech bubbles, unread pills, mouse and keyboard, fading cursor, logo), own history on disk (proto/store.c: chat records with number/LID/name + append log, loading < 0.1 s, "Alle Chats löschen, Namen bleiben" ("delete all chats, names stay")), notification sound via audio.device (8SVX, Kickstart 1.3), emojis as 16 × 8 glyphs in 16 colours (CC0 set, ≈ 60 characters, unknown ones as placeholders). The phone's history bootstrap was built, measured offline (58 s for 144 KB) and removed again on the user's decision |
UI.md, STORE.md, SIGNAL.md 7; make gui-test, make run-gui, make store-test |
| Offline tests | 25 host test programs (ASan/UBSan), pairing/chat simulator (361 checks, libsignal decrypts our message, 170 KB offline batch with 40 KB and 200 KB frames reproduced), all vectors under vamos and FS-UAE; live attempts follow the pacing rule in PROTOCOL.md 11 | make host-test, make pair-sim, make vamos |
Achieved (SIGNAL.md 6, attempt 4, 2026-11-27 22:2x): the first text from the emulated A500 arrived on the phone – login 60.4 s after program start, X3DH 64.2 s, <message> at 128.8 s, server ack at 129.3 s, text confirmed in the phone's self-chat. Attempt 8 (2026-11-28): 22 minutes online, offline batch including the 166 KB history frame processed, one offline message decrypted, four lines typed in the A500 GUI arrived on the phone (blue ticks). Attempt 14 (2026-11-28, 15:0x): twelve messages from the phone and a contact decrypted and displayed on the A500 (first message 26.6 s ratchet step, further ones 0.4 s, X3DH as responder 70 s) – text in both directions, end-to-end. Runs 15–30 (2026-11-28, 15:1x–20:4x): chat in the built-in interface – messages from the phone appear as a speech bubble 0.4 s after receipt (with sound), typed lines go out with a server ack in 0.5–4 s, the history comes from disk in 0.1 s, emojis are drawn, the own history survives restarts. Run 30: 10 minutes straight, 8 sent, 12 received, 12 sounds, 20 KB Fast free; the freezes of runs 28/29 (idle loop without work when the prekey record is full) are fixed. Not yet: groups (sender keys), media, reconnection after a drop, real hardware (FS-UAE is cycle-exact, a confirmation on the A500 is still pending).
Release (2026-11-29): make release builds a bootable installer disk (build/release/tachyon-install.adf): the client, TheWire13, the Kickstart 1.3 plipbox driver and an installer (SetupTachyon) that puts everything into one directory DH0:Tachyon, asks for the adapter (plipbox / A2065 / any SANA-II driver / FS-UAE), DHCP, keymap and clock and writes only the batch file StartTachyon - the user's Startup-Sequence and system stay untouched (execute DH0:Tachyon/StartTachyon starts it; on an empty disk it copies the Commodore commands from the user's own Workbench 1.3 disk, nothing of Commodore's ships). The client no longer needs the host: clock via mini_ntp (SetClock with a battery clock), its own entropy from mouse, keys and packet timing with a seed file, QR pairing without credentials, new chats by phone number (F3). Installed and booted in FS-UAE (make release-test); real hardware and the plipbox are pending. Details (German): docs/RELEASE.md.
A fully native WhatsApp multi-device client that sends and receives real messages directly. All protocols and cryptographic operations run locally.
- Amiga 500, Motorola 68000, 7.09 MHz (PAL), OCS.
- 512 KiB Chip RAM + 1 MiB real Fast RAM (1.5 MiB in total) as the benchmark machine for the cryptography; the network client with TCP/IP stack requires 2 MiB Fast RAM (docs/NETWORK.md section 6).
- No turbo card, FPU, MMU, PiStorm, gateway, bridge or external cryptography.
- Kickstart/Workbench 1.3 as the targeted minimum platform; verify compatibility.
- Network adapter and hard disk/CF permitted; the network adapter must not take over any WhatsApp or cryptography tasks.
- Trapdoor slow RAM is no substitute for real Fast RAM.
Intuition / graphics.library (native GUI)
|
WhatsApp Core: Pairing, Kontakte, Chats, Gruppen
|
Signal-kompatible Ende-zu-Ende-Verschlüsselung
|
Binäre WhatsApp-Nodes / Protobuf
|
Noise / WebSocket / TLS
|
TCP/IP / Netzwerkadapter
|
WhatsApp-Server
Verify the current protocol structure, supported cipher suites, endpoints and pairing procedures against a working reference implementation. No browser, no JavaScript runtime.
| Project | Use |
|---|---|
| Whatsmeow | Go reference for multi-device, Noise, pairing, messages and synchronisation |
| Baileys | Second protocol reference, no Node.js port |
| BearSSL | Compact TLS, i15 arithmetic, AES and hashes |
| Monocypher | Individual suitable cryptographic primitives |
| Nanopb | Low-memory protobuf parsing |
| lwIP | Optional TCP/IP stack |
| Roadshow | Amiga TCP/IP; verify OS 1.3 compatibility |
Take over only the components that are needed. Document licences, versions and dependencies. No full port of modern runtime environments.
The 68000 has eight 32-bit data registers, eight address registers, a 16-bit data bus, native 16×16→32-bit multiplication, but no native 32×32-bit multiplication and no instruction cache.
- Compare 15- and 16-bit limbs as well as alternative radix representations.
- Use MULU.W, ADDX, register optimisation, loop unrolling and specialised modular reduction.
- Investigate Comba multiplication; Karatsuba only with a measurable advantage.
- Avoid divisions, unnecessary memory accesses, copies and function calls.
- Account for big-endian; 68000-compatible instructions only.
- Avoid secret-dependent run times and memory accesses; also account for operand-dependent MULU run times.
- No changes to mathematical definitions or security parameters.
Three 16-bit inputs A/B/C, output D, DMA, A/B shifter, masking, ascending/descending processing and all 256 Boolean functions. No native adder with carry propagation and no multiplication.
| Operation | Minterm |
|---|---|
| A AND B | 0xC0 |
| A OR B | 0xFC |
| A XOR B | 0x3C |
| A XOR B XOR C | 0x96 |
| NOT A | 0x0F |
| SHA-256 Choose | 0xCA |
| SHA-256 Majority | 0xE8 |
Ch = (A & B) ^ (~A & C);
Maj = (A & B) ^ (A & C) ^ (B & C);
SUM = A ^ B ^ C;
CARRY = (A & B) | (A & C) | (B & C);Research approaches:
- AES: bitslicing/fixslicing, Boolean S-box, XOR, MixColumns, several independent blocks.
- SHA-256: Choose/Majority, XOR, shifts, independent hash states; mind the serial rounds and additions.
- GHASH: carryless multiplication and XOR polynomial reduction.
- ChaCha20 (if needed): hybrid ARX operations.
- X25519: test experimental bitsliced arithmetic against native limb arithmetic; low prospects of success for single handshakes.
MOVE, WAIT and SKIP. Investigate prepared Blitter register sequences and chained operations. Mind COPCON, register restrictions, DMA synchronisation and coexistence with the operating system. Not a universal processor.
68000: X25519, Additionen, Netzwerk Agnus: Copper → Blitter
| |
1 MiB Fast-RAM 512 KiB Chip-RAM
Let the CPU work in real Fast RAM wherever possible, with the Blitter in parallel in Chip RAM. The Blitter cannot address Fast RAM. Measure all copy, setup, wait and synchronisation costs. Optionally reduce screen DMA during handshakes. Blitter acceleration is a hypothesis, not a proven advantage.
- Denise: bitplanes and display, no general arithmetic.
- Paula: audio DMA, serial interface, interrupts, notifications and later audio output.
- CIA: timers, benchmark timing and possible entropy collection. Timers alone are not a secure source of randomness.
Determine the current needs from the protocol:
- X25519 and Curve25519 field arithmetic, Signal-compatible signatures.
- AES-128/256, AES-GCM, possibly AES-CBC, GHASH.
- SHA-256, possibly SHA-512, HMAC, HKDF.
- Noise, Signal Double Ratchet, group key management.
- TLS with full certificate and hostname validation, suitable trust anchors and a reliable clock.
- Cryptographically secure DRBG with demonstrably sufficient entropy.
Historical starting point for the Noise handshake: Noise_XX_25519_AESGCM_SHA256; verify its current validity. No disabled certificate validation, nonce reuse or insecure random numbers. Handle persistent keys and ratchet states in a crash-safe way. Use standardised and interoperable test vectors.
| Chip RAM | KiB |
|---|---|
| OS/system structures | 192 |
| Screen/GUI | 64 |
| Blitter work area | 96 |
| DMA/I/O buffers | 32 |
| Reserve | 128 |
| Total | 512 |
| Fast RAM | KiB |
|---|---|
| Program code | 192 |
| Network/TLS | 160 |
| Cryptography/Signal | 160 |
| WhatsApp Core | 128 |
| Protocol buffers | 96 |
| Contacts/messages | 96 |
| Stack/heap | 64 |
| Reserve | 128 |
| Total | 1024 |
Budgets are unmeasured targets. Measure actual OS and stack usage, fragmentation and peak demand. Use streaming parsing, streaming decompression, static pools, reusable buffers, bounded message and media sizes and on-demand reloading from the storage medium. Never load large synchronisation packets completely and uncontrolled.
Native Intuition/graphics.library, preferably 640×256 PAL in four colours. Contact list, chat window, text input, sending, status, unread messages, scrollable history. Network and cryptography must not block the GUI permanently.
- Client interface (
ui/gui.c, docs/UI.md), live since run 15: 640×256 in 16 colours, chat list with unread pills (name, else number), rounded speech bubbles with a tip, timestamps and read ticks, two-line input with umlauts and a fading cursor (palette animation, no bitplane writes), mouse and cursor keys (RAWKEY, because Kickstart 1.3 VANILLAKEY swallows the arrow keys), help with "Delete all chats (names stay)" and a language switch (D / E in the help, English by default, stored intachyon.lang; all screen texts and media placeholders live inui/lang.h); message store 48 KiB, own text renderer directly into the bitplanes, only changed areas are drawn; host renderer and test (make gui-test,make gui-png), Amiga demo (make run-gui). In the A500 probe (make run-chat): connection state, self-chat and partner, sent and received texts with server ack/receipts, clock from the server time, history from disk, sound on receipt, 40 ms receive slices while the input has focus.
Version 1.0: ✅ direct connection, ✅ QR pairing as a linked device, ✅ persistent identity, ⬜ reconnection, ✅ send/receive text, ✅ E2EE, ✅ contacts (names from pushname/address book), ⬜ groups, ✅ local history, ✅ read receipts.
Later: ✅ emoji bitmaps (16 × 8, 16 colours), ✅ notification sound via Paula (audio.device), ⬜ images in 32 colours/HAM6 (possibly own screen), IFF/ILBM, voice messages. No priority for telephony, video or full historical media synchronisation.
C and Motorola 68000 assembler; VBCC or m68k-amigaos-gcc, VASM, native Amiga Hunk binaries. Cross-compilation on macOS/Linux/Windows. WinUAE or comparable cycle-exact emulation; finally real hardware. Automated tests and Git. Check compiler options and disassembly for 68000 compatibility.
Backends CPU000 (optimised CPU), BLITTER (experimental) and HYBRID (CPU/Copper/Blitter). Always choose the fastest demonstrably correct and secure backend. Hardware acceleration is not an end in itself.
| Metric | Unit |
|---|---|
| X25519 | ms/operation |
| AES-128/256, SHA-256/512, GHASH | bytes/s |
| HMAC | operations/s |
| HKDF | ms/operation |
| TLS and Noise handshake | total duration |
Additionally measure clock cycles, Chip/Fast RAM peaks, stack, Blitter utilisation, copy costs, screen DMA, CPU/Blitter parallelism, cold start, reconnection. Benchmark small messages and large blocks separately. CPU-only as the baseline. Validate cryptographic results before any performance comparison. Repeat tests on real hardware.
- Research: current protocol, multi-device, cryptography, time limits, network stack, secure entropy, licences. ✅ (docs/PROTOCOL.md, RNG.md)
- Cryptography: portable reference, X25519 benchmark, 68000 optimisation, AES/SHA/GHASH, Blitter/Copper experiments, test vectors. ✅ (BENCHMARKS.md, CUSTOM-CHIPS.md)
- Network: TCP/IP, DNS, TLS, certificate verification, WebSocket, memory and run-time measurement. ✅ (NETWORK.md)
- WhatsApp connection: binary protocol, Noise, QR pairing, identity, persistent session, reconnection. ✅ Pairing and login work (PROTOCOL.md 11); reconnection after an error is still up to the client.
- E2EE: Signal sessions, key management, Double Ratchet, first real sent and received text message. ✅ sent (attempt 4/8), received and displayed (attempt 14, SIGNAL.md 6)
- GUI: Intuition, contacts, chats, groups, history, notifications. ✅ except groups (UI.md, STORE.md; runs 15–30)
- Optimisation: memory, handshake run time, CPU load, backend selection, continuous operation, crash safety and key storage.
- No officially supported general WhatsApp client protocol; changes and account restrictions possible.
The 68000 might exceed server-side handshake time limits.Measured (docs/PROTOCOL.md section 8): TLS 60 s, WebSocket idle time 10 s, extendable indefinitely by a pong heartbeat (120 s verified). Heartbeat built in (CRYPTO_YIELD()in X25519/Ed25519/RSA,crypto/ref/heartbeat.c) and confirmed against the server with our WebSocket/Noise stack: 30 s compute pause, 7 pongs, handshake accepted (section 9).- TLS plan changed (2026-11-27): the server selects RSA key transport but completes it for no client (
decrypt_error, also OpenSSL/LibreSSL/Go). The A500 goes via TLS 1.3 with X25519 and an RSA-PSS certificate – 1 X25519 online plus RSA verifications, no P-256 (docs/PROTOCOL.md section 7). The TLS 1.3 client (crypto/ref/tls13.c) is written, checked against Go and accepted by the server (make wa-probe: own stack from TCP upward). - Network works (2026-11-27):
net/bsdsock_io.cover TheWire13'sbsdsocket.library(Kickstart 1.3), FS-UAE with an emulated A2065 on slirp. The emulated A500 builds the complete connection itself: DNS, TCP, TLS 1.3 (31.8 s), WebSocket, Noise XX with heartbeat (51.8 s, 12 pongs) –RESULT: handshake ACCEPTED by web.whatsapp.com(docs/NETWORK.md, BENCHMARKS.md step 17). Required for this: its ownutility.libraryfor 1.3 and the SANA-II wrappera2065fix.device. With the three X25519 key pairs before the connect and the fingerprint cache for WhatsApp's Noise intermediate certificate (PROTOCOL.md 6), the connection window shrinks to 78 s, Noise to 40.1 s (step 18). Memory: with 1 MiB Fast, 872 bytes of Fast remain free after stack and probe, with 2 MiB 190 KiB Fast + 447 KiB Chip – the network client therefore requires 2 MiB Fast (NETWORK.md section 6). DHCP over slirp tested (NET_DHCP=1): two round trips,IP: 10.0.2.15 (DHCP), handshake as with static. - Pairing works (2026-11-27): the emulated A500 registers as a linked device (PROTOCOL.md section 11,
proto/identity.c,clientpayload.c,pairing.c,creds.c): identity with an XEdDSA-signed prekey, registration payload byte-identical to whatsmeow, QR code V11 on the hires screen (61 × 61 modules of 6 × 3 pixels), scanned by the phone from the FS-UAE window;pair-successverified (HMAC + account signature 11.3 s), device signature 7.8 s,pair-device-signaccepted, 515 restart –RESULT: PAIRED and LOGGED IN, credentials intachyon.creds(BENCHMARKS.md step 19). Host and A500 are paired on the first attempt, the phone lists the A500 as "Firefox (Amiga 500)"; live attempts follow the pacing rule in PROTOCOL.md 11. - Login connection 76 s → 43 s, start → logged in 122 s → 47 s (2026-11-27 evening): TLS certificate cache as a file, cache for both Noise certificates, faster ladder (7.71 s), Noise
esin advance with the stored server static, key pairs,esand prekeys during idle time after login for the next start (BENCHMARKS.md 20–23, PROTOCOL.md 6). The server sends no TLS tickets; what remains are three X25519 ladders with a fresh server ephemeral – less is only possible with a protocol change. Blitter setup and memory transfers might cancel any speed advantage.Measured (CUSTOM-CHIPS.md): bit-sliced AES on Blitter + Copper delivers as much as the CPU, both together twice that (AES-256-GCM 11 KB/s instead of 5.6) – for the media path; for curve arithmetic without an adder about 100× too slow, discarded. For connection setup AES is irrelevant.1.5 MiB RAM might not suffice for synchronisation or TLS.Measured (NETWORK.md 6): TLS/Noise/pairing run with 1 MiB Fast, but with 872 bytes of reserve; the client requires 2 MiB Fast. Large server messages (170 KB offline batch) are discarded instead of loaded; streaming processing is up to the Signal layer.Network stack and Kickstart 1.3 are not yet checked for compatibility.TheWire13 runs under 1.3 with its ownutility.libraryand the SANA-II wrappera2065fix.device(NETWORK.md); AmiTCP/Roadshow not checked.- Secure entropy (docs/RNG.md: pool + HMAC_DRBG, seed file), clock (host time, later NTP) and key storage (files on
SYS:, laterENVARC:; the private ephemeral keys for the next start are stored next to the identity) are solved well enough for the probe, not for the client; there is no memory isolation on the 68000. - Successful cryptography benchmarks do not guarantee a working WhatsApp client – but login, Signal sessions and GUI run; open are groups, media, reconnection and the Fast RAM reserve (≈ 20 KB).
- Real hardware: all numbers come from FS-UAE (cycle-exact); confirmation on an A500 is pending, especially for Blitter/Copper timing.
Do not start with the GUI. First verify the current protocol and actual requirements. Then develop native 68000 cryptography and in particular investigate X25519 with 15/16-bit limbs, specialised reduction and register optimisation. Compare AES, GHASH and SHA CPU-only and with Blitter/Copper. Optimise the split between Chip and Fast RAM. Measure realistic TLS/Noise handshake times.
Hypothese → Implementierung → Korrektheitstest → Benchmark
→ Vergleich → Optimieren oder verwerfen
Document successful and failed approaches, measurement configurations and test results. No unsubstantiated performance promises. No additional CPU and no outsourced computing power. Never weaken security standards. Treat the hardware as a whole system, but discard speculative approaches without a measurable advantage.
First milestone: correct and sufficiently fast local cryptographic connection on the original A500 with 1 MiB Fast RAM added. ✅ Achieved on 2026-11-27 (emulated): handshake accepted, pairing, login in 43 s; for the client it is 2 MiB Fast.
Final milestone: send and receive real WhatsApp text messages directly, without a gateway or external computing support. ✅ Achieved on 2026-11-28 (emulated): text in both directions in the own interface, run 30 ten minutes stable; confirmation on real hardware remains open.






