Boost: spike QR and 6-digit pairing between two processes

オープン
#59 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript

調査の方向性

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 の本文から書いたものです。

説明

help wanted privacy

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.

  1. Write two small Node or Bare scripts. The "computer" makes a key pair, prints a QR payload (drawn with encodeQr from packages/core/src/qr.ts if it fits) and listens. The "phone" reads the payload, connects to the pinned key and finishes the Noise handshake.
  2. Both derive a 6-digit code from the handshake hash and print it. Both stop unless the user confirms that the codes match.
  3. 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.
  4. 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.
  5. 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分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DojoCodingLabs/hermit のほかの issue

DojoCodingLabs/hermit の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。