Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: improve wallet key derivation by use of proper domain separatio…
…n (see issue #4170) (#4316) Description --- Add domain separation for wallet key derivation for type `KeyManager`. Motivation and Context --- The current wallet key derivation uses plain concatenation of variable length inputs. This procedure is known to not be collision resistant. A better methodology, as pointed [here](#4170), is to prepend the length of each datum to it before passing it through the hash function. We attain this by using the current hashing [API](https://github.com/tari-project/tari-crypto/blob/main/src/hashing.rs), which gives a suitable interface for domain separation, (which always prepends input length). How Has This Been Tested? --- Unit tests.
- Loading branch information