Skip to main content
Module

x/json_hash/canon.ts>canonicalize

JCS (JSON Canonicalization Scheme), JSON digests, and JSON Merkle hashes
Latest
function canonicalize
import { canonicalize } from "https://deno.land/x/json_hash@0.2.0/canon.ts";

Serializes a tree into a JSON string which complies with RFC 8785 (JCS: JSON Canonicalization Scheme).

Parameters

tree: Tree

The tree to serialize.

Returns

string

The canonicalized JSON string.