ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [ => {
const roundtrip = createRoundtripTest(encodeTreeHashInput, decodeTreeHashInput);
test("roundtrips leaf", () => {
roundtrip({ nodeType: "leaf", leafIndex: 0, leafNode: undefined });
});
test("roundtrips parent", () => {
roundtrip({
nodeType: "parent",
parentNode: undefined,
leftHash: new Uint8Array([1, 2]),
rightHash: new Uint8Array([3, 4]),
});
});
});
//# sourceMappingURL=treeHash.test.js.map