commonsmachinery / blockhash

blockhash.io
MIT License
86 stars 28 forks source link

C++11 implementation #18

Open fish2000 opened 8 years ago

fish2000 commented 8 years ago

Of possible interest: I have ported your implementation to C++11. All the relevant code is here in this one include file. Specifically it leverages iterators, C++11’s std::bitset, and RAII (nearly all allocations are on the stack). No benchmarks yet, and I am still tweaking the hexify function to match the output of your C99 code – but I thought someone might want to see it. Feedback is of course welcome!