aleph-im / aleph-sdk-ts

A TypeScript SDK to interact with the Aleph I.M. network.

Home Page:https://aleph-im.github.io/aleph-sdk-ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not all accounts support encryption/decryption

BjrInt opened this issue · comments

Some accounts do support encryption/decryption, some do not. These are the accounts that support it as of now:

  • Avalanche
  • Cosmos
  • Ethereum (through Keypair and Provider)
  • NULS2
  • Solana*

*Waiting for the Provider signing methods

It is however not recommended to use the same keypair for signing and encryption (as observed by @MHHukiewitz ), so an update might be needed for some of the accounts.

An update of the BaseAccount abstract class to include encryption/decryption would be necessary to close this issue.