Skip to content

hallelujah-shih/CovenantSQL

 
 

Repository files navigation

Go Report Card Coverage Build Status License GoDoc follow on Twitter

CovenantSQL is a decentralized, crowdsourcing SQL database on blockchain with features:

  • SQL: most SQL-92 support.
  • Decentralize: decentralize with our consensus algorithm DH-RPC & Kayak.
  • Privacy: access with granted permission and Encryption Pass.
  • Immutable: query history in CovenantSQL is immutable and trackable.

We believe On the next Internet, everyone should have a complete Data Rights

One Line Makes Data on Blockchain

sql.Open("CovenantSQL", dbURI)

CovenantSQL 3 Layer design

  • Layer 1: Global Consensus Layer (the main chain, the middle ring in the architecture diagram):
    • There will only be one main chain throughout the network.
    • Mainly responsible for database Miner and the user’s contract matching, transaction settlement, anti-cheating, shard chain lock hash and other global consensus matters.
  • Layer 2: SQL Consensus Layer (shard chain, rings on both sides):
    • Each database will have its own separate shard chain.
    • Mainly responsible for: the signature, delivery and consistency of the various Transactions of the database. The data history of the permanent traceability is mainly implemented here, and the hash lock is performed in the main chain.
  • Layer 3: Datastore Layer (database engine with SQL-92 support):
    • Each Database has its own independent distributed engine.
    • Mainly responsible for: database storage & encryption, query processing & signature, efficient indexing.

Papers

Our team members published:

that inspired us:

Libs

Network Stack

  • DH-RPC := TLS - Cert + DHT
    • RPC Layer: compatible with golang net/rpc
    • Naming Layer: Consistent Secure DHT
    • Pooling Layer: session pool built on Yamux
    • Multiplex Layer: Yamux by Hashicorp
    • Transport Security Layer: Enhanced TLS
    • Network Layer: TCP or KCP for optional later

Test Tools

Connector

CovenantSQL is Still Under Construction(U know..). Test net will be released till Oct.

Watch us or follow on Twitter for updates.

TestNet

Contact

About

a SQL Database with Blockchain features

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • Other 0.5%