Decrypt
ArConnect Injected API decrypt() function
Last updated
ArConnect Injected API decrypt() function
Last updated
Data encrypted with the user's wallet should be accessible by the owner of the private key. The decrypt()
function allows applications to decrypt any piece of data encrypted with the user's private key, similarly to the webcrypto encrypt API.
Argument | Type | Description |
---|---|---|
Note: This function requires the DECRYPT
permission.
data
The encrypted data to be decrypted with the user's private key
algorithm
An object specifying the algorithm to be used and any extra parameters if required