NethermindEth / cairo-vm-go

A virtual machine for Cairo written in Go
MIT License
82 stars 49 forks source link

`Sha256AndBlake2sInput` hint #540

Closed TAdev0 closed 1 month ago

TAdev0 commented 2 months ago

ids.full_word = int(ids.n_bytes >= 4)

https://github.com/starkware-libs/cairo-lang/blob/0e4dab8a6065d80d1c726394f5d9d23cb451706a/src/starkware/starknet/security/whitelists/cairo_sha256.json#L118

https://github.com/starkware-libs/cairo-lang/blob/0e4dab8a6065d80d1c726394f5d9d23cb451706a/src/starkware/starknet/security/whitelists/cairo_blake2s.json#L129

https://github.com/lambdaclass/cairo-vm/blob/db7fff18c9c1312024ebf4119fcdfeba23657b12/cairo_programs/example_blake2s.cairo#L87C8-L87C45

https://github.com/lambdaclass/cairo-vm/blob/db7fff18c9c1312024ebf4119fcdfeba23657b12/vm/src/hint_processor/builtin_hint_processor/hint_code.rs#L803C11-L803C23

D240021 commented 1 month ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I'm a software developer that is entering to Web3 world. I was looking for my first issue and this looks interesting. Can I get it?

How I plan on tackling this issue

My intention is to analyze the files where I have to apply the changes, then I will perform their respective tests to ensure his correct functionaly.

TAdev0 commented 1 month ago

hi @D240021 sure go ahead. Feel free to ask if you have any question

TAdev0 commented 1 month ago

hi @D240021 i'm currently implementing the hint, given the fact that I need it for packedSha256 integration and its been 5 days and there is no PR.

Feel free to pick any available good first issue when you see one!