You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Adjust secret key adding to consume instead of create
This changes `addKey` for secret storage to consume info about a pre-generated key, rather than creating the key in middle of the method. This eases UI work that want to have the public and private keys earlier on in the flow.
This commit is contained in:
@@ -365,8 +365,7 @@ Crypto.prototype.createRecoveryKeyFromPassphrase = async function(password) {
|
||||
* called to await a secret storage key creation flow.
|
||||
* Returns:
|
||||
* {Promise} A promise which resolves to key creation data for
|
||||
* SecretStorage#addKey: an object with either `passphrase` or `privkey`
|
||||
* fields.
|
||||
* SecretStorage#addKey: an object with `passphrase` and/or `pubkey` fields.
|
||||
*/
|
||||
Crypto.prototype.bootstrapSecretStorage = async function({
|
||||
authUploadDeviceSigningKeys,
|
||||
|
||||
Reference in New Issue
Block a user