cairo-vm: `Error: IlegalInputValue` when run cairo program.
Describe the bug
I have a cairo program that performs a few pedersen hashes and check if a leaf is part of a merkle tree
The program work successfully with scarb cairo-run, but fail to run with the cairo1-vm, with the same parameters
To Reproduce
scarb cairo-run '[10, 11, "1129815197211541481934112806673325772687763881719835256646064516195041515616", "2786116088662035069066189777680990419908396521409751409107279532930231316343", "1715556295878999972957474070461491436465516895623517391664966219403971354436", 1, 8, ["1953494062994346031473676762198846975365628378496072945247633132004575093152", "126113334767614658176188594640568076708777092902948464648204141774749582367"], ["2786116088662035069066189777680990419908396521409751409107279532930231316343", "3144957507973559441671210571674558258320337923190994230670584137810138721781"]]'
Run completed successfully, returning []
./tools/cairo1-run ./target/dev/starkswirl.sierra.json \ git:(main|…1
--layout recursive \
--air_public_input public_input.json \
--air_private_input private_input.json \
--trace_file trace \
--memory_file memory \
--proof_mode \
--args '10 11 1129815197211541481934112806673325772687763881719835256646064516195041515616 2786116088662035069066189777680990419908396521409751409107279532930231316343 1715556295878999972957474070461491436465516895623517391664966219403971354436 1 8 [1953494062994346031473676762198846975365628378496072945247633132004575093152 126113334767614658176188594640568076708777092902948464648204141774749582367] [2786116088662035069066189777680990419908396521409751409107279532930231316343 3144957507973559441671210571674558258320337923190994230670584137810138721781]'
Error: IlegalInputValue
The repo is public
Expected behavior generate the artifacts
What version/commit are you on?
latest from main branch, 8b5d1c6
Additional context I try it with the v1.0.0-rc3 and the error is different
Error: VirtualMachine(Memory(AddressNotRelocatable))
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (7 by maintainers)
@FilipLaurentiu If you don’t mind I will pass this error as solved Any problem just ping us
To finish, here are the layouts that you could use:
starknetstarknet_with_keccakrecursive_large_outputrecursive_with_poseidonall_cairoI would recommend you to use
recursive_with_poseidonsince it supports just the builtns you need.Hi @FilipLaurentiu!
Regarding the verifier, I am not entirely sure of the current state of the Herodotus Integrity Verifier. The prover and verifier need to implement certain constraints to verify each built-in. I really don’t know if the Herodotus verifier implements those built-in constraints, but it should. Maybe you can ask them directly.
Hi @FilipLaurentiu ! We will take a look at the error