-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: generate keys when extension is installed #93
Conversation
@@ -53,6 +55,33 @@ class Background { | |||
unsubscribeFromMessages() { | |||
this.subscriptions.forEach((sub: any) => sub()) | |||
} | |||
|
|||
private async keyExists(): Promise<boolean> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no reason for this method to be here, it's independent of the background class. Maybe a better place would be the storage wrapper to access different variables in there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, there isn't a storage wrapper available. Once the storage wrapper is implemented, transferring it there will be straightforward. I'll add a comment.
43a092f
to
e5a4ed5
Compare
Context
Closes #92.
Changes proposed in this pull request
Whenever the extension is installed, the key pair is generated, alongside a key ID: