OverviewFilesCommitsIssuesDocsReleasesPeers

favela-web / lib / pairing.js

15 lines · javascript ref:
// MOVED: the implementation now lives in atproto-room/lib/pairing.js.
//
// WHY. Blind-pairing is not a favela-web concern — it is the transport every ceremony in this stack
// uses, and hyper-proto-peer needs it too so that ANY node holding a DID (a desktop, a phone) can mint
// an invite for the next device. That is keet's model: `addDevice` is available to any active member,
// and the adder gains nothing by performing it. While this module lived here, only trees that depend on
// favela-web could mint — which meant a phone could join but never invite.
//
// The module itself was always generic: hyperswarm, blind-pairing, hypercore-crypto, b4a. Nothing
// favela-shaped ever crossed it.
//
// This re-export keeps favela-web's existing importers (bin/favela-web.js, bin/favela-pair.js,
// lib/cli.js, test/pairing.test.mjs) working unchanged. New code should import from atproto-room.
export { createPairInvite, joinPairInvite } from 'atproto-room/lib/pairing.js'