Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Don't use private keys for QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 21, 2020
1 parent 4294854 commit 3cb9a0a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/views/right_panel/VerificationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,15 @@ export default class VerificationPanel extends React.PureComponent {
if (request.requested) {
return (<p>Waiting for {request.otherUserId} to accept ... <Spinner /></p>);
} else if (request.ready) {
const keyId = `ed25519:${MatrixClientPeg.get().getCrossSigningId()}`;
const qrCodeKeys = [
[MatrixClientPeg.get().getDeviceId(), MatrixClientPeg.get().getDeviceEd25519Key()],
[MatrixClientPeg.get().getCrossSigningId(), MatrixClientPeg.get().getCrossSigningKey("master")],
[keyId, MatrixClientPeg.get().getCrossSigningId()],
];
// TODO: Await a bunch of this
const otherCrossSigning = MatrixClientPeg.get().getStoredCrossSigningForUser(request.otherUserId);
const otherUserKey = otherCrossSigning ? otherCrossSigning.getCrossSigningKey("master") : null;
const qrCode = <VerificationQRCode
keyholderUserId={MatrixClientPeg.get().getUserId()}
requestEventId={request.event.eventId}
otherUserKey={otherUserKey}
otherUserKey={"todo"}
secret={request.encodedSharedSecret}
keys={qrCodeKeys}
/>;
Expand Down

0 comments on commit 3cb9a0a

Please sign in to comment.