Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Path

import { Path } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/tezos-merkle/path.ts";

Path from leaf to root

class Path {
constructor({ block, siblings, root }: PathOptions);
block: Uint8Array;
get leaf(): Uint8Array;
root: Uint8Array;
siblings: Sibling[];
 
toProof(): Proof;
}

§Constructors

§
new Path({ block, siblings, root }: PathOptions)
[src]

§Properties

§
block: Uint8Array
[src]

Data block

§
leaf: Uint8Array readonly
[src]

Leaf node hash

§
root: Uint8Array
[src]

Root node hash

§
siblings: Sibling[]
[src]

Sibling nodes along path from the block to the root hash

§Methods

§
toProof(): Proof
[src]

Creates a timestamp proof from the path.