Runtime sha256
should work for arbitrary strings even with length >= 128
#1056
Labels
Milestone
sha256
should work for arbitrary strings even with length >= 128
#1056
sha256
at run-time uses theSHA256U
TVM instruction, which only works with data with up to 1023 bits, so strings of length 128 bytes basically get truncated. This is confusing for smart-contract authors because it breaks the abstraction of theString
type. Since we allow strings with more than 127 characters, thosesha256
should work on those.See also, #1085
The text was updated successfully, but these errors were encountered: