Skip to main content
Module

x/json_hash/mod.ts>canonicalize

JCS (JSON Canonicalization Scheme), JSON digests, and JSON Merkle hashes
Latest
function canonicalize
Re-export
import { canonicalize } from "https://deno.land/x/json_hash@0.2.0/mod.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.