fairDataSociety / fdp-contracts

Fair Data Protocol smart contracts and its utilities
4 stars 1 forks source link

Proposal: Swarm DB #75

Open molekilla opened 2 years ago

molekilla commented 2 years ago

Swarm DB

A decentralized database running on Swarm with Beeson schemas

Summary

Where we propose a novel way to use Beeson schemas to build a database that is able to query, compute and stored data with schemas or models.

Guide-level explanation

We take inspiration from ParkyDB, FoundationDB and SQLite vfs to design a database that can be used as a key-value storage, and also be queryable with a new or existing query language and enables fast and instant computation with the use of ZK-Snarks proofs.

Beeson DB Layers

Layer 0 - Swarm Feeds

Streaming or sequential feeds are used for storage.

Layer 1 - Query and Index

Layer 2 - Computation

There are two or more types of computation, starting we those most common:

Required technology components

Copyright

Copyright and related rights waived via CC0.

Author

@molekilla (Rogelio Morrell)