NethermindEth / cairo-vm-go

A virtual machine for Cairo written in Go
MIT License
70 stars 43 forks source link

`NondetElementsOverTen` hint (poseidon builtin hint) #491

Closed TAdev0 closed 1 week ago

TAdev0 commented 1 week ago

https://github.com/starkware-libs/cairo-lang/blob/efa9648f57568aad8f8a13fbf027d2de7c63c2c0/src/starkware/cairo/common/builtin_poseidon/poseidon.cairo#L39

the hint is

 %{ ids.elements_end - ids.elements >= 10 %}

hintcode should possibly be


  "memory[ap] = to_felt_or_relocatable(ids.elements_end - ids.elements >= 10)"