GithubHelp home page GithubHelp logo

stripedpajamas / sbotz Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 83 KB

a simple (functional) scuttlebutt client in zig

License: GNU General Public License v3.0

Zig 100.00%
scuttlebutt secure-scuttlebutt ssb ziglang

sbotz's Introduction

sbotz

a simplistic secure-scuttlebot client written in Zig

use

  1. install Zig (at time of writing, only works with master version of Zig)
  2. clone repo git clone https://github.com/stripedpajamas/sbotz.git && cd sbotz
  3. run the example: zig run src/example.zig. the example tries to connect to local ssb-server and calls createLogStream

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.

what is it

i mostly just tried to implement what the protocol guide says.

  • shs.zig implements the handshake / session key generation logic
  • box.zig uses the SHS module to run the handshake and then wraps some reader/writer (e.g. socket)'s read/write methods with boxed versions
  • rpc.zig wraps some reader/writer with the RPC stuff
  • client.zig takes in a reader/writer (socket), uses box to orchestrate the handshake, and exposes call to make ssb calls to the other end (e.g. whoami, createHistoryStream, etc.)
  • keys.zig a small helper library to load up local keys from ~/.ssb/secret

license

GPLv3

sbotz's People

Contributors

stripedpajamas avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.