Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guelowrd/fruity-lib
a public Noir library repo containing Noir functions implemented and used by @madztheo & @guelowrd
https://github.com/guelowrd/fruity-lib
Last synced: 3 months ago
JSON representation
a public Noir library repo containing Noir functions implemented and used by @madztheo & @guelowrd
- Host: GitHub
- URL: https://github.com/guelowrd/fruity-lib
- Owner: guelowrd
- Created: 2023-06-26T11:02:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-08T14:06:51.000Z (over 1 year ago)
- Last Synced: 2024-04-12T21:50:45.183Z (7 months ago)
- Size: 121 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-noir - FruityFriends - Various circuits (Proof of Intersection, Proof of Proximity, Proof of Proper Secret) to be used in social applications (Projects / Social)
README
# Noir library by Wagmi Labs*
This is only a hub redirecting to the repos where we've implemented useful Noir functions that we're using in our apps:
1. Proof of Intersection
2. Proof of Proximity
3. Proof of Proper Secret## Using the library
1. Add the library to your Noir project dependencies in the `Nargo.toml` file, e.g. for `proof_of_intersection`
```toml
[dependencies]
proof_of_intersection = {tag = "v1.0.0", git = "https://github.com/fruity-labs/proof-of-intersection"}
```2. Import the library and function into your Noir code.
Example (taken from proof-of-intersection):
```rust
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);
// ...
}
```
## ThanksCredit to [@critesjosh](https://github.com/critesjosh) for [the public Noir library demo](https://github.com/critesjosh/noir-lib-demo).
And cheers to [@signorecello](https://github.com/signorecello) for his guidance and review.--
**(Wagmi Labs == [@madztheo](https://github.com/madztheo) & [@guelowrd](https://github.com/guelowrd), creators of [Fruity Friends](https://github.com/madztheo/zk-fruits-front-end))*