Boost: decide the pairing and transport details on top of ADR-016
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/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ệ
- android, react-native, typescript
Hướng nghiên cứu
Read ADR-016 in docs/prd/hermit-prd.md, then review docs/research/vault-p2p.md and the linked pairing spikes #59 and #60 for evidence. Work through all 13 decisions, including the pairing flow, transport, key storage, and lifecycle behavior; include at least three test vectors for the 6-digit code. Done when a maintainer records each decision or named open question in an ADR in section 2.16 and the guard passes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Why
ADR-016 sets the outline: Hyperswarm (Holepunch) through QVAC, pairing by a QR code and a compared 6-digit code, and the same transport for changing phones (EP-13) and for Boost. US-BOOST-01 says pairing reuses FR-MOVE-01's flow and the computer never holds the user's keys. The details code needs are still open, and none of it has run: the phone-to-phone spike (SL-19, ASM-12) is open, and there is no paired_devices table. This decision blocks the pairing core and both sides of pairing.
What to do
Decide each point. The research's leaning is noted; the two pairing spikes bring the evidence.
- Who shows the QR, and how it's read. The computer shows it and the phone scans it, so the phone pins the computer's public key (docs/research/vault-p2p.md, option P1). FR-MOVE-01 has the old phone show it. Scanning needs the camera, and Hermit asks for no camera permission today (
apps/mobile/app.json). Options: add it, with a reason and "Not now" (US-ONB-08); let the user type the pairing details instead; or have the phone show the QR and the computer's camera read it. A new permission goes in PRD section 2.15. - What the QR carries. The research suggests
{v, computerPubKey, lanAddrs[], bootstrap?, nonce}. FR-MOVE-01 says "a one-time key and topic". Fix the fields, their encoding and a version. If the desktop reusesencodeQr(packages/core/src/qr.ts), the payload fits in 213 bytes. - The 6-digit code. Both sides derive it from the Noise handshake, for example from
H(handshakeHash || "hermit-pair")(vault-p2p.md). Fix the hash, the label and the reduction to 6 digits, with test vectors. A mismatch, a cancel or a timeout fails closed (US-MOVE-01). - Libraries.
hyperdhtwith@hyperswarm/secret-streamandprotomux-rpc(vault-p2p.md), full Hyperswarm with a topic, orblind-pairing, which has no short code. - The phone's pairing key. A new key pair in the Keystore-backed secure store, added to
SECRET_KEYSinpackages/core/src/erase.ts. Never the audit seed or an approval key. Only its public key leaves the phone. - What each side stores. The phone:
ENT-PairedDevice(id, kind phone or boost, public key, paired at) in a newpaired_devicestable, through a forward-only migration inpackages/core/src/schema.ts. The computer: the phone's public key, and nothing about the user. - Unpair and pair again. From either side. What a turn in flight does. What Delete everything does. A new phone after a move pairs again, since its Keystore keys are new.
- The signed log. Whether pairing and unpairing are recorded as the user's own acts, like the
vault,connectorandwalletevents inpackages/cage/src/audit.ts, with a hash of the device key and never a name or an address. - How the phone reaches the computer. The public DHT through Holepunch's bootstrap nodes, which then see both devices' addresses. A LAN path, with the computer's LAN address in the QR and
DHT.bootstrapper()or a direct connection on the computer, which works with no internet (vault-p2p.md, claim 4d). A blind relay the user runs, for carrier NAT. Which are on by default. - Counting. AGENTS.md rule 3 says every outbound request is counted for HM-SET-02.
countOutboundinapps/mobile/src/adapters/net.tscounts http and https hosts throughhostOf(packages/core/src/hosts.ts). Decide how bootstrap nodes, relays and the computer's address are counted and shown. - Where the transport runs on the phone. A custom plugin in QVAC's worklet (ADR-016's "through QVAC", and vault-p2p.md's pick), built by
scripts/qvac-bundle.mjsfromapps/mobile/qvac.config.json. Or Hermit's own worklet, likeapps/mobile/worklets/wallet. QVAC's plugin API changes between minor versions (docs/research/qvac.md, open question 6). Two worklets can load clashing native addons, and an uncaught error in any worklet ends the app (vault-p2p.md, Risks). - The foreground. Android suspends background work. Say what the phone shows when the app leaves the screen in the middle of a turn.
- One package for both uses. The same code serves changing phones (US-MOVE-01, SL-42) and, later, pairing with another Hermit (US-A2A-02). Name it:
packages/boost(new), or a neutral name.
Done when
- A maintainer decides every point in this issue.
- A pull request records it as an ADR in docs/prd/hermit-prd.md (section 2.16) that refines ADR-016, with its date, and updates FR-MOVE-01 if Boost differs.
How to check
- Every point has a decision or a named open question, and the 6-digit derivation comes with at least three test vectors.
- The guard passes on that pull request.
Depends on
- #59
- #60
Keep in mind
- Keys never leave the phone. The computer learns the phone's pairing public key and nothing else.
- No server of ours in the middle (ADR-010 rejected a hosted relay). A relay, if any, is one the user runs, and it sees only ciphertext.
- Every peer the phone contacts shows on the privacy screen. No telemetry.
- Any screen this implies gets its copy in
packages/copy, in es-419 and en, with no em or en dashes.
- 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