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:
2025-12-17 14:16:48 -08:00
parent 0bf4c359b1
commit c3d128ea62
3 changed files with 70 additions and 3 deletions

View File

@@ -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