archethic-node
archethic-node copied to clipboard
Smart Contracts: add `Crypto.encrypt_with_storage_nonce/1` and `Crypto.encrypt/2`
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