Merge pull request #1124 from ConsenSys/speedup/sha

put hash for sha keccak()
pull/1125/head
Bernhard Mueller 5 years ago committed by GitHub
commit 02217dede7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mythril/laser/ethereum/instructions.py

@ -931,9 +931,9 @@ class Instruction:
if isinstance(b, BitVec):
annotations = annotations.union(b.annotations)
argument_str = str(state.memory[index]).replace(" ", "_")
argument_hash = hash(state.memory[index])
result = symbol_factory.BitVecFuncSym(
"KECCAC[{}]".format(argument_str),
"KECCAC[invhash({})]".format(hash(argument_hash)),
"keccak256",
256,
input_=data,

Loading…
Cancel
Save