Code Monkey home page Code Monkey logo

xmpp-db's Introduction

xmpp-db is a disctributed content storage. Data is spread through xmpp-bots which communicate with each other as well as with user itself ( using his primary xmpp-account)

Each user identified by his public key.
Each message posted by the user - is siged with his private key.

Message is a key-value structure, with only mandatory attribute - id, which is hash of the rest of key-value pairs.

User identification message:
id: <hash of all message fields, except this one>
public_key: <user's public key, base64 encoded>

Message signature:
id: <hash of all message fields, except this one>
signature: <actuall signature, base64 encoded>
user: <id of this user's identification message>
signed_message: <id of the message this signature sign>

any message can be signed by different users, this way giving others clue that this piece of data is trusted by many users.

If one user signs Identification Message of another one - it means - one user trust another one. His node will accept all messages signed by this user, and pass then to other nodes.
It is possible to create trust-chains, so that user can track the origin of any message, and tell if he trust it or not.
Only trusted messages are accepted by nodes.

Any node can ask another one some specific data, like: ask message body by presenting it's id

Eg.
Node Monthy received message from his trusted-node Xzar, which is signed with unknown signature.
Monthy cannot accept this message, however he asks Xzar about the Identification message of this user. So Xzar returns identification message, Monthy verifies it with public key. Now when Monthy is assured that message is corrent, he need to know if he can trust that user. So he needs full trust-chain from him to this user. He ask this chain from Xzar, and only opon receiving and verifying it will he store the message in his db, and send it forth to other nodes.


xmpp-db's People

Contributors

bogolt 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.