Skip to content

Commit

Permalink
Fix Gui Wallet Build Error on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ParsiCoin authored Feb 8, 2019
1 parent 713e8f0 commit 2036e84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/crypto/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,7 @@ void crypto_ops::generate_tx_proof(const Hash &prefix_hash, const PublicKey &R,
if (ge_frombytes_vartime(&A_p3, reinterpret_cast<const unsigned char*>(&A)) != 0) throw std::runtime_error("recipient view pubkey is invalid");
if (ge_frombytes_vartime(&D_p3, reinterpret_cast<const unsigned char*>(&D)) != 0) throw std::runtime_error("key derivation is invalid");
//#if !defined(NDEBUG)
{
assert(sc_check(&r) == 0);
assert(sc_check(reinterpret_cast<const unsigned char*>(&r)) == 0);
// check R == r*G
ge_p3 dbg_R_p3;
ge_scalarmult_base(&dbg_R_p3, reinterpret_cast<const unsigned char*>(&r));
Expand All @@ -366,7 +365,6 @@ void crypto_ops::generate_tx_proof(const Hash &prefix_hash, const PublicKey &R,
PublicKey dbg_D;
ge_tobytes(reinterpret_cast<unsigned char*>(&dbg_D), &dbg_D_p2);
assert(D == dbg_D);
}
//#endif

// pick random k
Expand Down

0 comments on commit 2036e84

Please sign in to comment.