> ## Documentation Index
> Fetch the complete documentation index at: https://turnkey-0e7c1f5b-bc-add-sdk-typedoc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CompressRawPublicKey

# Function: compressRawPublicKey()

> **compressRawPublicKey**(`rawPublicKey`): `Uint8Array`

Defined in: [crypto.ts:322](https://github.com/tkhq/sdk/blob/ee72856c3f450731d7501ab05001215768b71500/packages/crypto/src/crypto.ts#L322)

Accepts a public key Uint8Array, and returns a Uint8Array with the compressed version of the public key.

## Parameters

### rawPublicKey

`Uint8Array`

The raw public key.

## Returns

`Uint8Array`

– The compressed public key.
