-
Notifications
You must be signed in to change notification settings - Fork 285
feat(crypto-js): Implement key verification #788
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
Conversation
Codecov ReportBase: 80.30% // Head: 80.30% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #788 +/- ##
=======================================
Coverage 80.30% 80.30%
=======================================
Files 115 115
Lines 16064 16064
=======================================
Hits 12900 12900
Misses 3164 3164
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
6a29441
to
2da3291
Compare
ca18f23
to
d12d48d
Compare
Blocked by #1018. |
ce022e4
to
1d6fe48
Compare
ef33e58
to
4c4fcf9
Compare
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.
Not super familiar with the code so I mostly looked for consistency, documentation and typos. Found minor ones, but I think this is fine overall.
@@ -0,0 +1,80 @@ | |||
const { DeviceLists, RequestType, KeysUploadRequest, KeysQueryRequest } = require('../pkg/matrix_sdk_crypto_js'); | |||
|
|||
function* zip(...arrays) { |
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.
what's that function*
notation? What does that mean? Not seen that in JS before!?!
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's used to declare a Generator
, with yield
to produce a value.
Thanks for the review @gnunicorn! |
And a special thanks to @poljar for the help with the unit tests! |
Related to #1016.
This PR is quite important. It brings the Key Verification API to
crypto-js
, aka SAS, Emoji, QR Code and bootstraping cross stuff.Progression
OlmMachine.get_user_devices
(imply supporting aUserDevices
type),OlmMachine.get_device
(imply supporting aDevice
type),OlmMachine.get_verification
(imply supporting aVerificaftion
type),OlmMachine.get_verification_request
and.get_verification_requests
(imply supporting aVerificationRequest
type),OlmMachine.receive_unencrypted_verification_event
,Verification
,VerificationRequest
,Sas
,Emoji
Qr
,QrCode
,CancelInfo
,CancelCode
,DeviceKey
,Device
,LocalTrust
,UserDevices
.