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:

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:

config.walletClient

  • Type WalletClient

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

Previous
onMemberRemovedFromConversation