Tox Bootstrap Node
A server application to run tox bootstrap node.
Building and running
You'll need Rust >= 1.26.0 and libsodium.
Build with:
Run with:
If you want to change default log level you can do it via setting RUST_LOG
environment variable. For example, if you want to see all received and sent
packets you can change log level to trace
for tox_node
:
RUST_LOG=tox_node=trace
Also it's possible to use syslog via --log-type
parameter.
MOTD
MOTD is an abbreviation for The Message of The Day. Tox bootstrap nodes have a
special packet kind called BootstrapInfo
to retrieve the MOTD alongside with
version. Our node supports basic templates for the MOTD that can be specified
via --motd
key. It's possible to use the following variables surrounded by
{{ }}
:
start_date
: time when the node was starteduptime
: uptime in the format 'XX days XX hours XX minutes'
Keys generation
In order to run node you have to provide either secret key or path to a keys file.
Keys file
Keys file is a binary file with sequentially stored public and secret keys. Path
to a keys file can be specified via --keys-file
argument. If file doesn't
exist it will be created with automatically generated keys. The format of this
file is compatible with tox-bootstrapd
.
You may also extract the key from the file:
Secret key
Secret key is a hexadecimal string of size 32 bytes. It can be specified via
TOX_SECRET_KEY
environment variable. Any random string will fit but note that
only strong random generators should be used to generate a secret key. Here are
some examples how you can do it in the terminal:
| ;