ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [ • 663 B
TypeScript
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>;