feat: extend the http registry to store account's installations#129
Open
kaichaosun wants to merge 9 commits into
Open
feat: extend the http registry to store account's installations#129kaichaosun wants to merge 9 commits into
kaichaosun wants to merge 9 commits into
Conversation
38fcb76 to
11b7233
Compare
jazzz
approved these changes
Jun 9, 2026
jazzz
left a comment
Collaborator
There was a problem hiding this comment.
Looks good for the current goals.
Notes for the Future:
- The account_id structure will need an update, however it will still contain the verifying key so minimal changes.
- Id recommend keeping the account and keypackage paths as separated as possible, as the code/functionality will be updated at different times
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
Adds an account → device directory so an account can be resolved to its set of installation/device keys. Extends the existing HTTP keypackage registry to store and serve these account-to-device mappings.
Changes
account_directory.rs): introducesSignedDeviceBundle,DeviceSet, theAccountAuthority(account-key signing capability) andAccountDirectory(untrusted publish/fetch client) traits, plus the bundle codec and signature verification.account.rs,service_traits.rs):LogosAccountimplementsAccountAuthorityalongsideIdentityProvider; on testnet the account key and device key coincide.inbox_v2.rs,context.rs):publish_device_bundleupserts this installation's device key into the account's signed bundle (lamport-versioned, re-published idempotently); exposed viaregister_account_bundle.bin/keypackage-registry/*,extensions/components/contact_registry*): new endpoints + store layer to persist and retrieve signed account installation bundles.Related to #111