An open API service indexing awesome lists of open source software.

https://github.com/longcipher/calldata-compressor-rs

Ethereum transaction calldata compressor, designed for layer 2
https://github.com/longcipher/calldata-compressor-rs

Last synced: 4 months ago
JSON representation

Ethereum transaction calldata compressor, designed for layer 2

Awesome Lists containing this project

README

          

# calldata-compressor-rs

A Compression algorithm for EVM abi.encoded data, especially for EVM calldata.

This project is a Rust implementation of the Calldata Compressor, based on [1inch/calldata-compressor](https://github.com/1inch/calldata-compressor)

## Features

* Adhere to [Rust API Guidelines](https://rust-lang.github.io/api-guidelines/)

## Test & Benchmark

Test

```sh
cargo nextest run -r
```

Benchmarks

```sh
# valgrind check
cargo valgrind test
valgrind --tool=dhat ./target/debug/deps/calldata_compressor-92413ab13fccdd8f
# generate flamegraph
cargo flamegraph --unit-test -- test_compress_big
```