Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add solidity like bytes which supports keccak and sha256 (#184)
<!--- Please provide a general summary of your changes in the title above --> ## Pull Request type <!-- Please try to limit your pull request to one type; submit multiple pull requests if needed. --> Please check the type of change your PR introduces: - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no API changes) - [ ] Build-related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior? <!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> `bytes` is an implementation similar to Solidity bytes written in Cairo 1. It is notable for its built-in implementation of `Keccak` and `Sha256` hash functions, offering convenience for migrating EVM Contracts written in Solidity to the Starknet ecosystem. Issue Number: N/A ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Add bytes implementation - Add bytes unit tests ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this does introduce a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information The implementation of `bytes` differs from `byte_array` in corelib. Each bytes array element stores 16 bytes and is designed to calculate byte stream hashes more quickly by trading more space for less computational cost. <!-- Any other information that is important to this PR, such as screenshots of how the component looks before and after the change. -->
- Loading branch information