Esperanto translation of bogbook for use at interskri.be
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Ev Bogue 508e4c53a9
rip out beacons
3 years ago
css put pms on the right 3 years ago
fonts initial commit 4 years ago
lib add ed2curve to lib 4 years ago
.gitignore initial commit 4 years ago
LICENSE add MIT license 4 years ago
README.md add a new subtitle 4 years ago
app.js rip out beacons 3 years ago
bog.js refactor gossip v 1.8.0 3 years ago
composer.js fix some glitches with the edit function 3 years ago
gossip.js rip out beacons 3 years ago
identify.js add images to all posts 3 years ago
index.html rip out beacons 3 years ago
package-lock.json rip out beacons 3 years ago
package.json rip out beacons 3 years ago
render.js rip out beacons 3 years ago
server.js rip out beacons 3 years ago
settings.js fix pubs bug, and reqs to server on profile page were way too fast 3 years ago
views.js send random number of posts between 1 and 50, adjust client request speed 3 years ago

README.md

bogbook

secure blockchain logging (blogging)

or

a social network that works

To avoid confusion we're dropping the 'l' and calling them 'bogs'.

WARNING This is very new and experimental software, not intended for use in production. Pull-requests are welcome, and if you find anything wrong feel free to report it in public.

Try it online at http://bogbook.com/ !

but nothing will load into the browser unless you request a public key, so try mine: http://bogbook.com/#@Q++V5BbvWIg8B+TqtC9ZKFhetruuw+nOgxEqfjlOZI0=

What?

bogbook is a distributed social networking application using TweetNaCl.js to publish signed append-only logs to your browser's IndexedDB using localForage.

The bogs are then gossiped between your bog client and bog 'pub' servers using websockets. You're responsible for syncing your messages between different bog 'pub' servers. Bog 'pubs' themselves don't talk to each other, instead they only talk to clients.

When you click on a public key, your client will connect to your current pub to see if there are any new messages from the public key that you've clicked on.

But what about ssb?!

This is not secure-scuttlebutt. But it is influenced by my 3+ years working on the project, and there are many similarities between bogbook and secure-scuttlebutt.

The biggest difference is that all of the bogging happens in the client, making it a browser-first bogging network. Last I checked, ssb isn't leaving the server.

Right now we have no private bogging, and no blob distribution (besides profile photos, which are saved to your log in base64).

how to

bogbook servers

git clone git@github.com/bogbook/bogbook.git
cd bog
npm install
npm start

Bogbook should launch in your browser. If it doesn't, navigate to http://localhost:8080/

crypto

All of the bogbook cryptography is produced using TweetNaCl.js which is a port of TweetNaCl, a cryptography library written in 100 Tweets.

bogbook generates an ed25519 public/private keypair on load using nacl.sign.keyPair(), which is then stored in localForage at localStorage['id'] as a JSON object with the public/private keypairs base64-encoded.

When you post a new message, bogbook will

  • iterate up the message sequence number
  • hash the contents of the previous message using sha512
  • generate a hash of the contents of the current message using sha512
  • generate a signature of the contents of the current message with your ed25519 private key

Then you publish a message containing

{
  "author": <your publickey>,
  "key": <sha512 hash of content>,
  "signature": <signature of content>
}

To view the message, you use nacl.sign.open passing Uint8Arrays of the signature and publickey as paramaters.


Please note: All logs are append-only, public, and plain text at the current time. While you can moderate your local database and pub servers by deleting logs associated with public keys, it can be difficult to unsay something, so don't drink and bog, people.

Some browsers clear stored data upon exit, others will clear it if you wipe your browser cache. Remember to save your public/private keypair somewhere, because no one can regenerate it for you.

contributing

Please report all bugs at http://bogbook.com/


MIT