Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CODE | Improve identity managment #67

Open
sevenbitbyte opened this issue Apr 8, 2023 · 0 comments
Open

CODE | Improve identity managment #67

sevenbitbyte opened this issue Apr 8, 2023 · 0 comments

Comments

@sevenbitbyte
Copy link
Member

sevenbitbyte commented Apr 8, 2023

🤖 Code Proposal

Should improve all usage of Identity.

Consider implementing classes:

  • IdentityManager(SecureConfig) - Maintain a list of Identity using SecureConfig

    • createKey(keyPrivate, use) - where use is party | user | app
    • trustKey(keyPublic, use, app)
    • revokeKey(keyPublic, use
  • SessionManager(IdentityManager) - Manage creating, signing and registering ephemeral session keys and using them to get a working SocketComms or RestComms.

  • Make IParty and SocketComms identity use more explicit

    • Cleanly handle lock/unclock events

Motivation

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

No branches or pull requests

1 participant