UNPKG

@iden3/js-merkletree

Version:

javascript sparse merkle tree library

12 lines (9 loc) 219 B
import { Hash } from '../lib/hash/hash'; import { Bytes } from './bytes'; export type NodeType = 0 | 1 | 2; export interface Node { type: NodeType; getKey: () => Promise<Hash>; value: Bytes; string: string; }