NethermindEth / cairo-vm-go

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

`NondetElementsOverTwo` hint (poseidon builtin hint) #492

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#L76C16-L76C59

hint is:

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

potential hintcode: "memory[ap] = to_felt_or_relocatable(ids.elements_end - ids.elements >= 2)"