You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Add method to check whether cross-signing has keys
This commit is contained in:
@@ -328,6 +328,15 @@ Crypto.prototype.checkPrivateKey = function(privateKey, expectedPublicKey) {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Check whether we already have cross-signing keys for the current user.
|
||||
*
|
||||
* @return {boolean} Whether we have keys.
|
||||
*/
|
||||
Crypto.prototype.doesCrossSigningHaveKeys = function() {
|
||||
return this._crossSigningInfo.hasKeys();
|
||||
};
|
||||
|
||||
/**
|
||||
* Generate new cross-signing keys.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user