Pure-solidity implementation of the SHA1 hash function, heavily optimised using inline-assembly.
Gas consumption is approximately 38,000 gas per 512 bit block.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
solsha1 uses npm to manage dependencies, therefore the installation process is kept simple:
solsha1 uses truffle for its ethereum development environment. All tests can be run using truffle:
To run linting, use solium:
solium --dir ./contracts
Including solsha1 in your project
npm install buffer --save
- Truffle - Ethereum development environment
- Nick Johnson - Arachnid
See also the list of contributors who participated in this project.
This project is licensed under the BSD 3-clause "Simplified" License - see the LICENSE file for details