diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-06 20:24:36 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-10-06 22:34:41 +0800 |
commit | 111d33d7aced317605fd88c74b01ffbc6ab266c7 (patch) | |
tree | fb1b64e7b4a3f20327b8514baadae6151c1f19e4 /docs/contracts.rst | |
parent | 34df80c502c5e20fda6db1d2152beccdfb3342cc (diff) | |
download | dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.gz dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.bz2 dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.lz dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.xz dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.tar.zst dexon-solidity-111d33d7aced317605fd88c74b01ffbc6ab266c7.zip |
Rename sha3 to keccak256 in the documentation
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r-- | docs/contracts.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst index ef29a686..986d05b3 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -136,7 +136,7 @@ This means that cyclic creation dependencies are impossible. ) returns (bool ok) { // Check some arbitrary condition. address tokenAddress = msg.sender; - return (sha3(newOwner) & 0xff) == (bytes20(tokenAddress) & 0xff); + return (keccak256(newOwner) & 0xff) == (bytes20(tokenAddress) & 0xff); } } @@ -544,7 +544,7 @@ to be searched for: It is possible to filter for specific values of indexed arguments in the user interface. If arrays (including ``string`` and ``bytes``) are used as indexed arguments, the -sha3-hash of it is stored as topic instead. +Keccak-256 hash of it is stored as topic instead. The hash of the signature of the event is one of the topics except if you declared the event with ``anonymous`` specifier. This means that it is @@ -622,7 +622,7 @@ as topics. The event call above can be performed in the same way as ); where the long hexadecimal number is equal to -``sha3("Deposit(address,hash256,uint256)")``, the signature of the event. +``keccak256("Deposit(address,hash256,uint256)")``, the signature of the event. Additional Resources for Understanding Events ============================================== |