sharedSecretKey method

  1. @override
Future<SecretKey> sharedSecretKey({
  1. required KeyPair keyPair,
  2. required PublicKey remotePublicKey,
})
override

Calculates a shared SecretKey.

Implementation

@override
Future<SecretKey> sharedSecretKey({
  required KeyPair keyPair,
  required PublicKey remotePublicKey,
}) async {
  final keyPairData = await keyPair.extract();
  return sharedSecretSync(
    keyPairData: keyPairData,
    remotePublicKey: remotePublicKey,
  );
}