mirror of https://github.com/status-im/nim-eth.git
keccak doesn't need `init` (#693)
This commit is contained in:
parent
c02e050db8
commit
b9b522f7ac
|
@ -34,7 +34,6 @@ func keccakHash*(input: openArray[byte]): KeccakHash {.noinit.} =
|
|||
# We use the init-update-finish interface to avoid
|
||||
# the expensive burning/clearing memory (20~30% perf)
|
||||
var ctx: keccak256
|
||||
ctx.init()
|
||||
ctx.update(input)
|
||||
ctx.finish()
|
||||
|
||||
|
|
Loading…
Reference in New Issue