Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

TryQuiet/waggle

Folders and files

NameName
Last commit message
Last commit date
Nov 26, 2021
Jul 28, 2021
Dec 16, 2021
Jun 30, 2021
May 24, 2021
Nov 16, 2020
Sep 7, 2021
Aug 20, 2021
Nov 16, 2020
Dec 13, 2021
Jul 5, 2021
Sep 21, 2021
Jul 19, 2021
Aug 11, 2021
Mar 11, 2021
Mar 23, 2021
Dec 14, 2021
May 21, 2021
Aug 16, 2021
Dec 15, 2021
Dec 15, 2021
Nov 25, 2020
Oct 19, 2021

Repository files navigation

Waggle

Communication manager for Zbay project. Uses OrbitDB, Libp2p, Tor and websockets.

Installation

Requirements:

  • node@12
  • typescript
  • ts-node

Install dependencies:

npm install

Running waggle separately (without ZbayLite)

Run entryNode.ts

ts-node entryNode.ts

With logs:

DEBUG=waggle:* ts-node entryNode.ts

By default each run will create new onion address and new peerId. If you want to keep them persistent, set env variables:

PEERID_FILE=myPeerId.json
HIDDEN_SERVICE_SECRET=<myHiddenTorServiceSecret>

PEERID_FILE must point to .json file with peer data (see entryNodePeerId.json). Peer data can be obtained by:

import PeerId from 'peer-id'
const peerId = await PeerId.create()
peerId.toJSON()

HIDDEN_SERVICE_SECRET can be retrieved from Tor.createNewHiddenService.

If you don't want to connect to our entry node, set also BOOTSTRAP_ADDRS env variable. It's a multiaddrs of one of your local nodes:

BOOTSTRAP_ADDRS=/dns4/<yourBootstrapNodeOnionAddress>/tcp/<yourBootstrapNodePort>/ws/p2p/<yourBootstrapNodePeerId>

Local separated network of waggle's

docker-compose helps to create a local network of nodes (waggles). This is purely for testing purposes. By default it creates 3 services, one of them being the entry node and the rest regular nodes.

docker-compose build
docker-compose up  // Run default - 3 peers

docker-compose up --scale peer=3  // Run with scaled number of regular peers 

Currently there is no db data in this network - to be added.

Architecture

// TODO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages