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

Support default keys

This commit is contained in:
David Baker
2019-11-13 14:09:40 +00:00
parent c97a87d1f6
commit 26aa3d3ce7
4 changed files with 86 additions and 1 deletions

View File

@@ -236,6 +236,14 @@ Crypto.prototype.requestSecret = function(name, devices) {
return this._secretStorage.request(name, devices);
};
Crypto.prototype.getDefaultKeyId = function() {
return this._secretStorage.getDefaultKeyId();
};
Crypto.prototype.setDefaultKeyId = function(k) {
return this._secretStorage.setDefaultKeyId(k);
};
/**
* Checks that a given private key matches a given public key
* This can be used by the getCrossSigningKey callback to verify that the