@substrate-system/json-canon
v0.1.3
Published
Canonical JSON
Readme
json-canon
Serialize JSON into a canonical format — safe for generating a consistent cryptographic hash or signature.
Follows RFC8785: JSON Canonicalization Scheme (JCS)

Fork
This is a fork of ahdinosaur/json-canon.
Featuring
The JSON Canonicalization Scheme concept in a nutshell:
- Serialization of primitive JSON data types using methods compatible with
ECMAScript's
JSON.stringify() - Lexicographic sorting of JSON
Objectproperties in a recursive process - JSON
Arraydata is also subject to canonicalization, but element order remains untouched
