GithubHelp home page GithubHelp logo

shagege / blackbox Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 75 KB

Surveillance tool using a permissionless blockchain

License: MIT License

Python 77.82% HTML 17.01% CSS 4.51% Shell 0.31% Dockerfile 0.36%
blockchain cryptography python proof-of-work p2p distributed-ledger

blackbox's Introduction

Blackbox

There's been some big privacy and censorship problems coming from Facebook, Twitter and alike social medias.

You can't be sure that what you post will stay forever or be suppressed by those companies because they don’t like what you've said, or because someone else (e.g., the government) told them to take it down. There's also more and more individuals trying to delete social media posts because they want to cover something they said at some point in time.

Blackbox puts everything an individual do or say on social media on a permisionless blockchain built from scratch. Anyone can join and confirm through proof-of-work that someone said something at some point in time. It is censorship resistant and acts as a great surveillance tool against malicious individuals.

Requirements

Installation

Run in the root directory

./setup.sh

Configuration

You'll need to get API access for Twitter and Instagram.

Once you have your access tokens, you can edit the config.json file.

Kademlia

Blackbox utilizes the Kademlia Protocol. Kademlia is a distributed hash table for building decentralized peer-to-peer networks (used in well known products like BitTorrent or Ethereum).

Block Explorer

Blackbox's block explorer is built using Django. You can run your own server instance by running at the root directory python3 explorer/manage.py runserver.

By default the explorer is available at 127.0.0.1:8000.

Running blackbox

The bin is placed in the bin/ sub-directory. To run in for-ground:

./bin/run

To list all available options, run ./bin/run --help . You need to specify an ip using --ip. If you're running on your local machine, use 127.0.0.1.

Running multiple instances of the program will need you to specify a port using --port. After launching the first instance blackbox will tell you which port it's currently using. Solo mining is a posibility but defeats the main purpose of a decentralized network.

All the data is stored in blackbox/blocks/ into blk*.dat files. How they are stored is similar to Bitcoin's approach. Blocks start with a magic byte, the block header, each social media ID alongside the data inside it encoded in base64.

License

Blackbox is available under the MIT license. See the LICENSE file for more info.

blackbox's People

Contributors

shagege avatar dependabot[bot] avatar

Stargazers

Mallory @ SMO avatar Antoine Baché avatar Oscar avatar

Watchers

 avatar Oscar avatar

Forkers

lxngoddess5321

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.