Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/deps.ts>FingerprintTree#getFingerprint

Storage for private, distributed, offline-first applications.
Go to Latest
method FingerprintTree.prototype.getFingerprint
Re-export
import { FingerprintTree } from "https://deno.land/x/earthstar@v10.2.0/deps.ts";

Calculates a fingerprint of items within the given range, inclusive of xx and exclusive of y. Also returns the size of the range, the items contained within it,

Parameters

x: ValueType
y: ValueType
optional
nextTree: NodeType<ValueType, LiftedType>

Returns

{ fingerprint: LiftedType; size: number; items: ValueType[]; nextTree: NodeType<ValueType, LiftedType> | null; }