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