setReceiverPublicKey method

  1. @override
Future<void> setReceiverPublicKey({
  1. required String topic,
  2. required String publicKey,
  3. int? expiry,
})
override

Implementation

@override
Future<void> setReceiverPublicKey({
  required String topic,
  required String publicKey,
  int? expiry,
}) async {
  _checkInitialized();
  await topicToReceiverPublicKey.set(
    topic,
    ReceiverPublicKey(
      topic: topic,
      publicKey: publicKey,
      expiry: ReownCoreUtils.calculateExpiry(
        expiry ?? ReownConstants.FIVE_MINUTES,
      ),
    ),
  );
}