JoshOrndorff / utxo-workshop

A Substrate UTXO workshop
The Unlicense
117 stars 81 forks source link

Security improvement: Generate salt on behalf of the user #46

Closed nczhu closed 4 years ago

nczhu commented 4 years ago

AT the moment, users have to construct their own salt variables to avoid utxo hash collision... Users most likely wont do it correctly, so it means our UX is still highly vulnerable to replay attacks.

We should take out Salt from the user input, and construct it for the user ourselves.

The new salt with be a hash of the following combo: