There is an existing Gem implementation for RFC8785 (JSON Canonicalization): json-canonicalization) but unfortunately its maintainer passed away.
We wonder if this could be supported directly by the json gem.
This RFC is important when you want to use cryptographic signatures with JSON documents, as the signature depends on the keys' order and format. In our case, we need this to sign ActivityPub JSON objects in Mastodon.
The above implementation's code is quite simple and it has good test coverage, so it could be used as a starting point?
This could also solve #976 in a standard way.
There is an existing Gem implementation for RFC8785 (JSON Canonicalization):
json-canonicalization) but unfortunately its maintainer passed away.We wonder if this could be supported directly by the
jsongem.This RFC is important when you want to use cryptographic signatures with JSON documents, as the signature depends on the keys' order and format. In our case, we need this to sign ActivityPub JSON objects in Mastodon.
The above implementation's code is quite simple and it has good test coverage, so it could be used as a starting point?
This could also solve #976 in a standard way.