In order to properly implement MatrixRTC over LiveKit HKDF must be used for shared keys, but this library only supports using PBKDF2.
I think this would be possible by either using a enum that selects the KDF or by allowing the user to set an arbitrary funtion pointer for the KDF.
For reference some issues related to this:
LiveKit Rust sdk: livekit/rust-sdks#796
LiveKit Python sdk (Althoug this is only FFI to the rust sdk): livekit/python-sdks#570
LiveKit Flutter sdk: livekit/client-sdk-flutter#974