Sign inSign up

draklowell/dcn

By draklowell

Updated over 4 years ago

Decentralized Computer Network Node

Image
0

191

draklowell/dcn repository overview

Node

github | dockerhub

Client

github | pypi

Setup guide

Using DockerHub
docker pull draklowell/dcn
Using github
Linux and MacOS
git clone https://github.com/draklowell/DCNNode && cd DCNNode && docker build .
Windows

Download node and in downloaded folder run

docker build .
Dependencies
  1. requests ( 2.22.0 )
  2. ansicolors ( 1.1.8 )
  3. pycryptodome ( 3.9.9 )
  4. pyopenssl ( 20.0.1 )

Info

Privacy

Connection between two nodes is wrapped by TLSv1.2 ( without certificate verification ), but packet is opened, and can be read by any user.

High-level protocols conflict

To avoid protocol conflicts, we recommend to use protocol sign, it is some bytes in begin of packet, that indicate what protocol is using

License

Apache License 2.0

Using guide

Configuration file

Config file is in JSON format. Default:

{
    "DEBUG": {
        "FILE": "debug.log",
        "TIMEFORMAT": "%Y-%m-%d %H:%M:%S"
    },
    "ADDRESS": "0.0.0.0:300",
    "FRIENDLY_HOSTS": []
}

ADDRESS - address, where node accepts connections

FRIENDLY_HOSTS - other known nodes in format address:port ( example: 1.2.3.4:300 ), also it request official nodes, from official tracker

Debug

FILE - debug file

TIMEFORMAT - debug time format :

DirectiveMeaningExample
%aAbbreviated weekday name.Sun, Mon, ...
%AFull weekday name.Sunday, Monday, ...
%wWeekday as a decimal number.0, 1, ..., 6
%dDay of the month as a zero-padded decimal.01, 02, ..., 31
%-dDay of the month as a decimal number.1, 2, ..., 30
%bAbbreviated month name.Jan, Feb, ..., Dec
%BFull month name.January, February, ...
%mMonth as a zero-padded decimal number.01, 02, ..., 12
%-mMonth as a decimal number.1, 2, ..., 12
%yYear without century as a zero-padded decimal number.00, 01, ..., 99
%-yYear without century as a decimal number.0, 1, ..., 99
%YYear with century as a decimal number.2013, 2019 etc.
%HHour (24-hour clock) as a zero-padded decimal number.00, 01, ..., 23
%-HHour (24-hour clock) as a decimal number.0, 1, ..., 23
%IHour (12-hour clock) as a zero-padded decimal number.01, 02, ..., 12
%-IHour (12-hour clock) as a decimal number.1, 2, ... 12
%pLocale’s AM or PM.AM, PM
%MMinute as a zero-padded decimal number.00, 01, ..., 59
%-MMinute as a decimal number.0, 1, ..., 59
%SSecond as a zero-padded decimal number.00, 01, ..., 59
%-SSecond as a decimal number.0, 1, ..., 59
%fMicrosecond as a decimal number, zero-padded on the left.000000 - 999999
%zUTC offset in the form +HHMM or -HHMM.
%ZTime zone name.
%jDay of the year as a zero-padded decimal number.001, 002, ..., 366
%-jDay of the year as a decimal number.1, 2, ..., 366
%UWeek number of the year (Sunday as the first day of the week). All days in a new year preceding the first Sunday are considered to be in week 0.00, 01, ..., 53
%WWeek number of the year (Monday as the first day of the week). All days in a new year preceding the first Monday are considered to be in week 0.00, 01, ..., 53
%cLocale’s appropriate date and time representation.Mon Sep 30 07:06:05 2013
%xLocale’s appropriate date representation.09/30/13
%XLocale’s appropriate time representation.07:06:05
%%A literal '%' character.%

( table from programiz.com)

Tag summary

Content type

Image

Digest

Size

69.4 MB

Last updated

over 4 years ago

docker pull draklowell/dcn