Repository navigation
Conversation
Pair with symmetric SPAKE2 on the pairing code and use an HKDF of its key as the Noise pre-shared key, with the transcript as the Noise prologue. Discovery advertises only the id, name and protocol version. Pace failed pairing attempts per address with an overall budget and draw codes evenly from the alphabet. Protocol version 6: both computers need this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
betoxf
marked this pull request as ready for review
November 18, 2026 18:19
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
MagicInp+ protocol version), then a symmetric SPAKE2 exchange (RustCryptospake2, Ed25519 group, identitymagicinput/pake/v6) on the normalized pairing code. HKDF-SHA256 of the SPAKE2 key, salted with the transcript, is the NoiseNNpsk0pre-shared key, and the transcript is also the Noise prologue. Noise still carries all traffic.Config::psk()is removed.id,n(name) andv(protocol version). Computers dial any MagicInput computer on the same version (up to 16 remembered), and pairing decides.Config::group()is removed.random_stringuses rejection sampling. The format is unchanged (8 characters,XXXX-XXXX).magicinput statusshows it to the local user.nearby[].same_codeis replaced bynearby[].compatible(same protocol version), because whether codes match is only known once connected. Next-step text anddocs/AI_SETUP.mdare updated to match.magicinput status.Compatibility / deploy notes
Both computers need this version; it does not connect to 0.6.2 or older. There are no config or migration changes. New dependencies:
spake20.4 andhkdf0.13;Cargo.lockis updated.Validation
cargo test --locked(macOS, stable 1.99.1): 26 passed. The new tests cover:id,n,vcargo clippy --all-targets --locked: no new warnings (the same 4 pre-existing ones inplatform/macos.rs,core.rs,lib.rs).cargo build --lockedandcargo build --release --lockedon macOS: pass.cargo check --target x86_64-pc-windows-gnu --locked --all-targets: passes with no warnings.macos-latestandwindows-latest(msvc) both passcargo test --lockedandcargo build --release --locked.Not tested
cargo check --target x86_64-pc-windows-msvc: it fails inring's C build on this Mac (no MSVC toolchain), so that target is covered only by CI.🤖 Generated with Claude Code