diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-04-04 12:44:45 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-04-04 12:44:45 -0500 |
commit | 081d49c59f0f19ee82f0d8e1b33371dc43c37938 (patch) | |
tree | 623ff53c8fb6797e3ecc41e9ca6140cb27af1e28 /src/ringct | |
parent | Merge pull request #6335 (diff) | |
parent | Hash domain separation (diff) | |
download | monero-081d49c59f0f19ee82f0d8e1b33371dc43c37938.tar.xz |
Merge pull request #6338
80d5320 Hash domain separation (SarangNoether)
Diffstat (limited to 'src/ringct')
-rw-r--r-- | src/ringct/bulletproofs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ringct/bulletproofs.cc b/src/ringct/bulletproofs.cc index 80ecc5593..c129e7886 100644 --- a/src/ringct/bulletproofs.cc +++ b/src/ringct/bulletproofs.cc @@ -100,8 +100,8 @@ static inline bool is_reduced(const rct::key &scalar) static rct::key get_exponent(const rct::key &base, size_t idx) { - static const std::string salt("bulletproof"); - std::string hashed = std::string((const char*)base.bytes, sizeof(base)) + salt + tools::get_varint_data(idx); + static const std::string domain_separator(config::HASH_KEY_BULLETPROOF_EXPONENT); + std::string hashed = std::string((const char*)base.bytes, sizeof(base)) + domain_separator + tools::get_varint_data(idx); rct::key e; ge_p3 e_p3; rct::hash_to_p3(e_p3, rct::hash2rct(crypto::cn_fast_hash(hashed.data(), hashed.size()))); |