Boost: spike QR and 6-digit pairing between two processes
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
- Lĩnh vực
- networking, security
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- TypeScript
- Star
- 11
- Fork
- 0
- Merge trung bình
- 10 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DojoCodingLabs/hermit
-
docs good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
DojoCodingLabs/hermit#73 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
device-lab
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DojoCodingLabs/hermit#45 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
device-lab
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
DojoCodingLabs/hermit#44 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
device-lab
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DojoCodingLabs/hermit#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-friendly docs good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
DojoCodingLabs/hermit#39 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DojoCodingLabs/hermit
Issue tương tự
-
bug zoo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
software-mansion/runntime#151 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
sidebandstudio/clawtrate#728 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement github_actions help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
endora-commerce/endora-commerce#1978 ·
Maintainer thường phản hồi trong vòng 1 ngày