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

# encodeSignedDeviceIdentity

> Function encodeSignedDeviceIdentity in the Baileys API.

> **encodeSignedDeviceIdentity**(`account`, `includeSignatureKey`): `Uint8Array`\<`ArrayBufferLike`>

Defined in: [src/Utils/validate-connection.ts:256](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/validate-connection.ts#L256)

## Parameters

### account

[`IADVSignedDeviceIdentity`](/proto-reference/interfaces/IADVSignedDeviceIdentity)

### includeSignatureKey

`boolean`

## Returns

`Uint8Array`\<`ArrayBufferLike`>
