cairo-vm-go
cairo-vm-go copied to clipboard
Blake2sFinalize
Finalizes the BLAKE2s hashing process. It involves asserting the packed instances and input chunk size, preparing a dummy message, computing the hash with modified initialization vectors, and adding padding to align with the number of packed instances.
Reference: https://github.com/starkware-libs/cairo-lang/blob/efa9648f57568aad8f8a13fbf027d2de7c63c2c0/src/starkware/cairo/common/cairo_blake2s/blake2s.cairo#L184
This hint needs to implement blake2s_compress
method which is also used in #279, so whichever is solved first will make the other one easier