> 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/sdk-and-white-label/encryptor/getpublickeytype.md).

# getPublicKeyType

{% hint style="info" %}
Reference for SDK 0.5.x (maintenance mode). See [Status](/sdk-and-white-label/status.md).
{% endhint %}

Gets the type of the public key used by the Encryptor Extension. This method returns a unique type identifier for the public key. It's important to ensure uniqueness when developing custom extensions.

### Usage

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

### Returns

`Promise<string>`

The unique public key type identifier. In this implementation, it returns `'BL_ENCRYPTOR_EC'`.

**Note:** If you're developing your own extension, make sure the returned type identifier is unique to your implementation. This ensures no conflicts arise with other extensions.
