- Preparing search index...
- The search index is not available
baileys
Function makeNoiseHandler
- makeNoiseHandler(__namedParameters): {
authenticate: ((data) => void);
decodeFrame: ((newData, onFrame) => Promise<void>);
decrypt: ((ciphertext) => Buffer);
encodeFrame: ((data) => Buffer);
encrypt: ((plaintext) => Buffer);
finishInit: (() => void);
mixIntoKey: ((data) => void);
processHandshake: ((__namedParameters, noiseKey) => Buffer);
}
-
Parameters
-
__namedParameters: {
NOISE_HEADER: Uint8Array;
keyPair: KeyPair;
logger: Logger<LoggerOptions>;
routingInfo?: Buffer;
}
-
NOISE_HEADER: Uint8Array
-
-
logger: Logger<LoggerOptions>
-
Optional
routingInfo?: Buffer
Returns {
authenticate: ((data) => void);
decodeFrame: ((newData, onFrame) => Promise<void>);
decrypt: ((ciphertext) => Buffer);
encodeFrame: ((data) => Buffer);
encrypt: ((plaintext) => Buffer);
finishInit: (() => void);
mixIntoKey: ((data) => void);
processHandshake: ((__namedParameters, noiseKey) => Buffer);
}
-
authenticate: ((data) => void)
-
- (data): void
-
Returns void
-
decodeFrame: ((newData, onFrame) => Promise<void>)
-
- (newData, onFrame): Promise<void>
-
Parameters
-
newData: Uint8Array | Buffer
-
onFrame: ((buff) => void)
-
- (buff): void
-
Returns void
Returns Promise<void>
-
decrypt: ((ciphertext) => Buffer)
-
- (ciphertext): Buffer
-
Returns Buffer
-
encodeFrame: ((data) => Buffer)
-
- (data): Buffer
-
Parameters
-
data: Uint8Array | Buffer
Returns Buffer
-
encrypt: ((plaintext) => Buffer)
-
- (plaintext): Buffer
-
Returns Buffer
-
finishInit: (() => void)
-
mixIntoKey: ((data) => void)
-
- (data): void
-
Returns void
-
processHandshake: ((__namedParameters, noiseKey) => Buffer)
-
- (__namedParameters, noiseKey): Buffer
-
Returns Buffer