UNPKG

@chainsafe/ssz

Version:
13 lines 364 B
import { zeroHash } from "@chainsafe/persistent-merkle-tree"; import { hash64 } from "./merkleize.js"; /** * Create a zero snapshot with the given chunksDepth. */ export function zeroSnapshot(chunkDepth) { return { finalized: [], count: 0, root: hash64(zeroHash(chunkDepth), zeroHash(0)), }; } //# sourceMappingURL=snapshot.js.map