Home

Awesome

pastenym

This project is inspired from pastebin service. The main goal is to offer a solution for sharing text with Nym products to offer full anonymity, even on metadata level

Check here to run you own backend

Demo

Get shared text: https://pastenym.ch/#/jD6Vhmrz&key=b2d6ae002a1674daa43a07be7fc4f01c

Share a text: http://pastenym.ch/

What Nym is developping ?

Nym is developing the infrastructure to prevent this data leakage by protecting every packet’s metadata at the network and application layers.

Architecture

<img src="./resources/img/nym-platform.png" alt="drawing" width="50%"/>

How pastenym service will use Nym product

Your text is sent to a client which is connected to the Nym network and which stores it in a database (eventually a more distributed solution will be considered),

This system allows you to share information while respecting your privacy by protecting your data and metadata.

On the side of No Trust Verify we only see an anonymous id when sending the text, and therefore impossible to know who is behind and from where the data was sent. Moreover, data is end-to-end encrypted: your browser generates a key used to encrypt the text, the key is placed in the URL you share with your friends and is used in their browser to decrypt the text received by the server.

Schema

<img src="./resources/img/paste.jpg" alt="drawing" width="60%"/>

Init the project

First a nym-client should be started

Nym client

  1. Download nym-client
  2. Give exec permissions and init the client
chmod u+x nym-client
./nym-client init --id pastenym
  1. Run the client ./nym-client run --id pastenym

It uses pipenv

  1. Go to backend/
  2. pipenv shell to start the python env
  3. pipenv install to install the dependancies from the PipFile
  4. python main.py to start the service. On the first run, it will create and initialize a local database at backend/data/data.db.

With Docker

git clone https://github.com/notrustverify/pastenym
cd pastenym
cp example.docker-compose.yml docker-compose.yml
cp env.docker.example env.docker
chown -R 10000:10000 nym-client/nym-data/

docker compose up --build  -d

To retrieve the nym-client id of the backend use docker compose logs nym-client --since 10m| grep -E ".*address of this.*"

Contribute

If you wish to contribute to the project, you will need to run the Nym client and Backend as explained in the Init part above AND run a local frontend.

Donate

If you enjoy pastenym, please consider buying us a cup of coffee. We worked hard to make it free and plan to spend alot of time supporting it. Donations are greatly appreciated.

The best way to support us is by delegated NYM to our nodes

Frontend

Use the dedicated repository avalaible here

Structure