setVerifiedUserCrossSigningKey method

  1. @override
Future<void> setVerifiedUserCrossSigningKey(
  1. bool verified,
  2. String userId,
  3. String publicKey
)
override

Implementation

@override
Future<void> setVerifiedUserCrossSigningKey(
    bool verified, String userId, String publicKey) async {
  final raw = (await _userCrossSigningKeysBox
          .get(MultiKey(userId, publicKey).toString()) as Map?) ??
      {};
  raw['verified'] = verified;
  await _userCrossSigningKeysBox.put(
    MultiKey(userId, publicKey).toString(),
    raw,
  );
  return;
}