UNPKG

ts-mls

Version:

[![CI](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml/badge.svg)](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/ts-mls.svg)](https://badge.fury.io/js/ts-mls) [![Coverage Status](https://co

20 lines 806 B
import { encodeExternalSender, decodeExternalSender } from "../../src/externalSender"; import { createRoundtripTest } from "./roundtrip"; const basic = { signaturePublicKey: new Uint8Array([1, 2, 3]), credential: { credentialType: "basic", identity: new Uint8Array([4, 5, 6]) }, }; const x509 = { signaturePublicKey: new Uint8Array([7, 8, 9, 10, 11]), credential: { credentialType: "x509", certificates: [new Uint8Array([12, 13]), new Uint8Array([14, 15, 16])] }, }; describe("ExternalSender roundtrip", () => { const roundtrip = createRoundtripTest(encodeExternalSender, decodeExternalSender); test("roundtrips basic", () => { roundtrip(basic); }); test("roundtrips x509", () => { roundtrip(x509); }); }); //# sourceMappingURL=externalSender.test.js.map