ts-mls
Version:
[](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [](https://badge.fury.io/js/ts-mls) [ • 655 B
TypeScript
import { CiphersuiteImpl } from "./crypto/ciphersuite";
import { PathSecrets } from "./pathSecrets";
export type 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>;