Skip to content

feat: run one wallet on two devices #2152

Backlog

Description

@jvsena42

Outcome
The phone and the watch can run the same Bitkit wallet at once: two Spark SDK instances on one seed send and receive safely, and Bitkit's own data (payment notes, tags) reaches both through VSS.

Why
The Wear OS app (#2077, #2105) puts the same seed on the watch, and nothing has checked how two instances behave together. The V1 spike "Two devices running the same Spark wallet at once" asks the same question.

The Breez real-time sync server stays off (realTimeSyncServerUrl = null, both apps), for privacy. Every write to it is signed with a seed-derived key, so Breez sees a permanent identity for each wallet and when it writes, though the records themselves are encrypted on the device. It also doesn't carry what the watch needs. In SDK 0.28.3 it syncs only four kinds of SDK record (realtime_sync/storage.rs):

  • payment metadata
  • contacts
  • Lightning address
  • cross-chain swap records

Balance, leaves and payment history come from the Spark operators, which every instance on the same seed reads directly.

Blocks
Publishing the Wear OS app. The Wear PRs stay unpublished on Play until this ships.

Done when

  • Concurrent sends are tested on regtest: two instances on one seed send at the same moment, and also spend the same leaves, and the result is written down here (both pay, one fails cleanly, or a stuck or double-spent state). A failure that loses or locks funds gets its own fix before the Wear app ships.
  • Shared state without the sync server: a payment received or sent on one device shows on the other with its amount and status, and how long that takes is recorded.
  • VSS with two writers: Bitkit's VSS backup supports two devices writing to one wallet at once. Each item both devices write is tested for lost updates (a write from one device overwriting the other's), and the conflict handling is fixed where it loses data.
  • Payment notes and tags made on one device show on the other through VSS.

Open questions

  • Do the Spark operators or the SDK serialise leaf use across instances, or can two instances pick the same leaves?
  • Do existing single-device wallets need a migration once a second device joins?

Activity

  1. ovitrif commented on Nov 27, 2026

    @ovitrif
    Collaborator

    Reworded around the concurrent send test and the VSS route, from the discussion in Slack (https://synonymworkspace.slack.com/archives/C07BJ7DNPCG/p1795778915817369). The Breez real-time sync server stays off: it would give Breez a permanent identity for each wallet, and it syncs only SDK metadata, not the balance or payments, which both devices already read from the Spark operators.

  2. changed the title [-]feat: enable the Spark real-time sync server[/-] [+]feat: run one wallet on two devices[/+] on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions