From 354cca057333c21f635325074c3050c1adc94f42 Mon Sep 17 00:00:00 2001 From: thatben Date: Fri, 28 Feb 2025 13:52:01 +0100 Subject: [PATCH 1/2] bumps constantine and nim-poseidon to match codex v0.2.0 --- reference/nim/proof_input/proof_input.nimble | 4 ++-- reference/nim/proof_input/src/types/bn254.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/nim/proof_input/proof_input.nimble b/reference/nim/proof_input/proof_input.nimble index d6a7d6b..96ed78f 100644 --- a/reference/nim/proof_input/proof_input.nimble +++ b/reference/nim/proof_input/proof_input.nimble @@ -8,7 +8,7 @@ bin = @["cli"] #bin = @["cli","testmain"] requires "nim >= 1.6.0" -requires "https://github.com/mratsim/constantine#ab6fa6ae1bbbd1b10071a92ec209b381b5d82511" -requires "https://github.com/codex-storage/nim-poseidon2#8a54c69032a741160bbc097d009e45a8b5e4d718" +requires "https://github.com/mratsim/constantine#bc3845aa492b52f7fef047503b1592e830d1a774" +requires "https://github.com/codex-storage/nim-poseidon2#4e2c6e619b2f2859aaa4b2aed2f346ea4d0c67a3" requires "https://github.com/codex-storage/nim-goldilocks-hash#bd5b805b80b6005a3e5de412dec15783284d205d" #requires "goldilocks_hash == 0.0.1" diff --git a/reference/nim/proof_input/src/types/bn254.nim b/reference/nim/proof_input/src/types/bn254.nim index f7bba1e..87b98d1 100644 --- a/reference/nim/proof_input/src/types/bn254.nim +++ b/reference/nim/proof_input/src/types/bn254.nim @@ -7,7 +7,7 @@ import constantine/math/arithmetic, constantine/math/io/io_fields, constantine/math/io/io_bigints, - constantine/math/config/curves + constantine/named/algebras #from constantine/math/io/io_fields import toDecimal From 79284e66fbb64cb02f05a5e88eaacd852dff22be Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Tue, 11 Mar 2025 12:03:33 +0200 Subject: [PATCH 2/2] fix: update cli_args --- .github/workflows/generate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 5822c8a..5887772 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -91,7 +91,7 @@ jobs: run: | ENTROPY="${{ github.run_id }}" echo "Entropy: $ENTROPY" - echo "CLI_ARGS=--depth=${{ github.event.inputs.maxDepth }} --maxslots=${{ github.event.inputs.maxSlots }} --cellsize=${{ github.event.inputs.cellSize }} --blocksize=${{ github.event.inputs.blockSize }} --nsamples=${{ github.event.inputs.nSamples }} --entropy="$ENTROPY" --seed=${{ github.event.inputs.seed }} --nslots=${{ github.event.inputs.nSlots }} --index=${{ github.event.inputs.slotIndex }} --ncells=${{ github.event.inputs.nCells }}" >> $GITHUB_ENV + echo "CLI_ARGS=--depth=${{ github.event.inputs.maxDepth }} --maxslots=${{ github.event.inputs.maxSlots }} --cellsize=${{ github.event.inputs.cellSize }} --blocksize=${{ github.event.inputs.blockSize }} --nsamples=${{ github.event.inputs.nSamples }} --entropy="$ENTROPY" --seed=${{ github.event.inputs.seed }} --nslots=${{ github.event.inputs.nSlots }} --index=${{ github.event.inputs.slotIndex }} --ncells=${{ github.event.inputs.nCells }} --field=bn254 --hash=poseidon2" >> $GITHUB_ENV - name: Build CLI Proof Generator run: |