Skip to main content
Module

x/json_hash/mod.ts>digest

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

Digests a tree using the specified hash algorithm.

Parameters

The hash algorithm to use.

data: Tree

The JSON tree to digest.

Returns

Promise<Uint8Array>

The hash digest.