coder5876 / libsnark-tutorial Goto Github PK
View Code? Open in Web Editor NEWTutorial and example code for using libsnark
License: MIT License
Tutorial and example code for using libsnark
License: MIT License
In Verifier.sol
Function verify(unit[] input, ...)
The public input seems to be restricted to unit, if I want to check that a given hash is the hash of a preimage (in that case the public input would be a bytes32), would that also work? If not could we make some minor changes so that would work?
Following the tutorial directly, I had to do this step before the step to build with cmake
.
If you try to build and see that libsnark
is missing a CMakeLists.txt
file then you should run git submodule init && git submodule update
after git clone
.
This is on macOS but shouldn't matter.
The error I am getting while running cmake
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/src/depends/libsnark/depends/libff/libff/SODIUM_INCLUDE_DIR
used as include directory in directory /src/depends/libsnark/depends/libff/libff
SODIUM_LIBRARY
linked by target "ff" in directory /src/depends/libsnark/depends/libff/libff
-- Configuring incomplete, errors occurred!
See also "/src/depends/libsnark/build/CMakeFiles/CMakeOutput.log".
Hi, thanks for this repo. I want to learn that how to implement zk-snark, algorithms etc. Is it possible that fix the broken link? The link is: https://media.consensys.net/introduction-to-zksnarks-with-examples-3283b554fc3b
Thanks.
In the tutorial it should be make ..
, instead of make
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.