ICompressor

Git Source

Author: Matter Labs

The interface for the Compressor contract, responsible for verifying the correctness of the compression of the state diffs and bytecodes.

Note: security-contact: security@matterlabs.dev

Functions

publishCompressedBytecode

function publishCompressedBytecode(
  bytes calldata _bytecode,
  bytes calldata _rawCompressedData
) external returns (bytes32 bytecodeHash);

verifyCompressedStateDiffs

function verifyCompressedStateDiffs(
  uint256 _numberOfStateDiffs,
  uint256 _enumerationIndexSize,
  bytes calldata _stateDiffs,
  bytes calldata _compressedStateDiffs
) external returns (bytes32 stateDiffHash);