wailey-whatsapp-lib
Version:
A robust WhatsApp library for Node.js with support for QR code and pairing code authentication
29 lines (28 loc) • 818 B
TypeScript
/**
* Wailey-library Signal Protocol Utilities
* (Renamed from Baileys while maintaining identical functionality)
*/
/**
* Signal protocol encryption
* @param buffer - data to encrypt
* @param key - encryption key
*/
export declare const signalEncrypt: (buffer: Buffer, key: Buffer) => Buffer<ArrayBuffer>;
/**
* Signal protocol decryption
* @param buffer - data to decrypt
* @param key - decryption key
*/
export declare const signalDecrypt: (buffer: Buffer, key: Buffer) => Buffer<ArrayBuffer>;
/**
* Generates a pair of Signal Protocol keys
*/
export declare const generateSignalKeys: () => {
identityKey: Buffer<ArrayBufferLike>;
signedPreKey: {
keyPair: Buffer<ArrayBufferLike>;
signature: Buffer<ArrayBufferLike>;
keyId: number;
};
registrationId: number;
};