HarryR / ethsnarks

A toolkit for viable zk-SNARKS on Ethereum, Web, Mobile and Desktop
GNU Lesser General Public License v3.0
240 stars 57 forks source link

N-bit sha256 gadget #78

Closed HarryR closed 5 years ago

HarryR commented 5 years ago

Fixes #63

This gadget takes a variable number of bits and does an SHA-256 hash which is compatible with libcrypto, Python and EVM.

This gadget can be used to verify large amounts of data passed in from Ethereum or other system, using only a single public input.

HarryR commented 5 years ago

Node-FFI is failing to build on OSX.

Aside from that, the C++ and Python tests pass on OSX and Linux, including those for the sha256_many gadget.