This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
README.doxy
144 lines (104 loc) · 4.97 KB
/
README.doxy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/**
\mainpage Dissent - Dining-Cryptographers, Shuffled-Send Network
\section Overview
This library will eventually provide a framework for constructing provably
anonymous overlays with the following key features.
The library requires Qt and CryptoPP and can be built using qmake on
dissent.pro (qmake dissent.pro)
While previous versions of the code focused on linkable libraries, because this
has unnecessary complexities, we plan to only support unified binaries.
\section Directory Structure
- ext - external sources required to build the code
- src - source code for the development branch
- src/Anonymous - Anonymity protocols
- src/Applications - User interfaces modules
- src/Connections - Message plane abstraction
- src/Crypto - Cryptography interface
- src/Messaging - Interfaces for abstracting communication
- src/Overlay - Manages connections
- src/Tests - Test code for classes in other folders
- src/Transports - Low level Networking interface
- src/Utils - Miscellaneous tools
- legacy/libdissent - original, unmodified C++ version
- legacy/py - original, unmodified Python version
\section Using
Build the command-line (ConsoleApp):
qmake console.pro
make
The default configuration will create a local overlay with 10 members, to use
it execute:
./console ./conf/local.conf
This will launch a command-line interface, where commands can be typed.
Type help to print out the commands.
\section Network Use
Inspect conf/slave_tcp.conf and conf/master_tcp.conf
Nodes using conf/master_tcp.conf are bootstrap peers
Nodes using conf/slave_tcp.conf should have bootstrap peers end points in
their remote_peers list
Binding to 0.0.0.0 will result in the first non-loop backdevice IP address
being used in exchanging IP address information.
After changing the configuration files and distributing the application,
begin by turning on the bootstrap peers first and then the client peers.
Afterward interaction is the same as discussed in the "Using" section.
\section Tests
This suite contains many tests using googletest[1], use qmake on test.pro
(qmake test.pro) to generate an appropriate makefile, which will create a
binary to test the code.
googletest was chosen because testing system code with QtTest would be quite
inefficient.
1 - http://code.google.com/p/googletest/
\section Logging and Debugging Output
Logging outputs are compiled in by default but can be disabled by uncommenting
the following lines in test.pro and console.pro:
#DEFINES += QT_NO_DEBUG_OUTPUT
#DEFINES += QT_NO_WARNING_OUTPUT
Logging can be manipulated by using the Dissent::Utils::Logging class. For the
ConsoleApp this is done by using the Settings file (conf).
To send logging output to standard error use log = "stderr".
To send logging output to standard output use log = "stdout".
To send logging output to a file use log = "filename".
To disable logging use log = "" or exclude log altogether.
\section Links
Dedis -- Research group at Yale producing this software
-- http://dedis.cs.yale.edu/
Dissent -- Overview of the protocol
-- http://dedis.cs.yale.edu/2010/anon/
\section Contact
TBA
\section Workflow
More specifically, these are requirements that should be followed prior to
asking for a code review / pull. A code review / pull in this sense refers to
the submission of a pull request not an academic discussion on design choices.
API expectations:
- Doxygen with comments
- Follows existing patterns in the code or accompanies patches that improve
those interfaces
Internals:
- Minimizes dependencies, if A can work without knowing about B, A should not
know about B, make a C that knows about both to handle interoperation
- Emphasize Qt features while minimizing additional dependencies on external
libraries
- Avoid blocking calls
Commits:
- The comments should be clear and only code chunks relevant to the commit
message should be included
- Merges should be rebased onto the current master and tested working before
merging (git fetch && git rebase)
- Incomplete work should not be committed nor merged
Also note, when you submit code for inclusion in this library, you implicitly
release your personal license to the software to Yale Dedis, see below.
\section License
While the code linked relies on a variety of licenses, which must be respected,
the code contained herein shall use the following license:
Copyright (C) 2011 Yale Dedis
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/