keccak is a cryptographic family which is used in ethereum and nowerdays provides the standards for sha-3
Questions tagged [keccak]
201 questions
3
votes
1 answer
Running Solidity's keccak256 in python
I want to run Soliditykeccak256(abi.encodePacked(challenge_number, msg.sender, nonce)) where nonce is uint256, challenge_digest is bytes32, challenge_number bytes32, testTarget is uint.
What's the analog of this in python? I've already connected to…
financial_physician
- 285
- 1
- 11
2
votes
1 answer
Incorrect result for hash calculation
According to this link, [https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md][1].
The "signing data" becomes:
0xec098504a817c800825208943535353535353535353535353535353535353535880de0b6b3a764000080018080
The "signing hash"…
dbdbd
- 21
- 3
2
votes
2 answers
Which sha3 output is the correct one?
Im trying to rewrite the all ethereum address creation and Tx creation in PHP and Im almost there. I have implemented a sha3 but now Im confused on if its giving me the correct output because it seems ethereum sha3 implemenations lack consistency…
ofumbi
- 133
- 4
2
votes
1 answer
How to make ethereum address from public key?
I want to manually create ethereum addres from any str message like that:
const msg = '00'
const pk = bytesToHex(sha256(msg))
//pk is f1534392279bddbf9d43dde8701cb5be14b82f76ec6607bf8d6ad557f60f304e
const pub =…
gazoblock
- 336
- 2
- 5
0
votes
2 answers
How do I get the correct 4bytes?
I'm using this tool to get the keccak 256 hash:
https://emn178.github.io/online-tools/keccak_256.html
However I'm trying to the 4bytes for executeOrder.
The executeOrder function signature is this:
function…
caker
- 185
- 1
- 2
- 7
0
votes
1 answer
Same value for keccak256 in different contracts
In Solidity, let's say there are two contracts A and B with the same code as in the following example. By the way, do they return the same bytes32 value when retrieving ROLE? Why do we use keccak256 if they do?
// SPDX-License-Identifier: MIT
pragma…
Shift_that
- 375
- 3
- 10