GithubHelp home page GithubHelp logo

circuit-breaker-mosaic's Introduction

Mosaic

Live Demo: TBA

TBA

Motivation

So often, there is the problem of identity, sybil resistance etc. Many try to create solutions to this. There are plenty of them out there. One of the best solutions is around groups, but it still has many problems. To how many groups can a person belong? Are groups interconnected? Trust score in a group affect another group?

As human beings, we have connections, friends. Friends which we trust. And our trustworthines percived by others is based on our friends. Mosaic is really just about that. The user select its friends, and their trust score is what makes the user trust score. If one of them is penalized for bad behavior, so the user is.

This solves many problems. When doing on-chain activities, you won't need to know the user. You would make decisions based on the score. And because users can only join if invited by existing users and the existing users have very limited permissions to invite, then this restricts the network to well trusted friends.

The trust score only increases as the user performs good actions. An example, there is a plastic collection project somewhere. The user joins the program through a friend. It starts with X score. Suppose the reward is Z, if the user has 50% score, it will only get 50% of the reward, incentivizing the user to perform good action to increase it's score and increase reward.

Prerequisites

Getting Started

Step 1: Clone the repository

With circuits

Step 2: Test the circuits

Note: It's possible to test with nargo and hardhat. They both test the circuit in a different way. Testing with hardhat is closer to actual usage.

# test with nargo
# needs to be in <root>/circuits/circuits
nargo test --show-output

# test with hardhat
# needs to be in <root>/circuits
npx hardhat test

Step 3: Write circuits and tests

With smart contracts

Step 2: Test the smart contracts

# test with hardhat
npx hardhat test

Step 3: Write smart contracts and tests

Project Structure

Name Description
circuits/ Noir project with circuits for Zero Knowledge.
contracts/ Smart contracts folder.

circuit-breaker-mosaic's People

Contributors

vibern0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.