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

13 lines (12 loc) 663 B
import { CiphersuiteImpl } from "./crypto/ciphersuite.js"; import { PathSecrets } from "./pathSecrets.js"; export interface PrivateKeyPath { leafIndex: number; privateKeys: Record<number, Uint8Array>; } /** * Merges PrivateKeyPaths, BEWARE, if there is a conflict, this function will prioritize the second `b` parameter */ export declare function mergePrivateKeyPaths(a: PrivateKeyPath, b: PrivateKeyPath): PrivateKeyPath; export declare function updateLeafKey(path: PrivateKeyPath, newKey: Uint8Array): PrivateKeyPath; export declare function toPrivateKeyPath(pathSecrets: PathSecrets, leafIndex: number, cs: CiphersuiteImpl): Promise<PrivateKeyPath>;