archethic-foundation / archethic-node

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

Crypto: add an optional entropy to ec_encrypt to achieve idempotency #1528

Open bchamagne opened 3 weeks ago

bchamagne commented 3 weeks ago

Description

By giving a entropy to the ec_encrypt, the function always return the same value for the same inputs. We'll need this in #1525.

Type of change

How Has This Been Tested?

unit tests

Checklist: