Class EncryptedContent
Content of m.room.encrypted, both Olm and Megolm.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
Syntax
public sealed record EncryptedContent : IEquatable<EncryptedContent>
Properties
| Edit this page View SourceAlgorithm
Algorithm, see EncryptionAlgorithms.
Declaration
public string? Algorithm { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Ciphertext
Megolm: ciphertext string. Olm: object keyed by recipient Curve25519 key, each with type and body.
Declaration
public JsonElement Ciphertext { get; init; }
Property Value
| Type | Description |
|---|---|
| JsonElement |
DeviceId
Sender's device; deprecated for Megolm.
Declaration
public string? DeviceId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
RelatesTo
Relation, kept unencrypted so servers can aggregate edits and threads.
Declaration
[JsonPropertyName("m.relates_to")]
public Relation? RelatesTo { get; init; }
Property Value
| Type | Description |
|---|---|
| Relation |
SenderKey
Sender's Curve25519 key; required for Olm, deprecated for Megolm.
Declaration
public string? SenderKey { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
SessionId
Megolm session ID.
Declaration
public string? SessionId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |