SDK
Encryptor
This package handles the connection with Encryptor Extension.
EncryptorExtensionConnector
is an integral part of this package, which serves as the primary interface between your application and the Encryptor Extension, facilitating operations such as public key retrieval, computation of shared secret key, and checking the state of the extension.
Installation
npm install @4thtech-sdk/encryptor
EncryptorExtensionConnector
Description
The EncryptorExtensionConnector
provides methods to interact seamlessly with the Encryptor Extension. It acts as a bridge, ensuring smooth communication, and providing higher-level functions that abstract away the complexity of dealing directly with the extension's APIs.
Usage
To use the EncryptorExtensionConnector
, first import it and create an instance.
import { EncryptorExtensionConnector } from '@4thtech-sdk/encryptor';
const encryptorExtension = new EncryptorExtensionConnector();
Once instantiated, you can use various methods like isInstalled()
, getPublicKey()
, and others to interact with the Encryptor Extension.