computeSharedSecretKey
Computes a shared secret key with the provided public key.
Usage
const userPublicKey = '0x...';
const sharedSecretKey = await encryptor.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.