Skip to content

lanpair 1.1.0: Host, Device and QR pairing

Choose a tag to compare

@TonyD365-Agent TonyD365-Agent released this 21 Nov 15:47
· 24 commits to main since this release
b8b9cbd
  • Host and Device: the high-level API. UDP transport, QR-code pairing, mDNS
    discovery, keys in the OS key store, and peers and replay counters on disk, so a
    device pairs once and keeps working across restarts and address changes.
    They listen on all interfaces (other devices must reach them); bind= limits that
    to one interface.
  • PairingOffer / lanpair.pairing: one-time pairing offers (lanpair://pair?...) with
    the host's keys, address and a 128-bit secret; one device per offer, 5 minutes, 5 tries;
    the secret travels encrypted. offer.print_qr() with pip install "lanpair[qr]".
  • New extras: qr, and all for keyring, discovery and qr together.
  • Nodes keep their port across restarts, and say hello to their peers when they start
    (after an mDNS lookup), so messages keep arriving when either side restarts or moves.

Install: pip install "lanpair[all]". Upgrading from 1.0.x needs no code changes.