// SPDX-License-Identifier: MIT pragma solidity 0.8.28; /// @notice Gas study: compares bounded public storage to a fixed-size digest. contract GasStudy { bytes public rawDemo; bytes32 public commitment; error TooLarge(); function storeRaw(bytes calldata data) external { if (data.length > 1024) revert TooLarge(); rawDemo = data; } function storeDigest(bytes32 digest) external { commitment = digest; } }