Skip to content

Commit

Permalink
Implement CairoPie::read_zip_file (#1729)
Browse files Browse the repository at this point in the history
* First steps

* Deserialize prime

* Impl CairoPieMemory::from_bytes

* Finish read_zip_file

* Fix endianness

* Impl deserialize for hash additional data

* Impl custom deser for signature additional data

* Deserialize hash additional data as a sequence

* Add more test cases

* Clippy

* Remove todo from pre-existing code

* Use a constant for prime

* Fix imports

* Remove files generated by test

* Add changelog entry

* Fix imports

* Fix imports

* Use ok_or_else instead or ok_or

* Create HashMap with capacity upon deserialization

Co-authored-by: Mario Rugiero <[email protected]>

* Use a BufReader to read json files in zip

---------

Co-authored-by: Mario Rugiero <[email protected]>
  • Loading branch information
fmoletta and Oppen authored Apr 24, 2024
1 parent 87dcd17 commit 3f1f9ec
Show file tree
Hide file tree
Showing 2 changed files with 297 additions and 80 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

* refactor: Add `lib.rs` to cairo1-run[#1714](https://github.com/lambdaclass/cairo-vm/pull/1714)

* feat: Implement `CairoPie::read_zip_file`[#1729](https://github.com/lambdaclass/cairo-vm/pull/1729)

* feat: Implement `extend_additional_data` for `BuiltinRunner`[#1726](https://github.com/lambdaclass/cairo-vm/pull/1726)

* BREAKING: Set dynamic params as null by default on air public input [#1716](https://github.com/lambdaclass/cairo-vm/pull/1716)
Expand Down
Loading

0 comments on commit 3f1f9ec

Please sign in to comment.