ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [,
leafNode: {
hpkePublicKey: new Uint8Array([]),
signaturePublicKey: new Uint8Array([]),
credential: { credentialType: "basic", identity: new Uint8Array([]) },
capabilities: {
versions: [],
ciphersuites: [],
extensions: [],
proposals: [],
credentials: [],
},
leafNodeSource: "key_package",
lifetime: { notBefore: 0n, notAfter: 0n },
extensions: [],
signature: new Uint8Array([]),
},
extensions: [],
signature: new Uint8Array([]),
},
},
};
const dummyProposalRemove = {
proposalType: "remove",
remove: { removed: 42 },
};
describe("Proposal roundtrip", () => {
const roundtrip = createRoundtripTest(encodeProposal, decodeProposal);
test("roundtrips add", () => {
roundtrip(dummyProposalAdd);
});
test("roundtrips remove", () => {
roundtrip(dummyProposalRemove);
});
});
//# sourceMappingURL=proposal.test.js.map