computeSharedSecretKey
Computes a shared secret key using a provided public key. This method is useful for creating a common secret between parties, which can be used for tasks like symmetric encryption.
Usage
const userPublicKey = '0x...';
const sharedSecretKey = await encryptorExtension.computeSharedSecretKey(userPublicKey);Returns
Promise<string | undefined>
A promise that resolves to the computed shared secret key or undefined if the computation failed.
Parameters
publicKey
Type
string
The public key with which the shared secret key is computed.
Last updated
