Encrypted chat message for XX C chat room
Record Key
tid
Timestamp-based ID
Properties
authTag
string
Optional
Authentication tag for GCM mode (base64 encoded)
maxLength: 32 bytescreatedAt
string
datetime
Required
Timestamp when message was created
encryptedContent
string
Required
AES-256-GCM encrypted message content (base64 encoded)
maxLength: 10000 bytesencryptionVersion
string
Optional
Encryption scheme version (currently v1: HKDF + AAD)
iv
string
Required
Initialization vector for AES-GCM (base64 encoded)
maxLength: 24 bytesreplyTo
string
at-uri
Optional
Optional: AT-URI of message being replied to
roomId
string
Required
Identifier for chat room (e.g., 'main')
maxLength: 64 bytesView raw schema
{
"description": "Encrypted chat message for XX C chat room",
"key": "tid",
"record": {
"properties": {
"authTag": {
"description": "Authentication tag for GCM mode (base64 encoded)",
"maxLength": 32,
"type": "string"
},
"createdAt": {
"description": "Timestamp when message was created",
"format": "datetime",
"type": "string"
},
"encryptedContent": {
"description": "AES-256-GCM encrypted message content (base64 encoded)",
"maxLength": 10000,
"type": "string"
},
"encryptionVersion": {
"description": "Encryption scheme version (currently v1: HKDF + AAD)",
"type": "string"
},
"iv": {
"description": "Initialization vector for AES-GCM (base64 encoded)",
"maxLength": 24,
"type": "string"
},
"replyTo": {
"description": "Optional: AT-URI of message being replied to",
"format": "at-uri",
"type": "string"
},
"roomId": {
"description": "Identifier for chat room (e.g., 'main')",
"maxLength": 64,
"type": "string"
}
},
"required": [
"encryptedContent",
"roomId",
"iv",
"createdAt"
],
"type": "object"
},
"type": "record"
}