From 15707956efcd3b8c634d52e2491db1437a740c6e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 20 Jan 2020 23:11:28 -0700 Subject: [PATCH] Remove private key accessors for cross-signing --- src/client.js | 1 - src/crypto/index.js | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/src/client.js b/src/client.js index 70a9f7950..8f03b24bd 100644 --- a/src/client.js +++ b/src/client.js @@ -1071,7 +1071,6 @@ function wrapCryptoFuncs(MatrixClient, names) { wrapCryptoFuncs(MatrixClient, [ "resetCrossSigningKeys", "getCrossSigningId", - "getCrossSigningKey", "getStoredCrossSigningForUser", "checkUserTrust", "checkDeviceTrust", diff --git a/src/crypto/index.js b/src/crypto/index.js index 5918bfa07..a81243f75 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -726,17 +726,6 @@ Crypto.prototype.getCrossSigningId = function(type) { return this._crossSigningInfo.getId(type); }; -/** - * Gets the user's cross-signing key. - * @param {string} type The key type ("master", "self_signing", or "user_signing") - * @param {string} expectedPublicKey The matching public key or undefined to use - * the stored public key for the given key type. - * @returns {Array} An array with [ public key, Olm.PkSigning ] - */ -Crypto.prototype.getCrossSigningKey = function(type, expectedPublicKey) { - return this._crossSigningInfo.getCrossSigningKey(type, expectedPublicKey); -}; - /** * Get the cross signing information for a given user. *