@@ -137,11 +137,9 @@ namespace nil {
137137 };
138138
139139 virtual void generate () {
140+ std::string blueprint_path = BLUEPRINT_PATH;
140141 this ->_table = components::detail::load_sha_table<BlueprintFieldType>(
141- {" 8_split_4.txt" ,
142- " ./../libs/crypto3/libs/blueprint/include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_4.txt" ,
143- " ./../libs/blueprint/include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_4.txt" ,
144- " ./../../../../libs/blueprint/include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_4.txt" });
142+ {blueprint_path + " /include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_4.txt" });
145143 if (this ->_table .size () == 0 || this ->_table [0 ].size () == 0 ) {
146144 std::cerr << " Failed to load table 8_split_4.txt!"
147145 " Please check the paths and generate the table."
@@ -188,11 +186,9 @@ namespace nil {
188186 this ->subtables [" full" ] = {{0 ,1 }, 0 , 43903 };
189187 };
190188 virtual void generate () {
189+ std::string blueprint_path = BLUEPRINT_PATH;
191190 this ->_table = components::detail::load_sha_table<BlueprintFieldType>(
192- {" 8_split_7.txt" ,
193- " ./../libs/crypto3/libs/blueprint/include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_7.txt" ,
194- " ./../libs/blueprint/include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_7.txt" ,
195- " ./../../../../libs/blueprint/include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_7.txt" });
191+ {blueprint_path + " /include/nil/blueprint/components/hashes/sha2/plonk/detail/8_split_7.txt" });
196192 if (this ->_table .size () == 0 || this ->_table [0 ].size () == 0 ) {
197193 std::cerr << " Failed to load table 8_split_7.txt!"
198194 " Please check the paths and generate the table."
0 commit comments