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

14 lines (13 loc) 690 B
import { ClientState } from "./clientState.js"; import { CiphersuiteImpl } from "./crypto/ciphersuite.js"; import { MLSMessage } from "./message.js"; import { PrivateMessage } from "./privateMessage.js"; import { Proposal } from "./proposal.js"; export declare function createProposal(state: ClientState, publicMessage: boolean, proposal: Proposal, cs: CiphersuiteImpl, authenticatedData?: Uint8Array): Promise<{ newState: ClientState; message: MLSMessage; }>; export declare function createApplicationMessage(state: ClientState, message: Uint8Array, cs: CiphersuiteImpl, authenticatedData?: Uint8Array): Promise<{ newState: ClientState; privateMessage: PrivateMessage; }>;