Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions lib/evmone_precompiles/keccak.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,3 @@ union ethash_hash256 ethash_keccak256(const uint8_t* data, size_t size)
keccak(hash.word64s, 256, data, size);
return hash;
}

union ethash_hash256 ethash_keccak256_32(const uint8_t data[32])
{
union ethash_hash256 hash;
keccak(hash.word64s, 256, data, 32);
return hash;
}
1 change: 0 additions & 1 deletion lib/evmone_precompiles/keccak.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extern "C" {
#endif

union ethash_hash256 ethash_keccak256(const uint8_t* data, size_t size) noexcept;
union ethash_hash256 ethash_keccak256_32(const uint8_t data[32]) noexcept;

#ifdef __cplusplus
}
Expand Down
7 changes: 0 additions & 7 deletions lib/evmone_precompiles/keccak.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,4 @@ inline hash256 keccak256(const uint8_t* data, size_t size) noexcept
return ethash_keccak256(data, size);
}

inline hash256 keccak256(const hash256& input) noexcept
{
return ethash_keccak256_32(input.bytes);
}

static constexpr auto keccak256_32 = ethash_keccak256_32;

} // namespace ethash