Boost: spike QR and 6-digit pairing between two processes
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
- 领域
- networking, security
调研方向
Start with ADR-016 and docs/research/vault-p2p.md for the chosen pairing approach, then inspect packages/core/src/qr.ts for encodeQr. Build the two standalone scripts and run the one-machine, LAN, offline LAN, and cross-network cases in the issue. Record connection results, timing, contacted hosts, and payload size in docs/research/boost-pairing-spike.md; include three code derivation test vectors and the QR version verdict.
由索引模型根据 Issue 内容生成。
描述
Why
ADR-016 picks Holepunch, a QR code and a compared 6-digit code. docs/research/vault-p2p.md sketches how: hyperdht with @hyperswarm/secret-stream, the computer's key pinned from the QR, and a short code from the handshake hash. None of it has run in this repository. The research also found that "works on home Wi-Fi without internet" is false as stated (claim 4d), unless the computer runs its own bootstrap node or the phone connects to it directly. This spike answers that with two ordinary processes, before anyone builds the real thing.
What to do
An experiment, not the feature.
- Write two small Node or Bare scripts. The "computer" makes a key pair, prints a QR payload (drawn with
encodeQrfrompackages/core/src/qr.tsif it fits) and listens. The "phone" reads the payload, connects to the pinned key and finishes the Noise handshake. - Both derive a 6-digit code from the handshake hash and print it. Both stop unless the user confirms that the codes match.
- Run it: two processes on one machine; two machines on the same Wi-Fi; the same Wi-Fi with the internet cut, once with the computer running
DHT.bootstrapper()and its LAN address in the QR, and once with a direct connection to that address; two machines on different networks. - Record for each run: whether it connected, how long it took, which hosts each side contacted (bootstrap nodes, relays), and the payload's size in bytes.
- Write the finding in
docs/research/boost-pairing-spike.md(new): the verdict first, the payload, the code derivation with three test vectors, a table of runs, and what failed and why.
Done when
- The finding is merged and answers: does pairing work on one machine, on a LAN, on a LAN with no internet, and across networks; which hosts each case contacts; and does the payload fit a QR of version 10 or less.
How to check
- A reviewer runs the scripts from the finding's steps on two machines and sees the same 6-digit code on both.
- The guard passes on the doc.
Depends on
Nothing.
Keep in mind
- Keep the code out of the pnpm workspace: a scratch folder, or a standalone project like
packages/eval/x402-facilitator. Pin every dependency exactly and note its license. - Only example addresses in the doc, like 192.168.1.20. No real ones.
- No Autopass or PearPass code (vault-p2p.md: paused, and not on npm).
- 主要语言
- TypeScript
- 星标
- 11
- 派生
- 0
- 平均合并
- 10 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DojoCodingLabs/hermit 的其他 Issue
-
docs good first issue
难度 2/5 1-3 小时 新手友好度 87/100
DojoCodingLabs/hermit#73 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 70/100
DojoCodingLabs/hermit#45 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 62/100
DojoCodingLabs/hermit#44 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 72/100
DojoCodingLabs/hermit#43 ·
维护者通常 1 天内回复
-
agent-friendly docs good first issue
难度 2/5 1-3 小时 新手友好度 88/100
DojoCodingLabs/hermit#39 ·
维护者通常 1 天内回复
查看 DojoCodingLabs/hermit 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
superlinked/sie#1033 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
remix-run/react-router#15838 ·
维护者通常 1 天内回复
-
area/ci bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
melgarafael/DeskcommCRM#5290 ·
维护者通常 1 天内回复