Skip to content

Add support for JSON Canonicalization (RFC8785) #1038

Description

@renchap

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions