Closed cygnet3 closed 3 months ago
good point. Thanks!
@cygnet3 wait a minute, this will probably revert the bytes on every iteration flipping from BE to LE and back to BE encoding on every iteration. Will revert.
I see my bad, I'll make a new PR
I suggest using something like this https://github.com/setavenger/go-bip352/blob/master/util.go#L43 for now. I will integrate go-bip352 at some point but until then we can just do a quick helper function.
Just like the txid, the block hash bytes should be reversed after they are read from a hex string.