Questions tagged [sha3]

Regarding the use of the Secure Hash Algorithm SHA-3. Note that Ethereum and tools such as Solidity and web3.js uses Keccak-256.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
1k views

web3.utils.sha3 and web3.sha3 are not returning same hash

I am referring to example given in link. I will summarize the steps given in the example to save your time from reading. The example used below smart contract to demonstrate the web3.eth.getStorageAt()...
Pooja M Gupta's user avatar
2 votes
0 answers
444 views

Comparing solidity sha3 with web3 sha3 inside smart-contract

The problem is that sha3 in solidity returns bytes32 and I have a string returned from IPFS by oraclize, and if hash calculated in solidity and returned to web3js (bytes32 got interpreted as a string) ...
Andrew Katsewich's user avatar
2 votes
0 answers
916 views

On Ubuntu, I can't build sha3sum

I was following this article. When I saw that I've to have this keccak256-sum, I moved to this GitHub repo. But, when I am building it, it's giving below issue. $ make cc -Wall -Wextra -pedantic ...
Vixon's user avatar
  • 557
1 vote
0 answers
162 views

Does web3 soliditySha3 work with json object?

The above hash data is generated by web3 soliditySha3 with the objects below. It seems the function generates hashes as I wanted; each object has different hash value. But I am not sure if it's ...
Jake Lee's user avatar
0 votes
1 answer
100 views

Should you use keecak256 to hash labels in ENS?

I am curious how you would implement a smart contract which registers a (sub)domain on ens. The documentations I have found all specify that ENS uses SHA3 to hash the domains. I thought Keecak256 was ...
rajohs's user avatar
  • 179
0 votes
2 answers
462 views

How can i add a delegate on gnosis safe?

The code on the website here is not working for me: https://safe-docs.dev.gnosisdev.com/safe/docs/tutorial_tx_service_set_delegate/ I'm trying like this: import requests import time import sha3 ...
admin admin's user avatar
0 votes
1 answer
422 views

Why does web3j and javascript keccak256 return different hashes if '0x' is at the start of the string?

We are trying to build a merkle tree in web3j and put the root for verification into the smart contract. Due to this problem we can't generate the same route between web3j and solidity/js... In ...
Neil Collier's user avatar
0 votes
0 answers
173 views

Non ERC 20 coin sent by mistake to MyEtherWallet (MEW)

Newbie here - apologies for anything inappropriate and lack of tech expertise. I made a dumb mistake and sent some THETA tokens to a MEW Ether address. My bad - I had not realised that THETA had moved ...
Jester888's user avatar