archethic-foundation / archethic-node

Official Archethic Blockchain node, written in Elixir
GNU Affero General Public License v3.0
69 stars 21 forks source link

Smart Contracts: add `Crypto.encrypt_with_storage_nonce/1` and `Crypto.encrypt/2` #1525

Open bchamagne opened 3 weeks ago

bchamagne commented 3 weeks ago

Is your feature request related to a problem?

No response

Describe the solution you'd like

Crypto.encrypt_with_storage_nonce/1 can encrypt any hexadecimal with the storage nonce public key (making it only decryptable by the nodes) (to be used with Crypto.decrypt_with_storage_nonce/1) Crypto.encrypt/2 can encrypt any hexadecimal with the given public key

Additional context

No response

Epic

No response