Decrypt using a private key outside of a wallet
import { EthereumPrivateKeyDecryptionProvider } from "@requestnetwork/epk-decryption";| Name | Type | Required? | Description |
|---|---|---|---|
| decryptionParameters | IDecryptionParameters | true | Decryption method and private key |
| Name | Type | Required? | Description |
|---|---|---|---|
| method | Types.Decryption.METHOD | true | Decryption method |
| key | string | true | Private key |
| Name | Value | |
|---|---|---|
| ECIES | 'ecies' | Elliptic Curve Integrated Encryption Scheme (ECIES). An asymmetric key cipher. |
| AES256_CBC | 'aes256-cbc' | Advanced Encryption Standard (AES). A symmetric key cipher with keys of length 256 in CBC mode. |
| AES256_GCM | 'aes256-gcm' | Advanced Encryption Standard (AES). A symmetric key cipher with keys of length 256 in GCM mode. |