macro: analyze Bitcoin's RNG #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A review of Bitcoin's RNG implementation has demonstrated that, in my opinion, there's no quick or easy refactor to get straight to the RNG itself.
The reasons being:
This is a
docker-financeissue because ROOT is not yet C++20 compatible and simply grabbing snippets of Bitcoin's RNG is simply not possible (or at least the juice is not worth the squeeze). With that said, what I personally find annoying is that Bitcoin's C++20 usage (within the scope of the RNG component) is somewhat trivial and could be re-implemented in C++17 or at least thrown into a larger#ifdeffor the sake of compatibility (in my most humblest, most-respectful of opinionated opinions).These grievances could be relayed upstream but... perhaps that's a road you could take on your own... or perhaps ROOT will become C++20 compatible before any Bitcoin changes are made... (and no, I will not kowtow to Python hooks because I don't believe that is a solution for the issue at hand).
Speaking of separation of concerns, why is any of this being done with
docker-finance?b621e87df2/container/src/root/src/internal/impl/random.hh (L124)Remember: this is modern finance or, what I like to call, "transcendental finance".
Updates:
libbitcoinkernel, a re-think here is possible.At the moment, point 3 renders the other points moot and leaves the only option of building and maintaining a c++20 or higher build here. That would require more hardware and maintenance on my end (it's a big'ish build). But, with that solution, point 1 would be resolved, point 2 would be free to explore and this issue could be resolved as well.
TBD.
Success :)
Details and caveats will be noted in the pull request, once it comes.