computeSharedSecretKey
Last updated
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.
const userPublicKey = '0x...';
const sharedSecretKey = await encryptorExtension.computeSharedSecretKey(userPublicKey);Promise<string | undefined>
A promise that resolves to the computed shared secret key or undefined if the computation failed.
Type string
The public key with which the shared secret key is computed.
Last updated
