Decrypt

Returns

Decrypt content with the account the content was encrypted for. This will return the decrypted content.

Usage

import { ethereum } from 'aleph-sdk-ts/accounts'

account = await ethereum.ImportAccountFromPrivateKey('<Your Private Key Here>')

await account.decrypt(encryptedContent: <Buffer Content>)

Available for ethereum, nuls, nuls2, solana and substrate accounts.

For Solana accounts, the function returns a promise.

Last updated