HastilyConceivedCreatures / smadra

Smartly Dressed Addresses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smartly Dressed Addresses

SmaDra Logo

Smartly Dressed Addresses, or "SmaDra", is a smart contract collecting zk-claims (such as human or adult) for addresses. Each claim is backed by a zk-certificate that is cryptographically verified on-chain. The claims are known to be true, under certain assumptions, without revealing anything about the address owner.

It's called "Smartly Dressed Addresses" since it kind of dresses addresses with zk-claims, making the address more attractive to work with.

SmaDra is not a ready-for-production complete system, but rather a PoC showing how to build such a component for other systems.

Build

Smadra is built with Foundry.

To build it run

forge compile

Test

There are no tests yet for Smadra, but there is a deployment script that tests the basic functionality. The script uses an example ZK verifier contract which was built by the Noir program located noir/verify_certificates_for_address.

To run the script you first need to launch anvil. Then do:

forge script script/onchainClaimSystem.s.sol:VerifyClaimScript --fork-url http://localhost:8545 --broadcast

About

Smartly Dressed Addresses

License:GNU Lesser General Public License v3.0


Languages

Language:Solidity 71.7%Language:JavaScript 22.6%Language:Ruby 4.5%Language:Python 0.9%Language:Shell 0.2%Language:Roff 0.1%Language:Makefile 0.0%Language:Nix 0.0%