ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [,
epoch: 0n,
treeHash: new Uint8Array([]),
confirmedTranscriptHash: new Uint8Array([]),
extensions: [],
};
const nontrivialGroupContext = {
version: "mls10",
cipherSuite: "MLS_256_XWING_AES256GCM_SHA512_Ed25519",
groupId: new Uint8Array([1, 2, 3]),
epoch: 42n,
treeHash: new Uint8Array([4, 5]),
confirmedTranscriptHash: new Uint8Array([6, 7]),
extensions: [{ extensionType: "ratchet_tree", extensionData: new Uint8Array([8, 9]) }],
};
describe("GroupContext roundtrip", () => {
const roundtrip = createRoundtripTest(encodeGroupContext, decodeGroupContext);
test("roundtrips minimal", () => {
roundtrip(minimalGroupContext);
});
test("roundtrips nontrivial", () => {
roundtrip(nontrivialGroupContext);
});
});
//# sourceMappingURL=groupContext.test.js.map