ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [ => {
const roundtrip = createRoundtripTest(encodeGroupSecrets, decodeGroupSecrets);
test("roundtrips minimal", () => {
roundtrip({ joinerSecret: new Uint8Array([1]), pathSecret: undefined, psks: [] });
});
test("roundtrips nontrivial", () => {
roundtrip({
joinerSecret: new Uint8Array([2, 3, 4]),
pathSecret: new Uint8Array([5, 6, 7]),
psks: [{ psktype: "external", pskId: new Uint8Array([8, 9, 10]), pskNonce: new Uint8Array([11, 12, 13, 14]) }],
});
});
});
//# sourceMappingURL=groupSecrets.test.js.map