Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merkle tee with sha256?! #120

Open
cryptonian-base opened this issue Apr 19, 2019 · 1 comment
Open

merkle tee with sha256?! #120

cryptonian-base opened this issue Apr 19, 2019 · 1 comment

Comments

@cryptonian-base
Copy link

I've been trying to make zkSNARK for merkle tree with sha256.

Merkle tree with mimc is given as an example in this repo but replacing mimc with sha256_full or sha256_many has been found not that easy task.

Anyone has tried the same thing? Any advice will be welcome :)

@HarryR
Copy link
Owner

HarryR commented Apr 20, 2019

For merkle-tree with SHA256, see an example at:

https://github.com/barryWhiteHat/miximus/blob/master/src/main.cpp#L84

This uses the two gadgets from libsnark:

  • merkle_authentication_path_variable
  • merkle_tree_check_read_gadget

These can be used in-conjunction with the SHA256 gadgets from Ethsnarks to make hashes which are compatible with Ethereum.

An Ethereum-compatible solidity library for doing merkle tree with SHA256 is:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants