-
Notifications
You must be signed in to change notification settings - Fork 29
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
[PB-2666] use hybrid encryption in index.ts #1445
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Running the QA on this one.
Checklist
Private sharing:
-
Sharing content from the new version to the old one- This cannot be done as the new uses a PQC approach the old one cannot understand
- Sharing content from the new version to the new version
- User A shares content with user B, user B can see the content.
- Sharing content from the old version to the new version
- User C (old version, without Kyber) shares content with user B (using the new version)
- User C (in the old version) can open shares in the new version that were generated using only the old version
}); | ||
|
||
const encryptedMnemonicInBase64 = btoa(encryptedMnemonic as string); | ||
const encryptionAlgorithm = publicKyberKey !== '' ? 'hybrid' : 'ed25519'; |
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.
Add this hardcoded string to constants
publicKey = publicKeyResponse.publicKey; | ||
if (publicKeyResponse.keys) { |
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.
I understand that the backend keeps sending the public key in the publicKey
field for pre-hybrid users and in keys.ecc.publicKey
for new hybrid users, is that right?
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.
it sends it for everyone now, but for pre-hybrid users kyber key is null (unless they login recently)
Quality Gate passedIssues Measures |
Description
Switch encryption to a hybrid version with Kyber and ensure that it works as expected
Related Issues
Relates to PB-2666
Related Pull Requests
Checklist
How Has This Been Tested?
Unit tests:
keys
)Additional Notes