LoginSignup
1
1

More than 3 years have passed since last update.

keccak256って何?

Posted at

まとめ

  • keccak256 = sha3
  • sha256 = sha2

※Solidity では keccak256sha256 を使う(= sha3sha2は使わない)ようになっているので、それに従うのが良いようです。

ツール毎の使い方

                        keccak256 (sha3)        sha256 (sha2)
                        ----------------        -------------
Solidity                keccak256               sha256

ethers.js               utils.keccak256         utils.sha256

web3.js                 utils.keccak256         NOT available
                        utils.sha3 (alias)

ethereumjs-util         keccak256               sha256
                        sha3 (alias)
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1