1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-11 19:37:30 +03:00

Remove private key accessors for cross-signing

This commit is contained in:
Travis Ralston
2020-01-20 23:11:28 -07:00
parent 4668fc87a1
commit 15707956ef
2 changed files with 0 additions and 12 deletions

View File

@@ -1071,7 +1071,6 @@ function wrapCryptoFuncs(MatrixClient, names) {
wrapCryptoFuncs(MatrixClient, [ wrapCryptoFuncs(MatrixClient, [
"resetCrossSigningKeys", "resetCrossSigningKeys",
"getCrossSigningId", "getCrossSigningId",
"getCrossSigningKey",
"getStoredCrossSigningForUser", "getStoredCrossSigningForUser",
"checkUserTrust", "checkUserTrust",
"checkDeviceTrust", "checkDeviceTrust",

View File

@@ -726,17 +726,6 @@ Crypto.prototype.getCrossSigningId = function(type) {
return this._crossSigningInfo.getId(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. * Get the cross signing information for a given user.
* *