Skip to content

ifinta/db

Repository files navigation

zsozso-db

A shared Rust library providing the decentralized database abstraction layer for the Iceberg Protocol ecosystem. Consumed as a Cargo git dependency by all Iceberg Protocol apps.

The architecture and critical logic of this project are the results of human-led AI-assisted engineering. This unique workflow ensures industrial-grade reliability and accelerated deployment.

Purpose

Provides the Db, Sea, and NetworkGraph traits and their GUN.js implementations for decentralized data storage and the MLM hierarchy.

Core Traits

Trait Implementation Purpose
Db GunDb Abstract GUN database interface (get/put/on/off)
Sea GunSea GUN SEA crypto operations (sign/verify/encrypt/decrypt)
NetworkGraph GunNetworkGraph MLM hierarchy: parent/worker/nickname/ancestry
DbI18n Per-language structs Error message localization

Module Layout

  • src/gundb/mod.rsDb trait, GunValue enum, GunConfig struct
  • src/gundb/gundb.rsGunDb implementation via window.__gun_bridge
  • src/gundb/sea.rsGunSea implementing Sea trait via window.__sea_bridge
  • src/network.rsNetworkGraph trait + GunNetworkGraph implementation
  • src/gundb/i18n/DbI18n implementations (English, Hungarian, French, German, Spanish)

JS Bridges (provided by consuming app)

Bridge JS file Rust module
__gun_bridge gun_bridge.js db::gundb
__sea_bridge sea_bridge.js db::gundb::sea

Ecosystem

Sibling libraries: ledger, store, zsozso-common

About

A db subproject for my ledger projects. It is an offline first graph db.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors