synor/crates/synor-storage/Cargo.toml
Gulshan Yadav f5bdef2691 feat(storage): add Synor Storage L2 decentralized storage layer
Complete implementation of the Synor Storage Layer (L2) for decentralized
content storage. This enables permanent, censorship-resistant storage of
any file type including Next.js apps, Flutter apps, and arbitrary data.

Core modules:
- cid.rs: Content addressing with Blake3/SHA256 hashing (synor1... format)
- chunker.rs: File chunking for parallel upload/download (1MB chunks)
- erasure.rs: Reed-Solomon erasure coding (10+4 shards) for fault tolerance
- proof.rs: Storage proofs with Merkle trees for verification
- deal.rs: Storage deals and market economics (3 pricing tiers)

Infrastructure:
- node/: Storage node service with P2P networking and local storage
- gateway/: HTTP gateway for browser access with LRU caching
- Docker deployment with nginx load balancer

Architecture:
- Operates as L2 alongside Synor L1 blockchain
- Storage proofs verified on-chain for reward distribution
- Can lose 4 shards per chunk and still recover data
- Gateway URLs: /synor1<cid> for content access

All 28 unit tests passing.
2026-01-10 11:42:03 +05:30

53 lines
1.1 KiB
TOML

[package]
name = "synor-storage"
version = "0.1.0"
edition = "2021"
description = "Decentralized storage layer for the Synor blockchain"
license = "MIT"
authors = ["Synor Team"]
repository = "https://github.com/synor/synor"
[dependencies]
# Core
thiserror = "1"
serde = { version = "1", features = ["derive"] }
serde_bytes = "0.11"
serde_json = "1"
tokio = { version = "1", features = ["full"] }
async-trait = "0.1"
bytes = "1"
# Cryptography
blake3 = "1"
sha2 = "0.10"
ed25519-dalek = "2"
# Encoding
bs58 = "0.5"
hex = "0.4"
base64 = "0.22"
# Erasure coding
reed-solomon-erasure = "6"
# Storage
rocksdb = { version = "0.22", optional = true }
# Networking (for storage nodes)
libp2p = { version = "0.54", features = ["tcp", "quic", "noise", "yamux", "kad", "identify", "gossipsub"], optional = true }
# Local workspace crates
synor-types = { path = "../synor-types" }
synor-crypto = { path = "../synor-crypto" }
[features]
default = []
node = ["libp2p", "rocksdb"]
[[bin]]
name = "synor-storage-node"
path = "src/bin/storage-node.rs"
[dev-dependencies]
tempfile = "3"
rand = "0.8"