1
0
Fork 0
forked from lthn/blockchain

range proofs: Zano now uses U and G generators for aggregable range proof amount commitments

This commit is contained in:
sowle 2023-02-08 18:54:25 +01:00
parent cf2f806f30
commit f978be8b90
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 3 additions and 2 deletions

View file

@ -131,7 +131,7 @@ namespace crypto
}; // struct bpp_crypto_trait_zano
template<size_t N, size_t values_max>
const point_t& bpp_crypto_trait_zano<N, values_max>::bpp_G = c_point_H;
const point_t& bpp_crypto_trait_zano<N, values_max>::bpp_G = c_point_U;
template<size_t N, size_t values_max>
const point_t& bpp_crypto_trait_zano<N, values_max>::bpp_H = c_point_G;
@ -139,6 +139,7 @@ namespace crypto
template<size_t N, size_t values_max>
const point_t& bpp_crypto_trait_zano<N, values_max>::bpp_H2 = c_point_X;
// efficient multiexponentiation (naive stub implementation atm, TODO)
template<typename CT>

View file

@ -4961,7 +4961,7 @@ bool blockchain_storage::check_tx_input(const transaction& tx, size_t in_index,
//TIME_MEASURE_START_PD(tx_input_check_clsag_gg);
bool r = crypto::verify_CLSAG_GG(tx_hash_for_signature, ring, sig.pseudo_out_amount_commitment, zc_in.k_image, sig.clsags_gg);
bool r = crypto::verify_CLSAG_GG(tx_hash_for_signature, ring, sig.pseudo_out_amount_commitment, zc_in.k_image, sig.);
CHECK_AND_ASSERT_MES(r, false, "verify_CLSAG_GG failed");
//TIME_MEASURE_FINISH_PD(tx_input_check_clsag_gg);