Closed odesenfans closed 5 months ago
Some more backporting from the bootloader hints. This new module allows to get the hash of a program to replace the functionality of the cairo-hash-program
command. I'm integrating that feature in the new Stone CLI and I thought it made sense to integrate it here. Let me know what you think!
Attention: Patch coverage is 96.73913%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 96.71%. Comparing base (
105ca3a
) to head (09e4be2
).
Files | Patch % | Lines |
---|---|---|
vm/src/program_hash.rs | 96.73% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR seems ready for merging, can anyone give it the second approval? @Oppen @juanbono
Problem: computing the hash of a program is useful to verify its integrity. This hash is also used for different purposes, like when loading a program with the bootloader.
Solution: add a
program_hash
module and thecompute_program_hash_chain
function that computes the hash of a stripped program, making it usable withProgram
andCairoPie
objects.Description of the pull request changes and motivation.
Checklist