This is only a hub redirecting to the repos where we've implemented useful Noir functions that we're using in our apps:
- Proof of Intersection
- Proof of Proximity
- Proof of Proper Secret
- Add the library to your Noir project dependencies in the
Nargo.toml
file, e.g. forproof_of_intersection
[dependencies]
proof_of_intersection = {tag = "v1.0.0", git = "https://github.com/fruity-labs/proof-of-intersection"}
- Import the library and function into your Noir code.
Example (taken from proof-of-intersection):
use dep::std;
use dep::proof_of_intersection;
fn main(){
// ...
let it_s_a_match = proof_of_intersection::private_set_intersection_is_not_empty(commitment_a, commitment_b, priv_set_a, priv_set_b, intersection_is_empty);
std::println(it_s_a_match);
// ...
}
Credit to @critesjosh for the public Noir library demo. And cheers to @signorecello for his guidance and review.
--
*(Wagmi Labs == @madztheo & @guelowrd, creators of Fruity Friends)