Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Update crypto3, actor libs #91

Merged
merged 2 commits into from
Jun 4, 2024
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
10 changes: 5 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

env:
BOOST_VERSION: "1.78.0"
BOOST_VERSION: "1.80.0"
CAA_ARTIFACT_NAME: circuits-and-assignments
TO_ARTIFACT_NAME: transpiler-output
INTEGRATION_TESTING_TARGETS: |
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
(needs.prepare-targets.result == 'success' || needs.prepare-targets.result == 'skipped')
strategy:
matrix:
cpp-compiler: [ g++, clang++ ]
cpp-compiler: [ clang++ ] # TODO: g++ built binary can't find libboost_thread-mt-x64.so.1.83.0 in runtime. Nix build will fix it
build-type: [ Release ]
fail-fast: false
outputs:
Expand Down Expand Up @@ -234,6 +234,7 @@ jobs:
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
platform_version: ${{ steps.strings.outputs.platform-version }}
boost_install_dir: ${{ steps.strings.outputs.dependencies-dir }}
link: static+shared

- name: Configure CMake
env:
Expand All @@ -246,8 +247,7 @@ jobs:
-G "Unix Makefiles" \
-B build \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp-compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DBoost_ARCHITECTURE=-x64
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}

- name: Build proof-producer
working-directory: ${{ steps.strings.outputs.build-dir }}
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
${{ steps.strings.outputs.artifact-dir }}/transpiler_output_*

- name: Upload .deb package
if: matrix.cpp-compiler == 'g++' && matrix.build-type == 'Release'
if: matrix.cpp-compiler == 'clang++' && matrix.build-type == 'Release'
uses: actions/upload-artifact@v4
with:
name: proof-producer.deb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
CONTAINER_TMP: /opt/
HOST_TMP: /home/runner/work/_temp/
DEBIAN_FRONTEND: noninteractive
BOOST_VERSION: "1.83.0"
BOOST_VERSION: "1.80.0"

container:
image: ubuntu:22.04
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/reusable-generate-proofs-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
type: string
description: "Version of Boost to install"
required: false
default: '1.78.0'
default: '1.80.0'

outputs:
artifact-name:
Expand All @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
cpp-compiler: [ g++, clang++ ]
cpp-compiler: [ clang++ ] # TODO: g++ built binary can't find libboost_thread-mt-x64.so.1.83.0 in runtime. Nix build will fix it
build-type: [ Release ]
fail-fast: false
outputs:
Expand Down Expand Up @@ -133,6 +133,7 @@ jobs:
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
platform_version: ${{ steps.strings.outputs.platform-version }}
boost_install_dir: ${{ steps.strings.outputs.dependencies-dir }}
link: static+shared

- name: Configure CMake
env:
Expand All @@ -145,8 +146,7 @@ jobs:
-G "Unix Makefiles" \
-B build \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp-compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DBoost_ARCHITECTURE=-x64
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}

- name: Build proof-producer
working-directory: ${{ steps.strings.outputs.build-dir }}
Expand Down Expand Up @@ -180,11 +180,9 @@ jobs:

- name: Upload circuits, assignments and proofs artifact
# Only from a single matrix configuration. Assuming everyone produce the same results if not failed.
if: matrix.cpp-compiler == 'g++' && matrix.build-type == 'Release'
if: matrix.cpp-compiler == 'clang++' && matrix.build-type == 'Release'
uses: actions/upload-artifact@v3
with:
name: ${{ steps.set-artifact-name.outputs.artifact-name }}
path: |
${{ steps.strings.outputs.artifact-dir }}


44 changes: 14 additions & 30 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,53 +1,37 @@
#---------------------------------------------------------------------------#
# Copyright (c) 2022 Mikhail Komarov <[email protected]>
# Copyright (c) 2022 Aleksei Moskvin <[email protected]>
# Copyright (c) 2024 Iosif (x-mass) <[email protected]>
#
# Distributed under the Boost Software License, Version 1.0
# See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt
#---------------------------------------------------------------------------#

cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake"
"${CMAKE_CURRENT_LIST_DIR}/cmake/packages"
"${CMAKE_CURRENT_LIST_DIR}/cmake/modules/share/modules/cmake"
)

cmake_policy(SET CMP0042 NEW)
cmake_policy(SET CMP0028 NEW)
cmake_policy(SET CMP0057 NEW)

find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake"
"${CMAKE_CURRENT_LIST_DIR}/cmake/packages"
"${CMAKE_CURRENT_LIST_DIR}/cmake/modules/share/modules/cmake")

