Class MegolmPlaintext
A decrypted Megolm message with its index, which must not repeat for a session.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
Syntax
public sealed record MegolmPlaintext : IEquatable<MegolmPlaintext>
Constructors
| Edit this page View SourceMegolmPlaintext(byte[], uint)
A decrypted Megolm message with its index, which must not repeat for a session.
Declaration
public MegolmPlaintext(byte[] Plaintext, uint MessageIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | Plaintext | Decrypted bytes, usually UTF-8 JSON. |
| uint | MessageIndex | Ratchet index the message was encrypted at. |
Properties
| Edit this page View SourceMessageIndex
Ratchet index the message was encrypted at.
Declaration
public uint MessageIndex { get; init; }
Property Value
| Type | Description |
|---|---|
| uint |
Plaintext
Decrypted bytes, usually UTF-8 JSON.
Declaration
public byte[] Plaintext { get; init; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Text
Plaintext as UTF-8 text.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |