struct library \
{ \
static constexpr const char*
name() noexcept {
return BOOST_PP_STRINGIZE(library); } \
static bool generate_key_derivation(const ::crypto::public_key &tx_pub, const ::crypto::secret_key &view_sec,
::crypto::key_derivation &out) \
{ \
return CRYPTO_FUNCTION(library, _generate_key_derivation) (out.data, tx_pub.data, view_sec.data) == 0; \
} \
{ \
::crypto::derivation_to_scalar(d, index, scalar); \
return CRYPTO_FUNCTION(library, _generate_subaddress_public_key) (
out.data, spend_pub.data, scalar.data) == 0; \
} \
};
bool derive_subaddress_public_key(const public_key &out_key, const key_derivation &derivation, std::size_t output_index, public_key &result)
Definition crypto.h:246
POD_CLASS key_derivation
Definition crypto.h:91
POD_CLASS public_key
Definition crypto.h:64
POD_CLASS ec_scalar
Definition crypto.h:59
@ out
Definition message_store.h:75
const char * name
Definition options.c:30
#define CRYPTO_FUNCTION(library, func)
Definition benchmark.cpp:83