basically any thing after --use_poseidon flag, will route it to hash in poseidon. And I could not even use this flag without some value ( which is pretty confusing ).
Would like to have , simply, if I pass --use_poseidon , will consider as true ( use poseidon hash for compute program hash ) if i don't pass that flag, use pedersen as before.
parser.add_argument(
"--use_poseidon",
action="store_true", # Automatically stores True if --use_poseidon is exist, otherwise False.
help="Use Poseidon hash.",
)
Context
https://github.com/starkware-libs/cairo-lang/blob/efa9648f57568aad8f8a13fbf027d2de7c63c2c0/src/starkware/cairo/bootloaders/hash_program.py#L41
--use_poseidon
flag is not working properly in this cli argumentbasically any thing after
--use_poseidon
flag, will route it to hash in poseidon. And I could not even use this flag without some value ( which is pretty confusing ).Suggested change
Would like to have , simply, if I pass
--use_poseidon
, will consider as true ( use poseidon hash for compute program hash ) if i don't pass that flag, use pedersen as before.