Adapt LiveKit Identity hash calculation to latest MSC4195 update (#5268)
* adapt hash calculation to latest MSC4195 update.
Stop using '|' delimiters in hashes; use JSON arrays + canonical JSON instead
Signed-off-by: fkwp <github-fkwp@w4ve.de>
* Update the test for RTC backend identities and add tests for calculating the identity hash.
Signed-off-by: fkwp <github-fkwp@w4ve.de>
* linting
Signed-off-by: fkwp <github-fkwp@w4ve.de>
* add copyright header
---------
Signed-off-by: fkwp <github-fkwp@w4ve.de>