include(CMConfig)
include(CMDeploy)
include(CMSetupVersion)
include_directories(${Boost_INCLUDE_DIRS})

cm_workspace(proof-producer)

option(BUILD_TESTS "Build unit tests" FALSE)
option(BUILD_EXAMPLES "Build unit tests" FALSE)

macro(cm_find_package NAME)
if(NOT "${NAME}" MATCHES "^${CMAKE_WORKSPACE_NAME}_.*$" AND NOT "${NAME}" STREQUAL CM)
find_package(${ARGV})
else()
set(${ARGV0}_FOUND ON CACHE BOOL "")
endif()
endmacro()
cm_project(proof-generator WORKSPACE_NAME ${CMAKE_WORKSPACE_NAME} LANGUAGES CXX)

option(BUILD_TESTS "Build unit tests" FALSE)
option(BUILD_SHARED_LIBS "Build shared library" TRUE)
option(BUILD_WITH_BOOST_STATIC_LIBS "Build using Boost static libraries" TRUE)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")

if(BUILD_WITH_BOOST_STATIC_LIBS)
set(Boost_USE_STATIC_LIBS TRUE)
else()
set(Boost_USE_STATIC_LIBS FALSE)
# TODO: move thread to actor-core
find_package(Boost REQUIRED COMPONENTS filesystem log program_options thread)
if(ENABLE_TESTS)
find_package(Boost REQUIRED COMPONENTS unit_test_framework)
endif()

# EXCLUDE_FROM_ALL is needed so crypto3 and other headers won't be installed
Expand Down
37 changes: 8 additions & 29 deletions bin/proof-generator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@
# http://www.boost.org/LICENSE_1_0.txt
#---------------------------------------------------------------------------#

cmake_minimum_required(VERSION 3.5)

cm_find_package(CM)
include(CMDeploy)
include(CMSetupVersion)

cm_project(proof-generator WORKSPACE_NAME ${CMAKE_WORKSPACE_NAME} LANGUAGES ASM C CXX)

if (CPACK_PACKAGE_VERSION)
add_compile_definitions(PROOF_GENERATOR_VERSION=${CPACK_PACKAGE_VERSION})
endif()
Expand All @@ -32,12 +27,6 @@ if(ZK_PLACEHOLDER_DEBUG)
add_definitions(-DZK_PLACEHOLDER_DEBUG_ENABLED)
endif()

if (NOT Boost_FOUND)
find_package(Boost COMPONENTS REQUIRED filesystem log log_setup program_options thread system)
endif ()

cm_setup_version(VERSION 0.1.0)

# Function to setup common properties for a target
function(setup_proof_generator_target)
set(options "")
Expand All @@ -59,13 +48,18 @@ function(setup_proof_generator_target)
endforeach()
endif()


set_target_properties(${ARG_TARGET_NAME} PROPERTIES
LINKER_LANGUAGE CXX
EXPORT_NAME ${ARG_TARGET_NAME}
CXX_STANDARD 17
CXX_STANDARD_REQUIRED TRUE)

if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(${ARG_TARGET_NAME} PRIVATE "-fconstexpr-steps=2147483647")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(${ARG_TARGET_NAME} PRIVATE "-fconstexpr-ops-limit=4294967295")
endif ()

