2

Is it possible to choose another SHA algorithm - say SHA256 - in Solidity? Anyone having issues with NIST compliance?

2

SHA256 is built in to Solidity, you use it the same way you call keccak, just

sha256(my_data)

It is slightly more expensive than keccak, but if you need NIST compliant hashes, SHA256 is the way to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.