chikvdf 1.2.2__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- chikvdf-1.2.3/.github/actions/ensure-modern-clang/action.yml +94 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/scripts/dcr_fetch.py +21 -2
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/workflows/build-client.yml +7 -5
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/workflows/build.yml +22 -8
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/workflows/codeql-analysis.yml +2 -2
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/workflows/rust.yml +9 -1
- {chikvdf-1.2.2 → chikvdf-1.2.3}/Cargo.lock +1 -1
- {chikvdf-1.2.2 → chikvdf-1.2.3}/PKG-INFO +77 -3
- {chikvdf-1.2.2 → chikvdf-1.2.3}/README.md +75 -1
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf.egg-info/PKG-INFO +77 -3
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf.egg-info/SOURCES.txt +2 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf.egg-info/scm_file_list.json +2 -0
- chikvdf-1.2.3/chikvdf.egg-info/scm_version.json +8 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/Cargo.toml +1 -1
- {chikvdf-1.2.2 → chikvdf-1.2.3}/setup.py +12 -6
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/CMakeLists.txt +10 -0
- chikvdf-1.2.3/src/verify_vdf_corpus.cpp +336 -0
- chikvdf-1.2.2/chikvdf.egg-info/scm_version.json +0 -8
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.flake8 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/actions/install-inno-setup/action.yml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/actions/publish-github-release/action.yml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/actions/publish-github-release/manifests/chikvdf.txt +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/actions/publish-github-release/manifests/chikvdfc.txt +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/actions/publish-github-release/publish.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/actions/release-policy/action.yml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/actions/release-policy/policy.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/scripts/__init__.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/scripts/check_node_runtime.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/scripts/dcr_prompt.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/scripts/dcr_verdict.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/workflows/build-c-libraries.yml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/workflows/build-packages.yml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.github/workflows/build-riscv64.yml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/.gitignore +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/Cargo.toml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/LICENSE +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/README_ASIC.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/README_AVX512.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/README_BACKGROUND_COMPETITION.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/SECURITY.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/assets/deb/control.j2 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/assets/macos-release-bundle.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/assets/windows-installer.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/assets/windows-release-signing.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf/__init__.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf/__init__.pyi +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf/py.typed +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf.egg-info/dependency_links.txt +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf.egg-info/not-zip-safe +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/chikvdf.egg-info/top_level.txt +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/classgroups.pdf +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/comparenweso.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/installer/windows/chikvdf.iss +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/lgtm.yml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/mypi.ini +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/pyproject.toml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/build.rs +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/fuzz/.gitignore +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/fuzz/Cargo.toml +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/fuzz/fuzz_targets/create_discriminant.rs +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/fuzz/fuzz_targets/prove.rs +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/fuzz/fuzz_targets/verify.rs +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/fuzz/fuzz_targets/verify_n_wesolowski.rs +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/src/lib.rs +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/rust_bindings/wrapper.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/build-macos-gmp.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/check-macos-gmp-build.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/get-libft4222.ps1 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/get-libft4222.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/get-mpir-gc-x64.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/macos-bundle-tools.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/macos-gmp-release.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/macos-install-names.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/mpir_gc_x64.commit +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/package-macos-bundle.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/package-macos-pkg.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/package-windows-bundle.ps1 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/select-macos-signing-identities.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/sign-windows-file.ps1 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/stage-macos-bundle-dylibs.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/verify-macos-bundle.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/windows-ftdi-driver.ps1 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/windows-installer.ps1 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/scripts/windows-pe.ps1 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/setup.cfg +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/1weso_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/2weso_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/ClassGroup.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/Makefile.vdf-client +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/Reducer.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/alloc.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_avx512_ifma.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_base.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_gcd_128.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_gcd_base_continued_fractions.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_gcd_base_divide_table.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_gcd_unsigned.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_main.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_types.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/asm_vm.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/avx512_integer.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/avx512_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/bit_manipulation.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/bqfc.c +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/bqfc.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/c_bindings/c_wrapper.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/c_bindings/c_wrapper.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/c_bindings/readme.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/callback.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/checked_cast.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/checked_cast_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/chikvdf_profile.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/cmake/FindGMP.cmake +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/cmake/FindGMPXX.cmake +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/compile_asm.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/create_discriminant.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/discriminant_bounds_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/double_utility.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/fast_storage.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/fastpow_nucomp_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/gcd_128.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/gcd_base_continued_fractions.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/gcd_base_divide_table.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/gcd_unsigned.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/generic.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/generic_macros.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/gpu_integer.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/gpu_integer_divide.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/gpu_integer_gcd.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/chik_driver.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/chik_driver.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/chik_registers.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/clock.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/emu_ftdi_test.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/emu_funcs.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/emu_runner.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/emu_runner.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/ftdi_driver.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/ftdi_driver.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/ftdi_i2c.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/ftdi_identity.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/ftdi_identity_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_client_control_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_client_loop_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_initialization.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_initialization_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_interface.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_interface.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_live_control.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_live_control.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof_fill.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof_fill_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof_internal.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof_queue.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof_segment_threads_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_proof_wait_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_timelord_frame.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_util.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_util.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/hw_vdf_client.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/pll_freqs.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/pll_freqs.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/pvt.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/real_hw.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/timelord_live_control.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/timelord_live_control.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/timelord_telemetry.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/vdf_driver.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/hw/vdf_driver.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/include.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/integer.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/integer_common.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/lib/gmp-6.2.1.diff +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/lib/gmp-6.3.0.diff +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/nucomp.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/nucomp_phases.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/nucomp_scratch_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/nudupl_listener.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/pair_kernels.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/pair_kernels.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/pair_kernels_config.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/pair_kernels_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/parallel_prover_witness_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/parameters.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/picosha2.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/pprods.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/primetest.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/primetest_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/proof_arithmetic_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/proof_block_cache.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/proof_block_cache_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/proof_common.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/proof_deserialization_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_base.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_impl.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_interface.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_parallel.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_runtime.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_slow.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_slow_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/prover_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/provers.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/python_bindings/fastvdf.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/refcode/README.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/refcode/lzcnt.c +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/reference_golden.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/reference_golden_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/regression_unit_tests.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/stress_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/threading.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/tl_emu.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/two_weso_callback_regression_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/uint128_t/LICENSE +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/uint128_t/README.md +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/uint128_t/uint128_t.build +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/uint128_t/uint128_t.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/uint128_t/uint128_t.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/uint128_t/uint128_t.include +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/uint128_t/uint128_t_config.include +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/util.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf.txt +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_base.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_base.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_base_hw.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_bench.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_client.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_client_session.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_client_session_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_fast.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_hw_symbol_anchors.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_new.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_original.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/vdf_test.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/verifier.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/verifier_test.cpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/version.hpp +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/xgcd_lehmer_step.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/xgcd_partial.c +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/src/xgcd_partial.h +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_bqfc_deserialize.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_discriminant_validation.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_macos_bundle_dylibs.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_macos_bundle_plan.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_macos_gmp_build.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_macos_pkg.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_macos_select_signing_identities.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_n_weso_verifier.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_prove_low_memory.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_prove_num_iterations.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_release_publish.sh +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_verifier.py +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tests/test_windows_installer_version.ps1 +0 -0
- {chikvdf-1.2.2 → chikvdf-1.2.3}/tools/gen_pprods.py +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: Ensure a modern LLVM (Windows)
|
|
2
|
+
description: >
|
|
3
|
+
windows-latest now ships Visual Studio 18 (2026) with MSVC 14.52, whose STL
|
|
4
|
+
headers refuse any Clang older than 22 with "error STL1000". The image's
|
|
5
|
+
standalone LLVM can be older than that, which breaks both clang-cl compiling
|
|
6
|
+
against the MSVC STL and bindgen parsing it through libclang. Select the newest
|
|
7
|
+
available LLVM, install a current one when none is new enough, then export PATH
|
|
8
|
+
for clang-cl and LIBCLANG_PATH for bindgen.
|
|
9
|
+
inputs:
|
|
10
|
+
minimum-major:
|
|
11
|
+
description: Minimum acceptable Clang major version.
|
|
12
|
+
required: false
|
|
13
|
+
default: "22"
|
|
14
|
+
outputs:
|
|
15
|
+
llvm-bin:
|
|
16
|
+
description: Directory that was prepended to PATH.
|
|
17
|
+
value: ${{ steps.select.outputs.llvm-bin }}
|
|
18
|
+
clang-major:
|
|
19
|
+
description: Major version of the selected Clang.
|
|
20
|
+
value: ${{ steps.select.outputs.clang-major }}
|
|
21
|
+
runs:
|
|
22
|
+
using: composite
|
|
23
|
+
steps:
|
|
24
|
+
- id: select
|
|
25
|
+
shell: pwsh
|
|
26
|
+
env:
|
|
27
|
+
MIN_MAJOR: ${{ inputs.minimum-major }}
|
|
28
|
+
run: |
|
|
29
|
+
$ErrorActionPreference = 'Stop'
|
|
30
|
+
$min = [int]$env:MIN_MAJOR
|
|
31
|
+
$candidates = @(
|
|
32
|
+
'C:\Program Files\LLVM\bin',
|
|
33
|
+
'C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\Llvm\x64\bin',
|
|
34
|
+
'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\x64\bin'
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
function Get-ClangMajor([string]$dir) {
|
|
38
|
+
foreach ($name in @('clang-cl.exe', 'clang.exe')) {
|
|
39
|
+
$exe = Join-Path $dir $name
|
|
40
|
+
if (Test-Path -LiteralPath $exe) {
|
|
41
|
+
$text = (& $exe --version 2>&1 | Select-Object -First 1)
|
|
42
|
+
Write-Host (" {0} -> {1}" -f $dir, $text)
|
|
43
|
+
if ($text -match 'clang version (\d+)\.') { return [int]$Matches[1] }
|
|
44
|
+
return -1
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
Write-Host " $dir -> not present"
|
|
48
|
+
return -1
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function Select-Best {
|
|
52
|
+
$bestDir = $null
|
|
53
|
+
$bestMajor = -1
|
|
54
|
+
foreach ($dir in $candidates) {
|
|
55
|
+
$major = Get-ClangMajor $dir
|
|
56
|
+
if ($major -gt $bestMajor) {
|
|
57
|
+
$bestMajor = $major
|
|
58
|
+
$bestDir = $dir
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return @($bestDir, $bestMajor)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Write-Host 'available LLVM candidates:'
|
|
65
|
+
$sel = Select-Best
|
|
66
|
+
$bestDir = $sel[0]
|
|
67
|
+
$bestMajor = $sel[1]
|
|
68
|
+
|
|
69
|
+
if ($bestMajor -lt $min) {
|
|
70
|
+
Write-Host "newest LLVM on this image is $bestMajor (< $min); installing a current LLVM"
|
|
71
|
+
choco install llvm -y --force --no-progress
|
|
72
|
+
if ($LASTEXITCODE -ne 0) {
|
|
73
|
+
throw "choco install llvm failed with exit code $LASTEXITCODE"
|
|
74
|
+
}
|
|
75
|
+
Write-Host 'available LLVM candidates after install:'
|
|
76
|
+
$sel = Select-Best
|
|
77
|
+
$bestDir = $sel[0]
|
|
78
|
+
$bestMajor = $sel[1]
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (-not $bestDir -or $bestMajor -lt $min) {
|
|
82
|
+
throw "No LLVM >= $min is available (best: $bestMajor at $bestDir). MSVC 14.52 refuses any older Clang (error STL1000)."
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
$libclang = Join-Path $bestDir 'libclang.dll'
|
|
86
|
+
if (-not (Test-Path -LiteralPath $libclang)) {
|
|
87
|
+
throw "libclang.dll is missing in $bestDir; bindgen cannot run without it."
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
$bestDir | Out-File -Append -FilePath $env:GITHUB_PATH
|
|
91
|
+
"LIBCLANG_PATH=$bestDir" | Out-File -Append -FilePath $env:GITHUB_ENV
|
|
92
|
+
"llvm-bin=$bestDir" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
|
|
93
|
+
"clang-major=$bestMajor" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
|
|
94
|
+
Write-Host "selected clang $bestMajor from $bestDir"
|
|
@@ -58,6 +58,8 @@ def literal_ok(update: Update, added: list[str]) -> bool:
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
def _parse_updates(raw: str) -> list[Update]:
|
|
61
|
+
if not raw.strip():
|
|
62
|
+
raise SystemExit("updated-dependencies-json is empty; fetch-metadata did not run or no input was given")
|
|
61
63
|
try:
|
|
62
64
|
payload = json.loads(raw)
|
|
63
65
|
except json.JSONDecodeError as exc:
|
|
@@ -227,6 +229,20 @@ def _action_status(update: Update, diff: str) -> Update | None:
|
|
|
227
229
|
return replace(update, prev_commit=commits[0], new_commit=commits[1])
|
|
228
230
|
|
|
229
231
|
|
|
232
|
+
def _poetry_previous_version(update: Update, diff: str) -> str:
|
|
233
|
+
"""Recover an omitted pip version only from a matching Poetry package change."""
|
|
234
|
+
versions: set[str] = set()
|
|
235
|
+
pattern = re.compile(r'(?m)^ name = "([^"]+)"\n-version = "([^"]+)"\n\+version = "([^"]+)"$')
|
|
236
|
+
wanted = PurePosixPath(update.directory.lstrip("/")) / "poetry.lock"
|
|
237
|
+
for section in diff.split("diff --git ")[1:]:
|
|
238
|
+
if f"\n+++ b/{wanted}\n" not in section:
|
|
239
|
+
continue
|
|
240
|
+
for name, old, new in pattern.findall(section):
|
|
241
|
+
if _norm(name) == _norm(update.name) and new == update.new_version:
|
|
242
|
+
versions.add(old)
|
|
243
|
+
return next(iter(versions)) if len(versions) == 1 else ""
|
|
244
|
+
|
|
245
|
+
|
|
230
246
|
def _status(update: Update, diff: str) -> Update:
|
|
231
247
|
if update.ecosystem not in FETCHERS:
|
|
232
248
|
return replace(update, status="not_reviewed", note="ecosystem is not reviewed")
|
|
@@ -234,6 +250,8 @@ def _status(update: Update, diff: str) -> Update:
|
|
|
234
250
|
update = _action_status(update, diff) or update
|
|
235
251
|
if update.status != "reviewed":
|
|
236
252
|
return update
|
|
253
|
+
if update.ecosystem == "pip" and not update.prev_version:
|
|
254
|
+
update = replace(update, prev_version=_poetry_previous_version(update, diff))
|
|
237
255
|
if not update.prev_version:
|
|
238
256
|
return replace(update, status="unverified", note="previous version is missing")
|
|
239
257
|
if not all(SAFE.fullmatch(value) for value in (update.name, update.prev_version, update.new_version)):
|
|
@@ -377,8 +395,9 @@ def _diff_header_path(paths: str) -> str:
|
|
|
377
395
|
parts = []
|
|
378
396
|
if len(parts) == 2:
|
|
379
397
|
return parts[1]
|
|
380
|
-
# Unquoted "old/P new/P" where P contains spaces: both halves
|
|
381
|
-
|
|
398
|
+
# Unquoted "old/P new/P" where P contains spaces: both halves have the same
|
|
399
|
+
# length plus one separating space, so the new-side path starts at the midpoint.
|
|
400
|
+
return paths[(len(paths) + 1) // 2 :]
|
|
382
401
|
|
|
383
402
|
|
|
384
403
|
def _capped(title: str, entries: list[str]) -> list[str]:
|
|
@@ -181,16 +181,19 @@ jobs:
|
|
|
181
181
|
shell: bash
|
|
182
182
|
run: bash scripts/get-mpir-gc-x64.sh
|
|
183
183
|
|
|
184
|
-
- name:
|
|
184
|
+
- name: Ensure a modern LLVM toolchain (Windows)
|
|
185
|
+
if: matrix.os == 'windows-latest'
|
|
186
|
+
uses: ./.github/actions/ensure-modern-clang
|
|
187
|
+
|
|
188
|
+
- name: Install Ninja and Boost on Windows
|
|
185
189
|
if: matrix.os == 'windows-latest'
|
|
186
190
|
shell: pwsh
|
|
187
191
|
env:
|
|
188
192
|
BOOST_CACHE_HIT: ${{ steps.cache-boost.outputs.cache-hit }}
|
|
189
193
|
run: |
|
|
190
|
-
$llvmBin = "C:\Program Files\LLVM\bin\clang-cl.exe"
|
|
191
194
|
$ninjaBin = "C:\ProgramData\chocolatey\bin\ninja.exe"
|
|
192
|
-
if (-not (Test-Path $
|
|
193
|
-
choco install
|
|
195
|
+
if (-not (Test-Path $ninjaBin)) {
|
|
196
|
+
choco install ninja -y
|
|
194
197
|
}
|
|
195
198
|
$boostDir = Get-ChildItem "C:\local" -Directory -Filter "boost_*" -ErrorAction SilentlyContinue | Select-Object -First 1
|
|
196
199
|
if (-not $boostDir) {
|
|
@@ -205,7 +208,6 @@ jobs:
|
|
|
205
208
|
} else {
|
|
206
209
|
Write-Host "Boost already present at $($boostDir.FullName), skipping choco install"
|
|
207
210
|
}
|
|
208
|
-
"C:\Program Files\LLVM\bin" | Out-File -Append -FilePath $env:GITHUB_PATH
|
|
209
211
|
if (-not $boostDir) {
|
|
210
212
|
throw "Boost install not found under C:\local"
|
|
211
213
|
}
|
|
@@ -23,8 +23,6 @@ jobs:
|
|
|
23
23
|
build-wheels:
|
|
24
24
|
name: Wheel - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
|
|
25
25
|
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }}
|
|
26
|
-
env:
|
|
27
|
-
CIBUILDWHEEL_VERSION: '4.3.1'
|
|
28
26
|
strategy:
|
|
29
27
|
fail-fast: false
|
|
30
28
|
matrix:
|
|
@@ -47,22 +45,34 @@ jobs:
|
|
|
47
45
|
runs-on:
|
|
48
46
|
intel: windows-latest
|
|
49
47
|
python:
|
|
48
|
+
# 3.3+ no longer applies cibuildwheel's pinned packaging==25.0 to
|
|
49
|
+
# isolated build-system.requires. setuptools-scm 10.2.3 pulls
|
|
50
|
+
# vcs-versioning, which needs packaging>=26.2.
|
|
51
|
+
- major-dot-minor: '3.10'
|
|
52
|
+
cibw-build: 'cp310-*'
|
|
53
|
+
manylinux: manylinux_2_28
|
|
54
|
+
matrix: '3.10'
|
|
55
|
+
cibuildwheel: 'cibuildwheel==3.4.1'
|
|
50
56
|
- major-dot-minor: '3.11'
|
|
51
57
|
cibw-build: 'cp311-*'
|
|
52
58
|
manylinux: manylinux_2_28
|
|
53
59
|
matrix: '3.11'
|
|
60
|
+
cibuildwheel: 'cibuildwheel==3.4.1'
|
|
54
61
|
- major-dot-minor: '3.12'
|
|
55
62
|
cibw-build: 'cp312-*'
|
|
56
63
|
manylinux: manylinux_2_28
|
|
57
64
|
matrix: '3.12'
|
|
65
|
+
cibuildwheel: 'cibuildwheel==3.4.1'
|
|
58
66
|
- major-dot-minor: '3.13'
|
|
59
67
|
cibw-build: 'cp313-*'
|
|
60
68
|
manylinux: manylinux_2_28
|
|
61
69
|
matrix: '3.13'
|
|
70
|
+
cibuildwheel: 'cibuildwheel==3.4.1'
|
|
62
71
|
- major-dot-minor: '3.14'
|
|
63
72
|
cibw-build: 'cp314-*'
|
|
64
73
|
manylinux: manylinux_2_28
|
|
65
74
|
matrix: '3.14'
|
|
75
|
+
cibuildwheel: 'cibuildwheel==3.4.1'
|
|
66
76
|
arch:
|
|
67
77
|
- name: ARM
|
|
68
78
|
matrix: arm
|
|
@@ -94,7 +104,7 @@ jobs:
|
|
|
94
104
|
- uses: Chik-Network/actions/setup-python@main
|
|
95
105
|
with:
|
|
96
106
|
# cibuildwheel v3 requires Python >= 3.11 for the build host.
|
|
97
|
-
#
|
|
107
|
+
# Keep wheel target selection via CIBW_BUILD so cp310 wheels still build.
|
|
98
108
|
python-version: '3.12'
|
|
99
109
|
|
|
100
110
|
- name: Install pipx
|
|
@@ -107,16 +117,18 @@ jobs:
|
|
|
107
117
|
CIBW_BUILD: ${{ matrix.python.cibw-build }}
|
|
108
118
|
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.python.manylinux }}
|
|
109
119
|
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.python.manylinux }}
|
|
120
|
+
CIBW_ENABLE: cpython-prerelease
|
|
110
121
|
run:
|
|
111
|
-
pipx run --spec
|
|
122
|
+
pipx run --spec=${{ matrix.python.cibuildwheel }} cibuildwheel --output-dir dist 2>&1
|
|
112
123
|
|
|
113
124
|
- name: Build and test (macOS)
|
|
114
125
|
if: matrix.os.matrix == 'macos'
|
|
115
126
|
env:
|
|
116
127
|
CIBW_BUILD: ${{ matrix.python.cibw-build }}
|
|
117
128
|
CIBW_ARCHS_MACOS: ${{ matrix.os.cibw-archs-macos[matrix.arch.matrix] }}
|
|
129
|
+
CIBW_ENABLE: cpython-prerelease
|
|
118
130
|
run:
|
|
119
|
-
pipx run --spec
|
|
131
|
+
pipx run --spec=${{ matrix.python.cibuildwheel }} cibuildwheel --output-dir dist 2>&1
|
|
120
132
|
|
|
121
133
|
- name: Build and test (Windows)
|
|
122
134
|
if: matrix.os.matrix == 'windows'
|
|
@@ -133,8 +145,9 @@ jobs:
|
|
|
133
145
|
# emits this warning in our Windows wheel builds.
|
|
134
146
|
PYTHONWARNINGS: "ignore:Config variable 'Py_DEBUG' is unset:RuntimeWarning"
|
|
135
147
|
CIBW_BUILD: ${{ matrix.python.cibw-build }}
|
|
148
|
+
CIBW_ENABLE: cpython-prerelease
|
|
136
149
|
run:
|
|
137
|
-
pipx run --spec
|
|
150
|
+
pipx run --spec=${{ matrix.python.cibuildwheel }} cibuildwheel --output-dir dist 2>&1
|
|
138
151
|
|
|
139
152
|
- name: Upload artifacts
|
|
140
153
|
uses: actions/upload-artifact@v7
|
|
@@ -210,7 +223,7 @@ jobs:
|
|
|
210
223
|
pip install .
|
|
211
224
|
stubtest --concise chikvdf
|
|
212
225
|
|
|
213
|
-
- name: Check source install copies
|
|
226
|
+
- name: Check source install copies binaries to package and platlib root
|
|
214
227
|
env:
|
|
215
228
|
BUILD_VDF_CLIENT: Y
|
|
216
229
|
BUILD_VDF_BENCH: Y
|
|
@@ -227,9 +240,10 @@ jobs:
|
|
|
227
240
|
/tmp/hooks-venv/bin/pip install "$sdist"
|
|
228
241
|
plat=$(/tmp/hooks-venv/bin/python -c 'import sysconfig; print(sysconfig.get_paths()["platlib"])')
|
|
229
242
|
for f in vdf_client prover_test 1weso_test 2weso_test vdf_bench; do
|
|
243
|
+
test -x "$plat/chikvdf/$f" || { echo "missing $plat/chikvdf/$f"; exit 1; }
|
|
230
244
|
test -x "$plat/$f" || { echo "missing $plat/$f"; exit 1; }
|
|
231
245
|
done
|
|
232
|
-
"$plat/vdf_bench" --version
|
|
246
|
+
"$plat/chikvdf/vdf_bench" --version
|
|
233
247
|
|
|
234
248
|
upload:
|
|
235
249
|
name: Upload to PyPI - Ubuntu 3.12 Intel
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
|
|
45
45
|
# Initializes the CodeQL tools for scanning.
|
|
46
46
|
- name: Initialize CodeQL
|
|
47
|
-
uses: github/codeql-action/init@v4.39.
|
|
47
|
+
uses: github/codeql-action/init@v4.39.1
|
|
48
48
|
with:
|
|
49
49
|
languages: ${{ matrix.language }}
|
|
50
50
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
@@ -64,4 +64,4 @@ jobs:
|
|
|
64
64
|
pip wheel .
|
|
65
65
|
|
|
66
66
|
- name: Perform CodeQL Analysis
|
|
67
|
-
uses: github/codeql-action/analyze@v4.39.
|
|
67
|
+
uses: github/codeql-action/analyze@v4.39.1
|
|
@@ -150,6 +150,14 @@ jobs:
|
|
|
150
150
|
if ($LASTEXITCODE -ne 0) { throw "get-mpir-gc-x64.sh failed with exit code $LASTEXITCODE" }
|
|
151
151
|
"$(Get-Location)/mpir_gc_x64" | Out-File -Append -FilePath $env:GITHUB_PATH
|
|
152
152
|
|
|
153
|
+
# bindgen parses the MSVC STL through libclang, and MSVC 14.52 (Visual
|
|
154
|
+
# Studio 18, now the default on windows-latest) refuses any Clang older
|
|
155
|
+
# than 22 with "error STL1000". The shared action selects or installs a
|
|
156
|
+
# matching LLVM and exports LIBCLANG_PATH for bindgen.
|
|
157
|
+
- name: Ensure a modern LLVM toolchain (Windows)
|
|
158
|
+
if: matrix.os.name == 'Windows'
|
|
159
|
+
uses: ./.github/actions/ensure-modern-clang
|
|
160
|
+
|
|
153
161
|
- name: Install libclang-dev on Linux
|
|
154
162
|
if: matrix.os.name == 'Ubuntu'
|
|
155
163
|
run: |
|
|
@@ -201,7 +209,7 @@ jobs:
|
|
|
201
209
|
env:
|
|
202
210
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
203
211
|
|
|
204
|
-
- uses: rust-lang/crates-io-auth-action@v1.0.
|
|
212
|
+
- uses: rust-lang/crates-io-auth-action@v1.0.6
|
|
205
213
|
if: env.RELEASE == 'true'
|
|
206
214
|
id: auth
|
|
207
215
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chikvdf
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: Chik vdf verification (wraps C++)
|
|
5
5
|
Home-page: https://github.com/Chik-Network/chikvdf
|
|
6
6
|
Author: Florin Chirica
|
|
7
7
|
Author-email: florin@chiknetwork.com
|
|
8
8
|
License: Apache-2.0
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.10, <4
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Dynamic: author
|
|
@@ -152,7 +152,7 @@ The published `chikvdf` wheels contain the native verifier bindings that
|
|
|
152
152
|
chik-blockchain uses to validate proofs of time. This lets a node install a
|
|
153
153
|
prebuilt wheel instead of compiling the C++ library itself.
|
|
154
154
|
|
|
155
|
-
The Python bindings require Python 3.
|
|
155
|
+
The Python bindings require Python 3.10 or newer. Building them requires
|
|
156
156
|
CMake, a C++17 compiler, and GMP (MPIR on Windows). Building the timelord
|
|
157
157
|
client and tests also requires Boost headers.
|
|
158
158
|
|
|
@@ -267,6 +267,80 @@ cmake --build build --target vdf_client_session_test
|
|
|
267
267
|
ctest --test-dir build --output-on-failure -R '^regression\.'
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
+
### Blockchain proof corpus
|
|
271
|
+
|
|
272
|
+
`verify_vdf_corpus` is a standalone Unix tool that validates binary VDF proof corpora
|
|
273
|
+
independently of a blockchain database. Supply one or more files on the command
|
|
274
|
+
line; there is no default sample or environment-variable configuration. The
|
|
275
|
+
existing `ReferenceGoldenRegressionTest` retains the arithmetic regression coverage.
|
|
276
|
+
|
|
277
|
+
Export more proofs with `export-vdf-proofs` in the `chik_rs` repository:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
cargo run --release -p chik-tools --bin export-vdf-proofs -- \
|
|
281
|
+
/path/to/blockchain.sqlite mainnet-proofs.bin
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
The tool opens the database read-only, includes orphan blocks, reports progress, and
|
|
285
|
+
resolves partial-proof inputs using ancestor records. It refuses to overwrite
|
|
286
|
+
an existing output file. If extraction fails, discard the partial output.
|
|
287
|
+
|
|
288
|
+
The file is a sequence of independently serialized Streamable records. There is
|
|
289
|
+
no file header or record count. The Rust `CorpusEntry` layout is:
|
|
290
|
+
|
|
291
|
+
```rust
|
|
292
|
+
struct CorpusEntry {
|
|
293
|
+
height: u32,
|
|
294
|
+
input: ClassgroupElement,
|
|
295
|
+
info: VDFInfo,
|
|
296
|
+
proof: VDFProof,
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Streamable integers are big-endian. The 100 raw bytes of `input` follow the
|
|
301
|
+
four-byte `height` immediately. The discriminant size is a fixed 1024 bits in
|
|
302
|
+
the verifier and is not stored in the corpus. Witness bytes have a `u32` byte
|
|
303
|
+
length prefix. `VDFInfo` contains the
|
|
304
|
+
32-byte challenge, `u64` iteration count, and output element. `VDFProof` contains
|
|
305
|
+
the `u8` witness type, length-prefixed witness, and one-byte normalized flag.
|
|
306
|
+
`input` and `info.number_of_iterations` are the resolved verifier arguments,
|
|
307
|
+
including adjustments for partial proofs. The C++ reader does not reapply the
|
|
308
|
+
normalized flag. Block hashes and proof field names are omitted; failures
|
|
309
|
+
identify the file, height and record number.
|
|
310
|
+
|
|
311
|
+
Exports can be combined with
|
|
312
|
+
`cat mainnet-proofs.bin testnet11-proofs.bin testneta-proofs.bin > proofs.bin`.
|
|
313
|
+
The corpus omits version, network and proof field metadata. No compression is
|
|
314
|
+
required.
|
|
315
|
+
|
|
316
|
+
Build and run from the chikvdf repository (GoogleTest is not required):
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \
|
|
320
|
+
-DBUILD_PYTHON=OFF -DBUILD_VDF_TESTS=OFF
|
|
321
|
+
cmake --build build --config Release --target verify_vdf_corpus -j 4
|
|
322
|
+
./build/verify_vdf_corpus mainnet-proofs.bin testnet11-proofs.bin testneta-proofs.bin
|
|
323
|
+
./build/verify_vdf_corpus --start-height 1000000 mainnet-proofs.bin
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
For multi-configuration generators such as Xcode, run the executable from
|
|
327
|
+
`build/Release/` instead.
|
|
328
|
+
|
|
329
|
+
Files are processed in argument order. Verification uses one worker per hardware
|
|
330
|
+
thread reported by `std::thread::hardware_concurrency()` (with a fallback of one
|
|
331
|
+
worker), maps each corpus file and parses records as workers need them. With
|
|
332
|
+
`--start-height`, the verifier still scans every record because the corpus has
|
|
333
|
+
no height index and sorting proofs by challenge can move heights out of order.
|
|
334
|
+
It validates only proofs at or above the specified height. Decoded proof memory
|
|
335
|
+
is bounded by the worker count.
|
|
336
|
+
Progress is printed every 10,000 proofs, followed by per-file and overall totals.
|
|
337
|
+
Failures include the filename, block height and record number. Empty, truncated,
|
|
338
|
+
unreadable or malformed corpora cause a nonzero
|
|
339
|
+
exit status. A malformed record stops that file, and the tool continues with
|
|
340
|
+
subsequent files. Invalid proofs are reported while checking the remaining records.
|
|
341
|
+
Exit status is 0 when every file passes, 1 on failure, or 2 if no files were supplied.
|
|
342
|
+
Use `--help` for usage. The tool checks VDF validity, not block consensus.
|
|
343
|
+
|
|
270
344
|
### Testing matrix
|
|
271
345
|
|
|
272
346
|
- Binary integration tests: `1weso_test`, `2weso_test`, `prover_test`; these
|
|
@@ -131,7 +131,7 @@ The published `chikvdf` wheels contain the native verifier bindings that
|
|
|
131
131
|
chik-blockchain uses to validate proofs of time. This lets a node install a
|
|
132
132
|
prebuilt wheel instead of compiling the C++ library itself.
|
|
133
133
|
|
|
134
|
-
The Python bindings require Python 3.
|
|
134
|
+
The Python bindings require Python 3.10 or newer. Building them requires
|
|
135
135
|
CMake, a C++17 compiler, and GMP (MPIR on Windows). Building the timelord
|
|
136
136
|
client and tests also requires Boost headers.
|
|
137
137
|
|
|
@@ -246,6 +246,80 @@ cmake --build build --target vdf_client_session_test
|
|
|
246
246
|
ctest --test-dir build --output-on-failure -R '^regression\.'
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
+
### Blockchain proof corpus
|
|
250
|
+
|
|
251
|
+
`verify_vdf_corpus` is a standalone Unix tool that validates binary VDF proof corpora
|
|
252
|
+
independently of a blockchain database. Supply one or more files on the command
|
|
253
|
+
line; there is no default sample or environment-variable configuration. The
|
|
254
|
+
existing `ReferenceGoldenRegressionTest` retains the arithmetic regression coverage.
|
|
255
|
+
|
|
256
|
+
Export more proofs with `export-vdf-proofs` in the `chik_rs` repository:
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
cargo run --release -p chik-tools --bin export-vdf-proofs -- \
|
|
260
|
+
/path/to/blockchain.sqlite mainnet-proofs.bin
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
The tool opens the database read-only, includes orphan blocks, reports progress, and
|
|
264
|
+
resolves partial-proof inputs using ancestor records. It refuses to overwrite
|
|
265
|
+
an existing output file. If extraction fails, discard the partial output.
|
|
266
|
+
|
|
267
|
+
The file is a sequence of independently serialized Streamable records. There is
|
|
268
|
+
no file header or record count. The Rust `CorpusEntry` layout is:
|
|
269
|
+
|
|
270
|
+
```rust
|
|
271
|
+
struct CorpusEntry {
|
|
272
|
+
height: u32,
|
|
273
|
+
input: ClassgroupElement,
|
|
274
|
+
info: VDFInfo,
|
|
275
|
+
proof: VDFProof,
|
|
276
|
+
}
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Streamable integers are big-endian. The 100 raw bytes of `input` follow the
|
|
280
|
+
four-byte `height` immediately. The discriminant size is a fixed 1024 bits in
|
|
281
|
+
the verifier and is not stored in the corpus. Witness bytes have a `u32` byte
|
|
282
|
+
length prefix. `VDFInfo` contains the
|
|
283
|
+
32-byte challenge, `u64` iteration count, and output element. `VDFProof` contains
|
|
284
|
+
the `u8` witness type, length-prefixed witness, and one-byte normalized flag.
|
|
285
|
+
`input` and `info.number_of_iterations` are the resolved verifier arguments,
|
|
286
|
+
including adjustments for partial proofs. The C++ reader does not reapply the
|
|
287
|
+
normalized flag. Block hashes and proof field names are omitted; failures
|
|
288
|
+
identify the file, height and record number.
|
|
289
|
+
|
|
290
|
+
Exports can be combined with
|
|
291
|
+
`cat mainnet-proofs.bin testnet11-proofs.bin testneta-proofs.bin > proofs.bin`.
|
|
292
|
+
The corpus omits version, network and proof field metadata. No compression is
|
|
293
|
+
required.
|
|
294
|
+
|
|
295
|
+
Build and run from the chikvdf repository (GoogleTest is not required):
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \
|
|
299
|
+
-DBUILD_PYTHON=OFF -DBUILD_VDF_TESTS=OFF
|
|
300
|
+
cmake --build build --config Release --target verify_vdf_corpus -j 4
|
|
301
|
+
./build/verify_vdf_corpus mainnet-proofs.bin testnet11-proofs.bin testneta-proofs.bin
|
|
302
|
+
./build/verify_vdf_corpus --start-height 1000000 mainnet-proofs.bin
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
For multi-configuration generators such as Xcode, run the executable from
|
|
306
|
+
`build/Release/` instead.
|
|
307
|
+
|
|
308
|
+
Files are processed in argument order. Verification uses one worker per hardware
|
|
309
|
+
thread reported by `std::thread::hardware_concurrency()` (with a fallback of one
|
|
310
|
+
worker), maps each corpus file and parses records as workers need them. With
|
|
311
|
+
`--start-height`, the verifier still scans every record because the corpus has
|
|
312
|
+
no height index and sorting proofs by challenge can move heights out of order.
|
|
313
|
+
It validates only proofs at or above the specified height. Decoded proof memory
|
|
314
|
+
is bounded by the worker count.
|
|
315
|
+
Progress is printed every 10,000 proofs, followed by per-file and overall totals.
|
|
316
|
+
Failures include the filename, block height and record number. Empty, truncated,
|
|
317
|
+
unreadable or malformed corpora cause a nonzero
|
|
318
|
+
exit status. A malformed record stops that file, and the tool continues with
|
|
319
|
+
subsequent files. Invalid proofs are reported while checking the remaining records.
|
|
320
|
+
Exit status is 0 when every file passes, 1 on failure, or 2 if no files were supplied.
|
|
321
|
+
Use `--help` for usage. The tool checks VDF validity, not block consensus.
|
|
322
|
+
|
|
249
323
|
### Testing matrix
|
|
250
324
|
|
|
251
325
|
- Binary integration tests: `1weso_test`, `2weso_test`, `prover_test`; these
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chikvdf
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: Chik vdf verification (wraps C++)
|
|
5
5
|
Home-page: https://github.com/Chik-Network/chikvdf
|
|
6
6
|
Author: Florin Chirica
|
|
7
7
|
Author-email: florin@chiknetwork.com
|
|
8
8
|
License: Apache-2.0
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.10, <4
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Dynamic: author
|
|
@@ -152,7 +152,7 @@ The published `chikvdf` wheels contain the native verifier bindings that
|
|
|
152
152
|
chik-blockchain uses to validate proofs of time. This lets a node install a
|
|
153
153
|
prebuilt wheel instead of compiling the C++ library itself.
|
|
154
154
|
|
|
155
|
-
The Python bindings require Python 3.
|
|
155
|
+
The Python bindings require Python 3.10 or newer. Building them requires
|
|
156
156
|
CMake, a C++17 compiler, and GMP (MPIR on Windows). Building the timelord
|
|
157
157
|
client and tests also requires Boost headers.
|
|
158
158
|
|
|
@@ -267,6 +267,80 @@ cmake --build build --target vdf_client_session_test
|
|
|
267
267
|
ctest --test-dir build --output-on-failure -R '^regression\.'
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
+
### Blockchain proof corpus
|
|
271
|
+
|
|
272
|
+
`verify_vdf_corpus` is a standalone Unix tool that validates binary VDF proof corpora
|
|
273
|
+
independently of a blockchain database. Supply one or more files on the command
|
|
274
|
+
line; there is no default sample or environment-variable configuration. The
|
|
275
|
+
existing `ReferenceGoldenRegressionTest` retains the arithmetic regression coverage.
|
|
276
|
+
|
|
277
|
+
Export more proofs with `export-vdf-proofs` in the `chik_rs` repository:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
cargo run --release -p chik-tools --bin export-vdf-proofs -- \
|
|
281
|
+
/path/to/blockchain.sqlite mainnet-proofs.bin
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
The tool opens the database read-only, includes orphan blocks, reports progress, and
|
|
285
|
+
resolves partial-proof inputs using ancestor records. It refuses to overwrite
|
|
286
|
+
an existing output file. If extraction fails, discard the partial output.
|
|
287
|
+
|
|
288
|
+
The file is a sequence of independently serialized Streamable records. There is
|
|
289
|
+
no file header or record count. The Rust `CorpusEntry` layout is:
|
|
290
|
+
|
|
291
|
+
```rust
|
|
292
|
+
struct CorpusEntry {
|
|
293
|
+
height: u32,
|
|
294
|
+
input: ClassgroupElement,
|
|
295
|
+
info: VDFInfo,
|
|
296
|
+
proof: VDFProof,
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Streamable integers are big-endian. The 100 raw bytes of `input` follow the
|
|
301
|
+
four-byte `height` immediately. The discriminant size is a fixed 1024 bits in
|
|
302
|
+
the verifier and is not stored in the corpus. Witness bytes have a `u32` byte
|
|
303
|
+
length prefix. `VDFInfo` contains the
|
|
304
|
+
32-byte challenge, `u64` iteration count, and output element. `VDFProof` contains
|
|
305
|
+
the `u8` witness type, length-prefixed witness, and one-byte normalized flag.
|
|
306
|
+
`input` and `info.number_of_iterations` are the resolved verifier arguments,
|
|
307
|
+
including adjustments for partial proofs. The C++ reader does not reapply the
|
|
308
|
+
normalized flag. Block hashes and proof field names are omitted; failures
|
|
309
|
+
identify the file, height and record number.
|
|
310
|
+
|
|
311
|
+
Exports can be combined with
|
|
312
|
+
`cat mainnet-proofs.bin testnet11-proofs.bin testneta-proofs.bin > proofs.bin`.
|
|
313
|
+
The corpus omits version, network and proof field metadata. No compression is
|
|
314
|
+
required.
|
|
315
|
+
|
|
316
|
+
Build and run from the chikvdf repository (GoogleTest is not required):
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
cmake -S src -B build -DCMAKE_BUILD_TYPE=Release \
|
|
320
|
+
-DBUILD_PYTHON=OFF -DBUILD_VDF_TESTS=OFF
|
|
321
|
+
cmake --build build --config Release --target verify_vdf_corpus -j 4
|
|
322
|
+
./build/verify_vdf_corpus mainnet-proofs.bin testnet11-proofs.bin testneta-proofs.bin
|
|
323
|
+
./build/verify_vdf_corpus --start-height 1000000 mainnet-proofs.bin
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
For multi-configuration generators such as Xcode, run the executable from
|
|
327
|
+
`build/Release/` instead.
|
|
328
|
+
|
|
329
|
+
Files are processed in argument order. Verification uses one worker per hardware
|
|
330
|
+
thread reported by `std::thread::hardware_concurrency()` (with a fallback of one
|
|
331
|
+
worker), maps each corpus file and parses records as workers need them. With
|
|
332
|
+
`--start-height`, the verifier still scans every record because the corpus has
|
|
333
|
+
no height index and sorting proofs by challenge can move heights out of order.
|
|
334
|
+
It validates only proofs at or above the specified height. Decoded proof memory
|
|
335
|
+
is bounded by the worker count.
|
|
336
|
+
Progress is printed every 10,000 proofs, followed by per-file and overall totals.
|
|
337
|
+
Failures include the filename, block height and record number. Empty, truncated,
|
|
338
|
+
unreadable or malformed corpora cause a nonzero
|
|
339
|
+
exit status. A malformed record stops that file, and the tool continues with
|
|
340
|
+
subsequent files. Invalid proofs are reported while checking the remaining records.
|
|
341
|
+
Exit status is 0 when every file passes, 1 on failure, or 2 if no files were supplied.
|
|
342
|
+
Use `--help` for usage. The tool checks VDF validity, not block consensus.
|
|
343
|
+
|
|
270
344
|
### Testing matrix
|
|
271
345
|
|
|
272
346
|
- Binary integration tests: `1weso_test`, `2weso_test`, `prover_test`; these
|
|
@@ -15,6 +15,7 @@ mypi.ini
|
|
|
15
15
|
pyproject.toml
|
|
16
16
|
setup.py
|
|
17
17
|
./
|
|
18
|
+
.github/actions/ensure-modern-clang/action.yml
|
|
18
19
|
.github/actions/install-inno-setup/action.yml
|
|
19
20
|
.github/actions/publish-github-release/action.yml
|
|
20
21
|
.github/actions/publish-github-release/publish.sh
|
|
@@ -175,6 +176,7 @@ src/vdf_test.cpp
|
|
|
175
176
|
src/vdf_test.h
|
|
176
177
|
src/verifier.h
|
|
177
178
|
src/verifier_test.cpp
|
|
179
|
+
src/verify_vdf_corpus.cpp
|
|
178
180
|
src/version.hpp
|
|
179
181
|
src/xgcd_lehmer_step.h
|
|
180
182
|
src/xgcd_partial.c
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": [
|
|
3
3
|
".flake8",
|
|
4
|
+
".github/actions/ensure-modern-clang/action.yml",
|
|
4
5
|
".github/actions/install-inno-setup/action.yml",
|
|
5
6
|
".github/actions/publish-github-release/action.yml",
|
|
6
7
|
".github/actions/publish-github-release/manifests/chikvdf.txt",
|
|
@@ -229,6 +230,7 @@
|
|
|
229
230
|
"src/vdf_test.h",
|
|
230
231
|
"src/verifier.h",
|
|
231
232
|
"src/verifier_test.cpp",
|
|
233
|
+
"src/verify_vdf_corpus.cpp",
|
|
232
234
|
"src/version.hpp",
|
|
233
235
|
"src/xgcd_lehmer_step.h",
|
|
234
236
|
"src/xgcd_partial.c",
|