Skip to content

Commit

Permalink
feat(types): introduce state diff record type and compression (#194)
Browse files Browse the repository at this point in the history
# What ❔

Introduces the `StateDiffRecord` type and advanced compression for this
type.

## Why ❔

In boojum, all storage writes will be replaced with `StateDiffRecord`
types. In order to cut down on the number of bytes published to L1 we
want to compress this data as much as possible.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.

---------

Co-authored-by: Yury Akudovich <ya@matterlabs.dev>
  • Loading branch information
koloz193 and yorik authored Oct 16, 2023
1 parent 46aa17d commit ccf753c
Show file tree
Hide file tree
Showing 3 changed files with 903 additions and 71 deletions.
71 changes: 0 additions & 71 deletions core/lib/types/src/storage/writes.rs

This file was deleted.

Loading

0 comments on commit ccf753c

Please sign in to comment.