Encrypt with an Ethereum private key
Create an encrypted request
EthereumPrivateKeyCipherProvider
import { EthereumPrivateKeyCipherProvider } from '@requestnetwork/epk-cipher';
const cipherProvider = new EthereumPrivateKeyCipherProvider({
# Warning: private keys should never be stored in clear, this is a basic tutorial
key: '0x4025da5692759add08f98f4b056c41c71916a671cedc7584a80d73adc7fb43c0',
method: RequestNetwork.Types.Encryption.METHOD.ECIES,
});
const requestNetwork = new RequestNetwork({
cipherProvider,
signatureProvider,
useMockStorage: true,
});EthereumPrivateKeyDecryptionProvider
Get invoice information from its request ID
Accepting/canceling an invoice information
Enabling/Disabling Decryption
Checking Capabilities
Last updated
Was this helpful?