Skip to content

Commit

Permalink
Undo adding of crypto lib
Browse files Browse the repository at this point in the history
  • Loading branch information
pdobacz committed Nov 4, 2024
1 parent f4c4529 commit eb1db85
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 21 deletions.
1 change: 0 additions & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ find_package(intx CONFIG REQUIRED)
add_subdirectory(evmmax)
add_subdirectory(evmone)
add_subdirectory(evmone_precompiles)
add_subdirectory(crypto)
13 changes: 0 additions & 13 deletions lib/crypto/CMakeLists.txt

This file was deleted.

2 changes: 2 additions & 0 deletions lib/evmone_precompiles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ target_sources(
ripemd160.cpp
secp256k1.hpp
secp256k1.cpp
sha256.hpp
sha256.cpp
kzg.hpp
kzg.cpp
)
2 changes: 1 addition & 1 deletion lib/evmone_precompiles/kzg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

#pragma once
#include "../crypto/sha256.hpp"
#include "sha256.hpp"
#include <intx/intx.hpp>

namespace evmone::crypto
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/state/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

add_library(evmone-state STATIC)
add_library(evmone::state ALIAS evmone-state)
target_link_libraries(evmone-state PUBLIC evmc::evmc_cpp PRIVATE evmone evmone::precompiles ethash::keccak evmone::crypto)
target_link_libraries(evmone-state PUBLIC evmc::evmc_cpp PRIVATE evmone evmone::precompiles ethash::keccak)
target_include_directories(evmone-state PRIVATE ${evmone_private_include_dir})
target_sources(
evmone-state PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion test/state/precompiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#include "precompiles.hpp"
#include "precompiles_internal.hpp"
#include "precompiles_stubs.hpp"
#include <crypto/sha256.hpp>
#include <evmone_precompiles/blake2b.hpp>
#include <evmone_precompiles/bls.hpp>
#include <evmone_precompiles/bn254.hpp>
#include <evmone_precompiles/kzg.hpp>
#include <evmone_precompiles/ripemd160.hpp>
#include <evmone_precompiles/secp256k1.hpp>
#include <evmone_precompiles/sha256.hpp>
#include <intx/intx.hpp>
#include <array>
#include <bit>
Expand Down
3 changes: 2 additions & 1 deletion test/t8n/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ cable_add_buildinfo_library(PROJECT_NAME evmone)

add_executable(evmone-t8n)
target_link_libraries(evmone-t8n PRIVATE evmone::statetestutils nlohmann_json::nlohmann_json)
target_link_libraries(evmone-t8n PRIVATE evmc::evmc evmone evmone-buildinfo)
target_link_libraries(evmone-t8n PRIVATE evmc::evmc evmone evmone-buildinfo evmone::precompiles)
target_include_directories(evmone-t8n PRIVATE ${evmone_private_include_dir})
target_sources(evmone-t8n PRIVATE t8n.cpp)
2 changes: 1 addition & 1 deletion test/t8n/t8n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Copyright 2023 The evmone Authors.
// SPDX-License-Identifier: Apache-2.0

#include "../lib/crypto/sha256.hpp"
#include "../state/errors.hpp"
#include "../state/ethash_difficulty.hpp"
#include "../state/mpt_hash.hpp"
Expand All @@ -11,6 +10,7 @@
#include "../utils/utils.hpp"
#include <evmone/evmone.h>
#include <evmone/version.h>
#include <evmone_precompiles/sha256.hpp>
#include <nlohmann/json.hpp>
#include <filesystem>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/precompiles_kzg_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Copyright 2024 The evmone Authors.
// SPDX-License-Identifier: Apache-2.0

#include <crypto/sha256.hpp>
#include <evmc/evmc.hpp>
#include <evmone_precompiles/kzg.hpp>
#include <evmone_precompiles/sha256.hpp>
#include <gtest/gtest.h>
#include <intx/intx.hpp>
#include <span>
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/precompiles_sha256_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright 2024 The evmone Authors.
// SPDX-License-Identifier: Apache-2.0

#include <crypto/sha256.hpp>
#include <evmc/hex.hpp>
#include <evmone_precompiles/sha256.hpp>
#include <gtest/gtest.h>

using evmone::crypto::sha256;
Expand Down

0 comments on commit eb1db85

Please sign in to comment.