UNPKG

ts-mls

Version:

[![CI](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml/badge.svg)](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/ts-mls.svg)](https://badge.fury.io/js/ts-mls) [![Coverage Status](https://co

12 lines 575 B
import { encodeSenderData, decodeSenderData } from "../../src/sender"; import { createRoundtripTest } from "./roundtrip"; describe("SenderData roundtrip", () => { const roundtrip = createRoundtripTest(encodeSenderData, decodeSenderData); test("roundtrips minimal", () => { roundtrip({ leafIndex: 0, generation: 0, reuseGuard: new Uint8Array([1, 2, 3, 4]) }); }); test("roundtrips nonzero", () => { roundtrip({ leafIndex: 123, generation: 456, reuseGuard: new Uint8Array([5, 6, 7, 8]) }); }); }); //# sourceMappingURL=senderData.test.js.map