From 953af6f036d62695d4c5a0a9443677fcc0a85583 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Fri, 21 Feb 2020 10:19:53 -0500 Subject: [PATCH] add device and cross-signing public keys to rageshake info (#4097) --- src/rageshake/submit-rageshake.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rageshake/submit-rageshake.js b/src/rageshake/submit-rageshake.js index b17dc62168..53e9f24788 100644 --- a/src/rageshake/submit-rageshake.js +++ b/src/rageshake/submit-rageshake.js @@ -96,6 +96,13 @@ export default async function sendBugReport(bugReportEndpoint, opts) { body.append('device_id', client.deviceId); } + const keys = [`ed25519:${client.getDeviceEd25519Key()}`]; + if (client.getDeviceCurve25519Key) { + keys.push(`curve25519:${client.getDeviceCurve25519Key()}`); + } + body.append('device_keys', keys.join(', ')); + body.append('cross_signing_key', client.getCrossSigningId()); + if (opts.label) { body.append('label', opts.label); }