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