Skip to content

epic: Bitkit for Wear OS #2077

Todo
0 of 2 issues completed
Todo

Description

@jvsena42

Tracking issue: Bitkit for Wear OS

Twin: synonymdev/bitkit-ios#1465 (watchOS)

Outcome
A Bitkit app for Galaxy Watch and Pixel Watch that sends and receives Lightning through Spark, works with or without the phone, and feels like Google Pay: wake, tap, done. It follows the Bitkit brand (black background, orange accent, Bitkit type) with spring and shape-morph motion from Material 3 Expressive for Wear.

Releases

Depends on


Seed provisioning (security design)

The watch holds the full mnemonic and passphrase, because Breez takes Seed.Mnemonic(mnemonic, passphrase) and the product goal is the same wallet. A full seed on the watch exposes every rail (savings, Spark, Pubky identity, VSS backups) and can't be revoked except by sweeping to a new seed. The design below keeps the seed off every transport and every backup.

Rejected

  • DataClient / Asset: persisted and replicated to every node in the Wear network, and Google states Data Layer traffic may route through Google servers.
  • Plaintext over MessageClient / ChannelClient. They are allowed only as carriers for app-encrypted bytes.
  • Any Bitkit server relay.
  • Backups of watch app data. Wear OS 4+ backs up app data to Drive by default, so the watch module needs allowBackup=false and empty extraction rules, like the phone.
  • Showing the mnemonic on the watch.

Phone → watch ceremony

  1. Preconditions: the phone is unlocked and Bitkit PIN/biometric passes. The watch has a secure lock screen (KeyguardManager.isDeviceSecure); refuse otherwise. Target one nodeId that reports isNearby.
  2. The phone finds the watch with NodeClient / CapabilityClient and starts setup over MessageClient. No QR or camera is needed. The Data Layer only delivers to the same package and signing key, but traffic can route through Google, so the channel is treated as untrusted and the SAS is what authenticates it.
  3. The watch generates an ephemeral X25519 key and a long-term device key in Keystore (with key attestation). The phone sends a hash commitment to its ephemeral key first. The watch replies with its keys, then the phone reveals its key. The commitment stops a relay from choosing its key after seeing the other side's.
  4. Both sides derive k_enc, k_confirm and a 6-digit SAS with HKDF over the shared secret and the transcript (keys, session id, package id, protocol version). Both screens show the SAS, and the user taps "Match" on the phone. A mismatch aborts the setup, and three aborts lock setup for 10 minutes.
  5. The phone re-authenticates the user and shows a "your watch will hold your full wallet" warning. Payload: version, network, wallet index, mnemonic, passphrase, watch id, watch limits. ChaCha20-Poly1305 with the transcript hash as AAD. One message, 90 s timeout, single use.
  6. The watch validates the BIP39 checksum, stores the seed under the wrapped key, derives the Spark identity pubkey and returns MAC(k_confirm, identityPubkey‖watchId). The phone checks it against its own identity pubkey. This proves the right seed and passphrase landed.
  7. Both zero the ephemeral keys and plaintext. The phone records watch id, name, device pubkey and pairing date.

Manual restore on the watch
Standalone path, with no phone needed. The user types 12/24 words, with BIP39 autocomplete after 2–3 letters (rotary scrolls the suggestions) and the checksum checked live, then the optional passphrase. Wear quality rule WO-P6 bans username/password entry on the watch; a recovery phrase is not an account credential, but confirm with a Play pre-review.

At rest on the watch
AES-GCM key in Keystore with setUnlockedDeviceRequired(true) and setUserAuthenticationRequired(true). Auth-bound keys are invalidated when the lock screen is removed, which wipes the wallet. Try StrongBox and fall back to TEE, and log which one is used. The Spark SDK stays disconnected while the watch is locked. Wrist detection (Wear OS 5+) locks the app when the watch comes off.

Revocation and drift

  • "Remove watch" on the phone sends a signed wipe command; the watch also checks a signed status whenever the phone is reachable. This is best effort.
  • For a lost watch the phone offers "sweep to a new wallet" plus platform remote erase.
  • When the phone's passphrase or wallet changes, the phone publishes a non-secret identity fingerprint. On mismatch the watch locks, wipes and asks to pair again. A new secret is never pushed automatically.

Limits
Watch-only per-payment and daily caps, set only on the phone. QuickPay on the watch is off by default and uses the watch cap. The QuickPay spend ledger is local per device, so the threshold applies per device, not per wallet. The phone shows a "watch holds your full wallet" indicator.

Releases are tracked as sub-issues of this issue; their work items are sub-issues of each release.

Sub-issues

Sub-issues

0 of 2 Issues completed
Loading 2 sub-issues

Metadata

Metadata

Assignees

Labels

epic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions