1SYBILSIM(8)                                                        SYBILSIM(8)
2
3
4

NAME

6       sybilsim -- Cjdns packet switch
7

SYNOPSIS

9       /usr/libexec/cjdns/sybilsim < config.json
10

DESCRIPTION

12       Sybilsim  reads  a list of nodes and peers from stdin and simulates the
13       corresponding mesh without any actual networking using the same code as
14       cjdroute.   This  is useful for testing and optimizing cjdroute.  Every
15       node must have a valid cjdns private key. The makekeys(1)  utility  can
16       be useful for scripts that generate the config.
17

USAGE

19       Example config:
20
21
22           {
23             "nodes": {
24           "alice": {
25             "privateKey":
26               "5e2295679394e5e1db67c238abbc10292ad9b127904394c52cc5fff39383e920",
27             "peers": []
28           },
29           "bob": {
30             "privateKey":
31               "6569bf3f0d168faa6dfb2912f8ee5ee9b938319e97618fdf06caed73b1aad1cc",
32             "peers": [ "alice" ]
33           }
34             }
35           }
36
37
38
39       Example use:
40
41
42           makekeys | head -20 >keys.txt
43           node /usr/libexec/cjdns/tools/lib/makesim.js keys.txt |
44           /usr/libexec/cjdns/sybilsim
45
46
47

SEE ALSO

49       makekeys(1), cjdroute(1)
50
51
52
53                                  April 2020                       SYBILSIM(8)
Impressum