@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
18 lines (17 loc) • 612 B
TypeScript
import type { AppManager } from '../AppManager';
import type { IAppStorageItem } from '../storage';
export declare class AppSignatureManager {
private readonly manager;
private readonly federationBridge;
private readonly checksumAlgorithm;
private readonly signingAlgorithm;
private privateKey;
private publicKey;
constructor(manager: AppManager);
verifySignedApp(app: IAppStorageItem): Promise<void>;
signApp(app: IAppStorageItem): Promise<string>;
private getPrivateKey;
private getPublicKey;
private calculateChecksumForApp;
private getFieldsForChecksum;
}