ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [ => {
const roundtrip = createRoundtripTest(encodePrivateContentAAD, decodePrivateContentAAD);
test("roundtrips application", () => {
roundtrip({
groupId: new Uint8Array([1]),
epoch: 0n,
contentType: "application",
authenticatedData: new Uint8Array([2]),
});
});
test("roundtrips commit", () => {
roundtrip({
groupId: new Uint8Array([3, 4, 5]),
epoch: 123n,
contentType: "commit",
authenticatedData: new Uint8Array([6, 7, 8]),
});
});
test("roundtrips proposal", () => {
roundtrip({
groupId: new Uint8Array([3, 4, 5]),
epoch: 123n,
contentType: "proposal",
authenticatedData: new Uint8Array([6, 7, 8]),
});
});
});
//# sourceMappingURL=privateContentAAD.test.js.map