ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [ => {
const roundtrip = createRoundtripTest(encodeCapabilities, decodeCapabilities);
test("roundtrips minimal", () => {
const c = {
versions: [],
ciphersuites: [],
extensions: [],
proposals: [],
credentials: [],
};
roundtrip(c);
});
test("roundtrips nontrivial", () => {
const c = {
versions: ["mls10"],
ciphersuites: ["MLS_256_XWING_AES256GCM_SHA512_Ed25519"],
extensions: [8, 9],
proposals: [10, 21],
credentials: ["basic", "x509"],
};
roundtrip(c);
});
});
//# sourceMappingURL=capabilities.test.js.map