Convert hash digest to UInt256

If you want to avoid unsafe_load, and if performance is important, you might be better off with

bswap(reinterpret(UInt256, (x))[1])

rather than

reinterpret(UInt256, reverse(sha256(x)))[1]
1 Like