You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-05 17:02:07 +03:00
Fix type docs for checkPrivateKey
This commit is contained in:
@@ -1027,14 +1027,15 @@ function wrapCryptoFuncs(MatrixClient, names) {
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks that a given private key matches a given public key
|
||||
* This can be used by the getCrossSigningKey callback to verify that the
|
||||
* private key it is about to supply is the one that was requested.
|
||||
* Checks that a given private key matches a given public key.
|
||||
* This can be used by the getCrossSigningKey or getSecretStorageKey callbacks
|
||||
* to verify that the private key it is about to supply is the one that was
|
||||
* requested.
|
||||
* The cross-signing API is currently UNSTABLE and may change without notice.
|
||||
*
|
||||
* @function module:client~MatrixClient#checkPrivateKey
|
||||
* @param {Uint8Array} privateKey The private key
|
||||
* @param {Uint8Array} expectedPublicKey The public key supplied by the getCrossSigningKey callback
|
||||
* @param {string} expectedPublicKey The public key
|
||||
* @returns {boolean} true if the key matches, otherwise false
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user