| Example-Files | ||
| README.md | ||
MEOW Protocol Spec
Files
Server Files
The files on the server determine the members of the homeserver, and contain a copy of all the rooms which have at least one member of that homserver. In the root directory, there is a users file which contains a list of users registered to the homeserver, their default name and public key, and a list of room they're in.
Each room is then a subdirectory of the root folder, containing a members file, a messages file and a media folder. The members file contains a list of all members of the room, with their names for that room and their public key. The messages file contains a list of all sent messages, with each message being represented by an object containing the time the message was sent, the publickey of the sender, the type of message and the content. When the message type is text, the content is the pgp message block, with each new line being replaced with a \n. When the message type is media, the content is the name of the relevant file from the media folder. The media folder contains all files send in the room, with the file names being the sha256sum of the encrypted file, and the extension preserved.
Client Files
The client device should be sent copies of each room folder the user is in, and these should be kept up to date with the server.