forked from EvergreenCrypto/docker-finance
container: root: test: benchmark/unit: add bitcoin plugin support
- Adds test cases and benchmark for bitcoin's RNG via `dfi`'s `Random` * Currently only supports one of bitcoin's RNG's (`FastRandomContext`)
This commit is contained in:
@@ -90,6 +90,18 @@ struct RandomLibsodium_Impl
|
||||
using Random = ::dfi::crypto::libsodium::Random;
|
||||
Random random;
|
||||
};
|
||||
|
||||
#ifdef __DFI_PLUGIN_BITCOIN__
|
||||
//! \brief Bitcoin random implementation fixture
|
||||
//! \since docker-finance 1.1.0
|
||||
struct RandomBitcoin_Impl
|
||||
{
|
||||
protected:
|
||||
using Random = ::dfi::crypto::bitcoin::Random;
|
||||
Random random;
|
||||
};
|
||||
#endif
|
||||
|
||||
} // namespace tests
|
||||
} // namespace dfi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user