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 #63

Closed HarryR closed 5 years ago

HarryR commented 5 years ago

Take a vector of bits, and perform the appropriate number of SHA256 rounds chained together then suffixed with the message length.

This means that an SHA256 function with say... 128 bytes of input can be made which matches on-chain SHA256 function with the same input.