Function: canonicalize() ​
canonicalize(
object,algorithm?):string
Defined in: packages/common/src/canonicalization.ts:54
Canonicalizes a JSON object using the specified algorithm.
Parameters ​
object ​
Record<any, any>
The object to canonicalize.
algorithm? ​
CanonicalizationAlgorithm = 'jcs'
The algorithm to use.
Returns ​
string
The canonicalized string.
Throws ​
If the algorithm is not supported.