Encrypt
Encrypt content for an address public key using the .encrypt() function.
Encryption in aleph.im uses the ECIES standard, using the ECIES Js library on SECP256K1. Beta encryption for curve ed25519 available.
Returns
This will return the encrypted content.
Usage
.encrypt() is available on all accounts: ethereum, nuls, nuls2, solana and substrate.
For Solana accounts:
Encryption puts content into a tweetnacl secret box for a solana account. THIS ENCRYPTION IS NOT SAFE as the nonce is returned by the function.
Last updated