ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [ => {
const roundtrip = createRoundtripTest(encodeParentNode, decodeParentNode);
test("roundtrips minimal", () => {
const node = {
hpkePublicKey: new Uint8Array([]),
parentHash: new Uint8Array([]),
unmergedLeaves: [],
};
roundtrip(node);
});
test("roundtrips nontrivial", () => {
const node = {
hpkePublicKey: new Uint8Array([1, 2, 3]),
parentHash: new Uint8Array([4, 5, 6]),
unmergedLeaves: [7, 8, 9],
};
roundtrip(node);
});
});
//# sourceMappingURL=parentNode.test.js.map