Skip to content

Add Account Struct#94

Merged
jazzz merged 8 commits into
mainfrom
jazzz/mls/account
Apr 28, 2026
Merged

Add Account Struct#94
jazzz merged 8 commits into
mainfrom
jazzz/mls/account

Conversation

@jazzz
Copy link
Copy Markdown
Collaborator

@jazzz jazzz commented Apr 24, 2026

This PR Adds a LogosAccount struct to prepare for MLS and PQ identity.

This is added separately to reduce the noise in #92

Notes

  • Depends on Add Signature + Verifying key types #93
  • Introduces a dependency on Openmls. The dependency is needed in the crate, however the direct dependency will be removed from Account in the future.

}

impl LogosAccount {
pub fn new_test(explicit_id: impl Into<String>) -> Self {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use new, with comment on when to use it and the plan to move forward.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New would imply that this is a constructor for a production Account. This is specifically to be used in test scenarios or clients prior to the blockchain integration. Calling it the primary constructor seems like it would be inaccurate and lead to breaking changes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No description provided.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up here, incase there is any confusion: given this function will be removed entirely soon - I thought including "test" in the name would be a warning for everyone - I've added a comment to reflect that as well.

I don't have any blockers if anyone feels it needs to be changed - But my focus is entirely on decomposing #92 to make it easier to review.

Comment thread core/conversations/src/account.rs Outdated
}

impl Signer for LogosAccount {
// TODO: (P2) Remove OpenMLS references
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confusing what this comment means.

Comment thread core/conversations/src/account.rs Outdated
Comment thread core/conversations/src/account.rs Outdated
@jazzz jazzz force-pushed the jazzz/mls/account branch from f8246ba to 9604405 Compare April 27, 2026 23:26
Copy link
Copy Markdown
Contributor

@kaichaosun kaichaosun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@jazzz jazzz merged commit 39bf267 into main Apr 28, 2026
7 checks passed
@jazzz jazzz deleted the jazzz/mls/account branch April 28, 2026 14:48
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.

3 participants