target_include_directories(${ARG_TARGET_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand All @@ -92,29 +86,14 @@ function(setup_proof_generator_target)
Boost::program_options
Boost::thread
)

if (APPLE OR NOT ${CMAKE_TARGET_ARCHITECTURE} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
set_target_properties(${CURRENT_PROJECT_NAME} PROPERTIES
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "${APPLE_CODE_SIGN_IDENTITY}"
XCODE_ATTRIBUTE_DEVELOPMENT_TEAM "${CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM}")
elseif (CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
set_target_properties(${CURRENT_PROJECT_NAME} PROPERTIES
COMPILE_FLAGS "-s USE_BOOST_HEADERS=1 -s USE_PTHREADS -s PROXY_TO_PTHREAD"
LINK_FLAGS "-s USE_BOOST_HEADERS=1 -s USE_PTHREADS -s PROXY_TO_PTHREAD"
LINK_DIRECTORIES "${CMAKE_BINARY_DIR}/libs/boost/src/boost/stage/lib")
endif ()

add_dependencies(${CURRENT_PROJECT_NAME} boost)
endif ()
endfunction()

# Declare single-threaded target
set(SINGLE_THREADED_TARGET "${CURRENT_PROJECT_NAME}-single-threaded")
setup_proof_generator_target(TARGET_NAME ${SINGLE_THREADED_TARGET} ADDITIONAL_DEPENDENCIES crypto3::zk)

# Declare multi-threaded target
# set(MUTLI_THREADED_TARGET "${CURRENT_PROJECT_NAME}-multi-threaded")
# setup_proof_generator_target(TARGET_NAME ${MUTLI_THREADED_TARGET} ADDITIONAL_DEPENDENCIES actor::zk)
set(MUTLI_THREADED_TARGET "${CURRENT_PROJECT_NAME}-multi-threaded")
setup_proof_generator_target(TARGET_NAME ${MUTLI_THREADED_TARGET} ADDITIONAL_DEPENDENCIES actor::zk)

install(TARGETS ${SINGLE_THREADED_TARGET} ${MUTLI_THREADED_TARGET} RUNTIME DESTINATION bin)
2 changes: 0 additions & 2 deletions bin/proof-generator/include/nil/proof-generator/prover.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <sstream>

#include <boost/log/trivial.hpp>
#include <boost/test/unit_test.hpp> // TODO: remove this. Required only because of an incorrect assert check in zk

#include <nil/crypto3/algebra/fields/arithmetic_params/pallas.hpp>
#include <nil/crypto3/marshalling/zk/types/commitments/eval_storage.hpp>
Expand All @@ -35,7 +34,6 @@
#include <nil/crypto3/marshalling/zk/types/plonk/assignment_table.hpp>
#include <nil/crypto3/marshalling/zk/types/plonk/constraint_system.hpp>
#include <nil/crypto3/math/algorithms/calculate_domain_set.hpp>
#include <nil/crypto3/multiprecision/cpp_int.hpp>
#include <nil/crypto3/zk/snark/arithmetization/plonk/constraint_system.hpp>
#include <nil/crypto3/zk/snark/arithmetization/plonk/params.hpp>
#include <nil/crypto3/zk/snark/systems/plonk/placeholder/detail/placeholder_policy.hpp>
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules
2 changes: 1 addition & 1 deletion libs/actor/container
Submodule container updated 96 files
+0 −3 .gitmodules
+1 −10 CMakeLists.txt
+0 −3 cmake/modules/.gitattributes
+0 −50 cmake/modules/.travis.yml
+0 −7 cmake/modules/CMakeLists.txt
+0 −29 cmake/modules/README.md
+0 −38 cmake/modules/appveyor.yml
+0 −333 cmake/modules/doc/conf.py
+0 −14 cmake/modules/doc/index.rst
+0 −281 cmake/modules/doc/make.bat
+0 −2 cmake/modules/doc/requirements.txt
+0 −319 cmake/modules/doc/src/Building.rst
+0 −28 cmake/modules/doc/src/CMDeploy.rst
+0 −31 cmake/modules/doc/src/CMExport.rst
+0 −15 cmake/modules/doc/src/CMIgnorePackage.rst
+0 −25 cmake/modules/doc/src/CMInstallTargets.rst
+0 −59 cmake/modules/doc/src/CMPkgConfig.rst
+0 −65 cmake/modules/doc/src/CMProperties.rst
+0 −33 cmake/modules/doc/src/CMSetupVersion.rst
+0 −89 cmake/modules/doc/src/CMTest.rst
+0 −89 cmake/modules/doc/src/Intro.rst
+0 −15 cmake/modules/doc/src/Modules.rst
+0 −144 cmake/modules/share/modules/cmake/CMConfig.cmake
+0 −48 cmake/modules/share/modules/cmake/CMDeploy.cmake
+0 −147 cmake/modules/share/modules/cmake/CMExport.cmake
+0 −87 cmake/modules/share/modules/cmake/CMFuture.cmake
+0 −6 cmake/modules/share/modules/cmake/CMIgnorePackage.cmake
+0 −43 cmake/modules/share/modules/cmake/CMInstallTargets.cmake
+0 −250 cmake/modules/share/modules/cmake/CMPkgConfig.cmake
+0 −98 cmake/modules/share/modules/cmake/CMProperties.cmake
+0 −52 cmake/modules/share/modules/cmake/CMSetupVersion.cmake
+0 −232 cmake/modules/share/modules/cmake/CMTest.cmake
+0 −11 cmake/modules/share/modules/cmake/CMToSnakeCase.cmake
+0 −10 cmake/modules/share/modules/cmake/version.hpp
+0 −43 cmake/modules/test/CMakeLists.txt
+0 −21 cmake/modules/test/basicapp/CMakeLists.txt
+0 −6 cmake/modules/test/basicapp/main.cpp
+0 −12 cmake/modules/test/checkprop/CMakeLists.txt
+0 −1 cmake/modules/test/fail/simple-test.cmake
+0 −15 cmake/modules/test/findpackagecheck/CMakeLists.txt
+0 −4 cmake/modules/test/findpackagecheck/main.cpp.in
+0 −21 cmake/modules/test/libbasic/CMakeLists.txt
+0 −6 cmake/modules/test/libbasic/main.cpp
+0 −2 cmake/modules/test/libbasic/test.cpp
+0 −21 cmake/modules/test/libbasicnamespace/CMakeLists.txt
+0 −5 cmake/modules/test/libbasicnamespace/main.cpp
+0 −2 cmake/modules/test/libbasicnamespace/test.cpp
+0 −51 cmake/modules/test/libsimple/CMakeLists.txt
+0 −7 cmake/modules/test/libsimple/compiletest.cpp
+0 −6 cmake/modules/test/libsimple/compiletestwillfail.cpp
+0 −22 cmake/modules/test/libsimple/include/simple.h
+0 −5 cmake/modules/test/libsimple/test.cpp
+0 −6 cmake/modules/test/libsimple/testwillfail.cpp
+0 −29 cmake/modules/test/libsimplecustomname/CMakeLists.txt
+0 −7 cmake/modules/test/libsimplecustomname/compiletest.cpp
+0 −8 cmake/modules/test/libsimplecustomname/include/simple.h
+0 −5 cmake/modules/test/libsimplecustomname/test.cpp
+0 −28 cmake/modules/test/libsimplenamespace/CMakeLists.txt
+0 −7 cmake/modules/test/libsimplenamespace/compiletest.cpp
+0 −12 cmake/modules/test/libsimplenamespace/include/simple.h
+0 −5 cmake/modules/test/libsimplenamespace/test.cpp
+0 −32 cmake/modules/test/parseversion/CMakeLists.txt
+0 −7 cmake/modules/test/parseversion/compiletest.cpp
+0 −10 cmake/modules/test/parseversion/include/simple.h
+0 −8 cmake/modules/test/parseversion/include/version.h
+0 −5 cmake/modules/test/parseversion/test.cpp
+0 −6 cmake/modules/test/pass/basic.cmake
+0 −15 cmake/modules/test/pass/defaultproperties.cmake
+0 −1 cmake/modules/test/pass/parseversion.cmake
+0 −1 cmake/modules/test/pass/properties.cmake
+0 −4 cmake/modules/test/pass/simple-shared.cmake
+0 −3 cmake/modules/test/pass/simple-test-build.cmake
+0 −3 cmake/modules/test/pass/simple-test-shared.cmake
+0 −3 cmake/modules/test/pass/simple-test.cmake
+0 −4 cmake/modules/test/pass/simple.cmake
+0 −2 cmake/modules/test/pass/simplecustomname.cmake
+0 −2 cmake/modules/test/pass/simplenamespace.cmake
+0 −5 cmake/modules/test/pass/superproject.cmake
+0 −46 cmake/modules/test/pkgconfigcheck/CMakeLists.txt
+0 −67 cmake/modules/test/properties/CMakeLists.txt
+0 −8 cmake/modules/test/properties/include/simple.h
+0 −5 cmake/modules/test/properties/nowarnings.cpp
+0 −20 cmake/modules/test/properties/rtti.cpp
+0 −5 cmake/modules/test/properties/test.cpp
+0 −6 cmake/modules/test/properties/throw.cpp
+0 −9 cmake/modules/test/properties/warnings.cpp
+0 −26 cmake/modules/test/simpletest/CMakeLists.txt
+0 −1 cmake/modules/test/simpletest/include/simple.h
+0 −4 cmake/modules/test/simpletest/simple.cpp
+0 −5 cmake/modules/test/simpletest/test.cpp
+0 −7 cmake/modules/test/simpletest/test/CMakeLists.txt
+0 −5 cmake/modules/test/simpletest/test/test.cpp
+0 −10 cmake/modules/test/superproject/CMakeLists.txt
+0 −124 cmake/modules/test/test.cmake
+8 −1 test/CMakeLists.txt
+10 −10 test/merkle/merkle.cpp
2 changes: 1 addition & 1 deletion libs/actor/math
Submodule math updated 31 files
+112 −6 include/nil/crypto3/math/algorithms/unity_root.hpp
+16 −3 include/nil/crypto3/math/detail/field_utils.hpp
+12 −8 include/nil/crypto3/math/domains/basic_radix2_domain.hpp
+3 −3 include/nil/crypto3/math/domains/detail/basic_radix2_domain_aux.hpp
+4 −4 include/nil/crypto3/math/domains/evaluation_domain.hpp
+1 −1 include/nil/crypto3/math/domains/step_radix2_domain.hpp
+0 −96 include/nil/crypto3/math/expressions/ast.hpp
+0 −47 include/nil/crypto3/math/expressions/ast_adapted.hpp
+0 −175 include/nil/crypto3/math/expressions/evaluator.hpp
+0 −129 include/nil/crypto3/math/expressions/expression.hpp
+0 −171 include/nil/crypto3/math/expressions/math.hpp
+0 −63 include/nil/crypto3/math/expressions/parser.hpp
+0 −322 include/nil/crypto3/math/expressions/parser_def.hpp
+105 −18 include/nil/crypto3/math/polynomial/basic_operations.hpp
+178 −0 include/nil/crypto3/math/polynomial/cyclotomic.hpp
+6 −6 include/nil/crypto3/math/polynomial/lagrange_interpolation.hpp
+21 −21 include/nil/crypto3/math/polynomial/polynomial.hpp
+78 −62 include/nil/crypto3/math/polynomial/polynomial_dfs.hpp
+1 −1 include/nil/crypto3/math/polynomial/polynomial_dfs_view.hpp
+1 −1 include/nil/crypto3/math/polynomial/polynomial_view.hpp
+7 −7 include/nil/crypto3/math/polynomial/shift.hpp
+4 −1 test/CMakeLists.txt
+33 −0 test/benchmarks/CMakeLists.txt
+215 −0 test/benchmarks/polynomial_dfs_benchmark.cpp
+22 −10 test/evaluation_domain.cpp
+0 −85 test/expression.cpp
+140 −120 test/polynomial.cpp
+63 −49 test/polynomial_arithmetic.cpp
+649 −612 test/polynomial_dfs.cpp
+300 −300 test/polynomial_dfs_view.cpp
+57 −50 test/polynomial_view.cpp
2 changes: 1 addition & 1 deletion libs/actor/zk
Submodule zk updated 58 files
+3 −121 CMakeLists.txt
+4 −0 README.md
+1 −1 cmake/modules
+2 −2 include/nil/crypto3/zk/commitments/batched_commitment.hpp
+47 −42 include/nil/crypto3/zk/commitments/detail/polynomial/basic_batched_fri_compile_time_size.hpp
+36 −32 include/nil/crypto3/zk/commitments/detail/polynomial/basic_batched_fri_runtime_size.hpp
+37 −44 include/nil/crypto3/zk/commitments/detail/polynomial/basic_fri.hpp
+20 −5 include/nil/crypto3/zk/commitments/detail/polynomial/element_knowledge_commitment.hpp
+3 −3 include/nil/crypto3/zk/commitments/detail/polynomial/fold_polynomial.hpp
+4 −3 include/nil/crypto3/zk/commitments/polynomial/fri.hpp
+2 −2 include/nil/crypto3/zk/commitments/polynomial/knowledge_commitment_multiexp.hpp
+57 −20 include/nil/crypto3/zk/commitments/polynomial/kzg.hpp
+44 −8 include/nil/crypto3/zk/commitments/polynomial/kzg_v2.hpp
+5 −5 include/nil/crypto3/zk/commitments/polynomial/lpc.hpp
+111 −0 include/nil/crypto3/zk/detail/field_element_consumer.hpp
+6 −0 include/nil/crypto3/zk/snark/arithmetization/plonk/constraint.hpp
+52 −0 include/nil/crypto3/zk/snark/arithmetization/plonk/constraint_system.hpp
+15 −40 include/nil/crypto3/zk/snark/arithmetization/plonk/copy_constraint.hpp
+5 −0 include/nil/crypto3/zk/snark/arithmetization/plonk/table_description.hpp
+8 −3 include/nil/crypto3/zk/snark/arithmetization/plonk/variable.hpp
+143 −26 include/nil/crypto3/zk/snark/systems/plonk/placeholder/detail/profiling.hpp
+9 −1 include/nil/crypto3/zk/snark/systems/plonk/placeholder/detail/transcript_initialization_context.hpp
+6 −2 include/nil/crypto3/zk/snark/systems/plonk/placeholder/gates_argument.hpp
+25 −24 include/nil/crypto3/zk/snark/systems/plonk/placeholder/lookup_argument.hpp
+5 −8 include/nil/crypto3/zk/snark/systems/plonk/placeholder/permutation_argument.hpp
+1 −1 include/nil/crypto3/zk/snark/systems/plonk/placeholder/preprocessor.hpp
+13 −11 include/nil/crypto3/zk/snark/systems/plonk/placeholder/prover.hpp
+6 −4 include/nil/crypto3/zk/snark/systems/plonk/placeholder/verifier.hpp
+0 −2 include/nil/crypto3/zk/snark/systems/ppzksnark/r1cs_gg_ppzksnark/ipp2/prover.hpp
+74 −36 include/nil/crypto3/zk/transcript/fiat_shamir.hpp
+14 −3 test/CMakeLists.txt
+6 −6 test/commitment/fold_polynomial.cpp
+2 −2 test/commitment/fri.cpp
+203 −201 test/commitment/kzg.cpp
+15 −15 test/commitment/lpc.cpp
+98 −0 test/include/nil/crypto3/zk/test_tools/random_test_initializer.hpp
+5 −5 test/math/expression.cpp
+32 −32 test/systems/plonk/pickles/kimchi.cpp
+353 −353 test/systems/plonk/pickles/pickles.cpp
+4 −4 test/systems/plonk/pickles/to_field.cpp
+3 −3 test/systems/plonk/pickles/to_group.cpp
+73 −70 test/systems/plonk/placeholder/circuits.hpp
+0 −422 test/systems/plonk/placeholder/performance.cpp
+0 −1,562 test/systems/plonk/placeholder/placeholder.cpp
+143 −0 test/systems/plonk/placeholder/placeholder_circuits.cpp
+91 −0 test/systems/plonk/placeholder/placeholder_curves.cpp
+210 −0 test/systems/plonk/placeholder/placeholder_gate_argument.cpp
+67 −0 test/systems/plonk/placeholder/placeholder_goldilocks.cpp
+83 −0 test/systems/plonk/placeholder/placeholder_hashes.cpp
+118 −0 test/systems/plonk/placeholder/placeholder_kzg.cpp
+408 −0 test/systems/plonk/placeholder/placeholder_lookup_argument.cpp
+304 −0 test/systems/plonk/placeholder/placeholder_permutation_argument.cpp
+74 −0 test/systems/plonk/placeholder/placeholder_quotient_polynomial_chunks.cpp
+268 −0 test/systems/plonk/placeholder/placeholder_test_runner.hpp
+11 −11 test/systems/plonk/plonk_constraint.cpp
+3,101 −3,101 test/systems/ppzksnark/r1cs_gg_ppzksnark/r1cs_gg_ppzksnark_aggregation_conformity.cpp
+227 −227 test/transcript/kimchi_transcript.cpp
+23 −10 test/transcript/transcript.cpp
2 changes: 1 addition & 1 deletion libs/crypto3
Submodule crypto3 updated 1817 files
12 changes: 10 additions & 2 deletions tests/make_proof_for_pairs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ make_proof_for_pair() {
if [ -f "$crct_file" ]; then
mkdir -p "$proof_dir" # Ensure the output directory exists
echo -n "Processing $tbl_file and $crct_file (proof will be at $proof_dir): "
if $proof_generator_binary -t "$tbl_file" --circuit "$crct_file" --proof "$proof_dir/proof.bin"; then
if $proof_generator_binary -t "$tbl_file" --circuit "$crct_file" --proof "$proof_dir/proof.bin" ${args_to_forward[@]}; then
color_green "success"
else
color_red "failed"
Expand All @@ -41,8 +41,9 @@ clean_up() {
parse_args() {
base_dir="."
output_dir=""
targets=()
use_multithreaded=false
args_to_forward=()
targets=()

while [ "$#" -gt 0 ]; do
case "$1" in
Expand All @@ -58,6 +59,13 @@ parse_args() {
use_multithreaded=true
shift
;;
--)
shift
while [ "$#" -gt 0 ]; do
args_to_forward+=("$1") # Collect remaining arguments
shift
done
;;
*)
targets+=("$1") # Add remaining arguments as targets
shift
Expand Down
Loading