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

25 lines (24 loc) 1.32 kB
import { ClientState } from "./clientState"; import { CiphersuiteImpl } from "./crypto/ciphersuite"; import { MLSMessage } from "./message"; import { Proposal } from "./proposal"; 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: { secretTree: import("./secretTree").SecretTree; groupContext: import("./groupContext").GroupContext; keySchedule: import("./keySchedule").KeySchedule; ratchetTree: import("./ratchetTree").RatchetTree; privatePath: import("./privateKeyPath").PrivateKeyPath; signaturePrivateKey: Uint8Array; unappliedProposals: import("./unappliedProposals").UnappliedProposals; confirmationTag: Uint8Array; historicalReceiverData: Map<bigint, import("./clientState").EpochReceiverData>; groupActiveState: import("./clientState").GroupActiveState; clientConfig: import("./clientConfig").ClientConfig; }; privateMessage: import("./privateMessage").PrivateMessage; }>;