mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-02 03:53:14 +00:00
crypto: move null_pkey/null_skey to the cpp file
This commit is contained in:
parent
eed4dba880
commit
63e342be84
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue