Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
/ sha256_64B Public archive

sha256 hash of batches of 64B blocks in parallel via pure asm hashtree

Notifications You must be signed in to change notification settings

status-im/sha256_64B

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Nim wrapper for https://github.com/prysmaticlabs/hashtree which is about SHA256 hashing batches of 64B blocks in parallel which can be useful to hash a Merkle Tree.

Building & Testing

It should just work to:

nimble install sha256_64B

You could then do an out-of-tree test by

    cp -pr tests /tmp
    cd /tmp/tests
    nim r --cc:gcc tests/autoselect.nim
dig: [[245, 165, 253, 66, 209, 106, 32, 48, 39, 152, 239, 110, 211, 9, 151, 155, 67, 0, 61, 35, 32, 217, 240, 232, 234, 152, 49, 169, 39, 89, 251, 75]]

(If you have cligen installed then you can also compile tests/bench. On Windows, you may need a large -b= to get a long enough test for meaningful times.)

Supported platforms

The optimization so far is only done on amd64/x86_64 and some ARM. Object files for libhashtree.a are only provided for Linux, Windows, & OSX. (This should be made more specific in a few ways.)

License

Licensed and distributed under either of

or

at your option. These files may not be copied, modified, or distributed except according to those terms.

About

sha256 hash of batches of 64B blocks in parallel via pure asm hashtree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages