@hankg if you have any good links to share, i'd appreciate it! i looked at matrix last year during a holiday, and the spec didn't seem very ... finished. maybe i was looking at the wrong pages!
i was/am very interested in writing my own server implementation of a secure federated chat network :)