a simplistic secure-scuttlebot client written in Zig
- install Zig (at time of writing, only works with master version of Zig)
- clone repo
git clone https://github.com/stripedpajamas/sbotz.git && cd sbotz - run the example:
zig run src/example.zig. the example tries to connect to local ssb-server and callscreateLogStream
the src/example.zig file shows how the client library could be used.
i don't really know how build.zig files work yet so there isn't one.
i mostly just tried to implement what the protocol guide says.
shs.zigimplements the handshake / session key generation logicbox.ziguses the SHS module to run the handshake and then wraps some reader/writer (e.g. socket)'s read/write methods with boxed versionsrpc.zigwraps some reader/writer with the RPC stuffclient.zigtakes in a reader/writer (socket), uses box to orchestrate the handshake, and exposescallto make ssb calls to the other end (e.g.whoami,createHistoryStream, etc.)keys.ziga small helper library to load up local keys from~/.ssb/secret
GPLv3