crypto: move null_pkey/null_skey to the cpp file

This commit is contained in:
moneromooo-monero 2018-07-15 12:59:58 +01:00
parent eed4dba880
commit 63e342be84
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
2 changed files with 5 additions and 2 deletions

View File

@ -70,6 +70,9 @@ namespace crypto {
#include "random.h" #include "random.h"
} }
const crypto::public_key null_pkey = boost::value_initialized<crypto::public_key>();
const crypto::secret_key null_skey = boost::value_initialized<crypto::secret_key>();
static inline unsigned char *operator &(ec_point &point) { static inline unsigned char *operator &(ec_point &point) {
return &reinterpret_cast<unsigned char &>(point); return &reinterpret_cast<unsigned char &>(point);
} }

View File

@ -277,8 +277,8 @@ namespace crypto {
epee::to_hex::formatted(o, epee::as_byte_span(v)); return o; epee::to_hex::formatted(o, epee::as_byte_span(v)); return o;
} }
const static crypto::public_key null_pkey = boost::value_initialized<crypto::public_key>(); const extern crypto::public_key null_pkey;
const static crypto::secret_key null_skey = boost::value_initialized<crypto::secret_key>(); const extern crypto::secret_key null_skey;
} }
CRYPTO_MAKE_HASHABLE(public_key) CRYPTO_MAKE_HASHABLE(public_key)