How do I get the output of sha256 into a big integer? (Yes, I'm going to do math on it.) Everything I tried doesn't work.
str = "foo"
ihash = bc.number(utils.sha256(str))
Note("bc: " .. tostring(ihash))
shex = utils.tohex(utils.sha256(str))
Note("hex: " .. shex)
ihash = bc.number(shex)
Note("bc: " .. tostring(ihash))
shex = "0x" .. shex
ihash = bc.number(shex)
Note("bc: " .. tostring(ihash))