Skip to content

Sol: Expose Android Keystore shares to vault v2 - #133

Merged
Kshot3000 merged 4 commits into
mainfrom
sol/shade-android-keystore-v2
Dec 6, 2026
Merged

Kshot3000 merged 4 commits into
mainfrom
sol/shade-android-keystore-v2

Conversation

@Kshot3000

Copy link
Copy Markdown
Owner

Victor, vault v2 interface

  • Enrollment calls wrapDeviceShare(walletId, share) with the independent 32-byte share. Persist the returned version 1 envelope with the vault, never the clear share.
  • Unlock calls getDeviceShare(walletId, envelope) after the existing baseline stages. It returns an owned byte array after native biometric authorization. Wipe the array after shared core consumes it.
  • unwrapDeviceShare stays available for existing callers. Reading never provisions or replaces a key. DEVICE_SHARE_KEY_MISSING and DEVICE_SHARE_KEY_INVALIDATED belong in the recovery path. This PR leaves share composition and vault migration to core.

The plugin uses StrongBox when Android provides it, checks hardware-backed authentication, and requires per-operation biometrics. Biometric enrollment invalidation remains enabled. Activity destruction cancels the prompt and wipes retained native input.

Verified

227 unit tests passed across 36 files, including seven Android Keystore adapter tests. Workspace typecheck, 22 Chromium extension e2e tests, Android bundle build, and Capacitor sync passed.

Not verified

Real phone: none. Android emulator: none. The native SDK did not compile or run here. StrongBox fallback, biometric enrollment invalidation, lifecycle cancellation, and recovery routing on a device remain unverified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant