> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# generateSignalPubKey

> prefix version byte to the pub keys, required for some curve crypto functions

> **generateSignalPubKey**(`pubKey`): `Uint8Array`\<`ArrayBufferLike`> | `Buffer`\<`ArrayBufferLike`>

Defined in: [src/Utils/crypto.ts:11](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/crypto.ts#L11)

prefix version byte to the pub keys, required for some curve crypto functions

## Parameters

### pubKey

`Uint8Array`\<`ArrayBufferLike`> | `Buffer`\<`ArrayBufferLike`>

## Returns

`Uint8Array`\<`ArrayBufferLike`> | `Buffer`\<`ArrayBufferLike`>
