cairo-vm-go icon indicating copy to clipboard operation
cairo-vm-go copied to clipboard

Blake2sFinalize

Open cicr99 opened this issue 11 months ago • 2 comments

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

cicr99 avatar Mar 13 '24 12:03 cicr99