[![Build Status](https://travis-ci.org/ensdomains/solsha1.svg?branch=master)](https://travis-ci.org/ensdomains/solsha1) [![License](https://img.shields.io/badge/License-BSD--2--Clause-blue.svg)](LICENSE)


0.0.38 months ago3 years agoMinified + gzip package size for @ensdomains/solsha1 in KB



Build Status License

Pure-solidity implementation of the SHA1 hash function, heavily optimised using inline-assembly.

Gas consumption is approximately 38,000 gas per 512 bit block.

Getting Started

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:

npm install

Running tests

solsha1 uses truffle for its ethereum development environment. All tests can be run using truffle:

truffle test

To run linting, use solium:

solium --dir ./contracts

Including solsha1 in your project


npm install buffer --save

Built With

  • Truffle - Ethereum development environment


See also the list of contributors who participated in this project.


This project is licensed under the BSD 2-clause "Simplified" License - see the LICENSE file for details

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.