Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rymnc/reinforced-concrete-huff
Reinforced Concrete Hash Function for the bn254 curve, in Huff
https://github.com/rymnc/reinforced-concrete-huff
Last synced: 23 days ago
JSON representation
Reinforced Concrete Hash Function for the bn254 curve, in Huff
- Host: GitHub
- URL: https://github.com/rymnc/reinforced-concrete-huff
- Owner: rymnc
- License: unlicense
- Created: 2023-10-25T18:24:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-26T11:24:12.000Z (5 months ago)
- Last Synced: 2024-10-14T21:50:25.956Z (about 1 month ago)
- Language: Solidity
- Size: 49.8 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Reinforced-Concrete-Huff
Ports [Reinforced Concrete](https://eprint.iacr.org/2021/1038.pdf) Hash function (bn254 field) into Huff.
Provides full test parity with the existing implementation in [rust](https://extgit.iaik.tugraz.at/krypto/zkfriendlyhashzoo/-/blob/33fe9952682eca1337ac7f947b9ebe366faeda9c/plain_impls/src/reinforced_concrete/reinforced_concrete.rs)
> Note: This implementation consumes `24099` gas.
## Deployments
| Network | Address |
|---------|--------------------------------------------|
| Sepolia | [0x2658637ccfc5f9ca7607138b61270d5d1650081a](./broadcast/ReinforcedConcrete.s.sol/11155111/run-latest.json) |## Usage
### Build
```shell
$ forge build
```### Test
```shell
$ forge test
```### Format
```shell
$ forge fmt
```### Gas Snapshots
```shell
$ forge snapshot
```### Help
```shell
$ forge --help
```## License
[The Unlicense](https://github.com/rymnc/reinforced-concrete-huff/blob/master/LICENSE)
## Disclaimer
_These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk._