computeSharedSecret static method

Uint8List computeSharedSecret(
  1. Uint8List secretKey,
  2. Uint8List publicKey
)

Computes a shared secret given a user's secret key and another user's public key.

Implementation

static Uint8List computeSharedSecret(
        Uint8List secretKey, Uint8List publicKey) =>
    Sodium.cryptoScalarmult(secretKey, publicKey);