Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR establishes the shared-package boundary and extracts reusable implementation used by both OpenKey editions.
packages/openkey_sharedas the shared Flutter package.FeatureAccessabstraction and edition capability identifiers in the package.Either<L, R>,Left, andRightresult types into the package.VaultEntryTotpConfigAttachmentMetaPasskeyPayloadEntryExtraFieldCommercial app integration
The private commercial app is being connected through OpenKey_app PR #24. It consumes this package through a Git dependency pinned to the exact commit produced by this PR, rather than a floating branch.
The private app retains its subscription, purchase, restore, paywall, and Pro-only product code. Those billing integrations do not belong in the shared package.
Compatibility and security
The vault-entry model was identical in both repositories before extraction. Its payload field names, omission rules, defaults, nested TOTP/attachment/passkey serialization, and parsing behavior are covered by package tests.
This extraction does not change encryption algorithms, key-derivation parameters, ciphertext formats, Drift schemas or migrations, secure-storage key names, database paths, backup formats, or server synchronization protocols.
Existing import paths remain as compatibility exports, so this extraction does not require a broad application refactor in this step.
Next stages
Continue with other domain models and pure-Dart logic, then persistence/repositories, followed by crypto/auth/sync services. Each stage must include regression tests against existing user data and formats before duplicate implementations are removed.
Validation
Either, password strength, and vault-entry payload round-trips / legacy defaults.