# Encryptor

Class that provides functionality for public key retrieval and storage, as well as shared secret key computation using the Encryptor extension.

### Usage

Below is a minimal example of how to initialize \`Encryptor:

```ts
import { Encryptor } from '@4thtech-sdk/ethereum';

const encryptor = new Encryptor({
  encryptorExtension,
  walletClient,
});
```

### Parameters

#### config

* **Type** `EncryptorConfig`

The configuration object required to initialize the encryptor service.

#### config.encryptorExtension

* **Type** `EncryptorExtension`

An instance of the Encryptor Extension to be used by the Encryptor.

You can use:

* [EncryptorExtensionConnector](https://github.com/4thtech/wiki.4thtech.io/blob/main/docs/sdk/encryptor/README.md)

#### config.walletClient

* **Type** `WalletClient`

An instance of the wallet client that takes care of sending Ethereum transactions.
