You've already forked matrix-js-sdk
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:
@@ -1071,7 +1071,6 @@ function wrapCryptoFuncs(MatrixClient, names) {
|
|||||||
wrapCryptoFuncs(MatrixClient, [
|
wrapCryptoFuncs(MatrixClient, [
|
||||||
"resetCrossSigningKeys",
|
"resetCrossSigningKeys",
|
||||||
"getCrossSigningId",
|
"getCrossSigningId",
|
||||||
"getCrossSigningKey",
|
|
||||||
"getStoredCrossSigningForUser",
|
"getStoredCrossSigningForUser",
|
||||||
"checkUserTrust",
|
"checkUserTrust",
|
||||||
"checkDeviceTrust",
|
"checkDeviceTrust",
|
||||||
|
|||||||
@@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user