encryptedKeys property

  1. @override
Map? get encryptedKeys
override

Map of encrypted symmetric keys (recipient ID → encrypted key string).

Each entry contains a symmetric key encrypted with the recipient's public key (asymmetric encryption), ensuring only the intended recipient can decrypt it. The "digest" entry contains a hash of the raw symmetric key for verification.

Returns: Map of encrypted keys, or null if no keys are present (uncommon)

Implementation

@override
Map? get encryptedKeys {
  if (_encKeys == null) {
    var keys = this['keys'];
    if (keys is Map) {
      _encKeys = keys;
    } else {
      assert(keys == null, 'message keys error: $keys');
    }
  }
  return _encKeys;
}