Giter Site home page Giter Site logo

zerodao / ourspace Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 6.0 522 KB

Decentralized social networks and reputation systems.

License: Apache License 2.0

Rust 99.04% Shell 0.08% Handlebars 0.81% Makefile 0.07%
substrate substrate-node blockchain social-network reputation-system

ourspace's Introduction

Logo

Substrate version codecov License
Twitter URL Discord Medium

We are planning the next version. It adds to the graph database by fetching social graph data from each chain. Not only does it run the TIR algorithm to calculate reputation, but also, anyone can deploy smart contracts to calculate the social graph.

For technical and guides, please refer to the ZeroDAO Docs.

1. Introduction

We define Ourspace as a public resource, including a social network, a reputation system. the Ourspace social network solves the incentive dilemma that currently exists in blockchain social networks, while incentivizing good behavior makes good behavior disappear. Imagine what Twitter would look like if you could get $1 for posting a tweet. Two-factor theory even concludes that security, salary, fringe benefits, good pay is not Motivators but Hygiene factors. Hygiene factors that do not give positive satisfaction or lead to higher motivation.

Ourspace social network solves the incentive dilemma by amplifying social motivation and internalizing external motivation.

In the Ourspace network, we still quantify user contributions and settle them into Tokens, which we call social currency. It is frozen and at some point assigned to users trusted by the owner, it is also social currency and goes on to be shared. The user's social motivation is amplified. We use to shared information, now we share value.

Ourspace social network brought us the reputation system and we proposed the TIR algorithm to compute the graph and obtain the reputation of each user. TIR is difficult to compute but easy to verify on-chain. This feature makes Ourspace's reputation system completely decentralized. At the same time, it has strong ability to prevent Sybil Attack to meet the security needs of financial products and on-chain governance. Ourspace also brings credit finance, zero-cost payments, and other applications to the blockchain.

Web3 Grants

2. Building

Initial Setup

Setup rust

curl https://sh.rustup.rs -sSf | sh
rustup update stable

You will also need to install the following packages:

Mac

brew install cmake pkg-config openssl git llvm

Linux

sudo apt install cmake pkg-config libssl-dev git clang libclang-dev

More

Ourspace is based on Substrate, for more information please go to Substrate.

Installation

make init

Build

make build-release

3. Dev Network

1. Run as dev

make run-dev

2. Run as local

Start the local blockchain node using the alice account by running the following command:

./target/release/ourspace \
  --base-path /tmp/alice \
  --chain local \
  --alice \
  --node-key 0000000000000000000000000000000000000000000000000000000000000001
  --validator

Start a second local blockchain node using the bob account by running the following command:

./target/release/ourspace \
  --base-path /tmp/bob \
  --chain local \
  --bob \
  --port 30334 \
  --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
  --validator

4. Development

Test All

make test

Purge the development chain

make purge-dev

Docker

Start a single chain

./scripts/docker_run.sh

You can also

# Run Ourspace node without re-compiling
./scripts/docker_run.sh ./target/release/ourspace --dev --ws-external

# Purge the local dev chain
./scripts/docker_run.sh ./target/release/ourspace purge-chain --dev

References

ourspace's People

Contributors

darkinglee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.