> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/developers/sdk/ethereum/encryptor/getpublickeytype.md).

# getPublicKeyType

{% hint style="info" %}
Reference for SDK 0.5.x (production-ready, stable). See [Status](https://wiki.4thtech.io/developers/sdk/status.md).
{% endhint %}

Retrieves the type of the user's public key.

### Usage

```ts
const publicKeyType = encryptor.getPublicKeyType();
```

### Returns

`Promise<string>`

The type of the user's public key.
