/relay

Primary LanguagePythonMIT LicenseMIT

Code style: black

https://circleci.com/gh/trustlines-protocol/relay.svg?style=svg

trustlines relay server

Installation

Prerequisites

  • Python 3.6 or up
  • pip
Installation on Ubuntu
sudo apt install build-essential python3-dev libsecp256k1-dev python3-virtualenv virtualenv pkg-config libssl-dev automake autoconf libtool libgraphviz-dev git

Setup

To install all needed development dependencies run the following commands in a fresh virtualenv:

git clone https://github.com/trustlines-protocol/relay.git
cd relay
pip install -c constraints.txt -r requirements.txt
pip install -c constraints.txt -e .
pre-commit install
pre-commit run -a

The last two commands will install a git pre-commit hook and intitialize the pre-commit installation. The installed git pre-commit hooks run flake8 and black among other things when committing changes to the git repository.

We also need to deploy trustlines smart contracts on a local node or testrpc as described here.

Add the address of the deployed Currency Network to the file /relay/networks:

Usage

cd relay
python trustlines.py

Docs

Change log

See CHANGELOG.