-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface-example.tex
More file actions
65 lines (63 loc) · 1.28 KB
/
interface-example.tex
File metadata and controls
65 lines (63 loc) · 1.28 KB
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
\begin{landscape}
\section{Node Implementation Examples}
\subsection{RESTful Interface}
\subsubsection*{Information Page - /}
\begin{lstlisting}
{
"address":"of464327gfl63fsh.onion",
"proofOfWorkAlgorithms":[
{
"name":"SHA1-LIN-64K",
"constant":10000,
"coefficient":15
}
],
"maxPacketSize":1048576
}
\end{lstlisting}
\subsubsection*{Polling Page - /poll/\textit{x}}
\begin{lstlisting}
{
"validAt":1429557271746,
"broadcastHashes":[
"43D860FC9356323DC0BEFDCA06D2B2C3050BC6D4",
"EE51C458D25652686991588BC678811F828C96BC"
],
"dataHashes":[
]
}
\end{lstlisting}
\subsubsection*{Nodes Page - /nodes}
\begin{lstlisting}
{
"knownActiveNodes":[
"storcfvsito5init.onion"
]
}
\end{lstlisting}
\subsubsection*{Request Page - /data/\textit{y}}
\begin{lstlisting}
{
"pow":{
"name":"SHA1-LIN-64K",
"hash":{
"hashAlgorithm":"SHA1",
"hash":"s+0TIV2a/tOAV9YKY+btF8xm0jc\u003d"
},
"proof":"+mUc+ABh9GU\u003d",
"validFrom":1429269441885,
"validTo":1429874241885
},
"data":{
"readyData":"vImdg5fsBv..."
}
}
\end{lstlisting}
\subsection{\textit{stor.cfg} Configuration File}
\begin{lstlisting}
# The port to connect to Tor's controller
Port 9100
# The password to auth with Tor's controller
Password myPassword
\end{lstlisting}
\end{landscape}