Added Sha1Hash type.
API refactor.