1sybilsim(8)                   Cjdns packet switch                  sybilsim(8)
2
3
4
5   SYNOPSIS
6       /usr/libexec/cjdns/sybilsim < config.json
7
8   DESCRIPTION
9       Sybilsim  reads  a list of nodes and peers from stdin and simulates the
10       corresponding mesh without any actual networking using the same code as
11       cjdroute.   This  is useful for testing and optimizing cjdroute.  Every
12       node must have a valid cjdns private key.  The makekeys(1) utility  can
13       be useful for scripts that generate the config.
14
15   USAGE
16       Example config:
17
18              {
19                "nodes": {
20              "alice": {
21                "privateKey":
22                  "5e2295679394e5e1db67c238abbc10292ad9b127904394c52cc5fff39383e920",
23                "peers": []
24              },
25              "bob": {
26                "privateKey":
27                  "6569bf3f0d168faa6dfb2912f8ee5ee9b938319e97618fdf06caed73b1aad1cc",
28                "peers": [ "alice" ]
29              }
30                }
31              }
32
33       Example use:
34
35              makekeys | head -20 >keys.txt
36              node /usr/libexec/cjdns/tools/lib/makesim.js keys.txt |
37              /usr/libexec/cjdns/sybilsim
38
39   SEE ALSO
40       makekeys(1), cjdroute(1)
41
42
43
44                                                                   sybilsim(8)
Impressum