Requirements:
- C++11 compiler
- libsodium 1.0.12+
- protobuf 3.3.0+ compiler and c++ runtime library
Steps:
- Install libsodium (1.0.12) and protobuf (3.3.0)
- Compile the OBDI proto file using
protoc --cpp_out=/reference/cpp/ obdi.proto
- Compile the source files using
make
- Make sure you have npm and nodejs installed. Run
npm install
in the node directory - No need to compile the .proto file, the protobuf package does this for you
- Generate the keys, save to their default location
./keygen keys/server
./keygen client.pub client.priv
- Copy the client.pub key to the keys directory, rename it 0000000000000001.pub (that's 15
0
followed by a1
; the default client id is1
) - Run server and client
./server
./client --sk keys/server.pub
node index.js --sk keys/server.pub
- Send messages from the client command line (
help
to show commands)