Skip to main content

Crate saorsa_fec

Crate saorsa_fec 

Source
Expand description

§Saorsa FEC - High-Performance Erasure Coding

This crate provides exceptional performance systematic Reed-Solomon erasure coding with integrated encryption, storage, and content addressing.

§Performance (v0.2.1)

  • 1MB files: 1,193 MB/s (2.4x specification target)
  • 10MB files: 7,545 MB/s (15x specification target)
  • 50MB files: 5,366 MB/s (10.7x specification target)

§Features

  • High-Performance: reed-solomon-simd with SIMD acceleration (AVX2, AVX, SSE4.1, NEON)
  • Systematic Encoding: Original data preserved in first k shares
  • Authenticated Encryption: AES-256-GCM with deterministic nonces
  • Content Addressing: Blake3-based deduplication
  • Storage Pipeline: High-level API with pluggable backends
  • Cross-Platform: Pure Rust with no C dependencies

Re-exports§

pub use ida::IDAConfig;
pub use ida::IDADescriptor;
pub use ida::ShareMetadata;
pub use traits::Fec;
pub use traits::FecBackend;
pub use config::Config;
pub use config::EncryptionMode;
pub use pipeline::Meta;
pub use pipeline::PipelineStats;
pub use pipeline::StoragePipeline;
pub use quantum_crypto::QuantumCryptoEngine;
pub use quantum_crypto::QuantumEncryptionMetadata;
pub use storage::ChunkMeta;
pub use storage::Cid;
pub use storage::FileMetadata;
pub use storage::GcReport;
pub use storage::LocalStorage;
pub use storage::MemoryStorage;
pub use storage::MultiStorage;
pub use storage::MultiStorageStrategy;
pub use storage::NetworkStorage;
pub use storage::NodeEndpoint;
pub use storage::Shard;
pub use storage::ShardHeader;
pub use storage::StorageBackend;
pub use storage::StorageStats;

Modules§

backends
FEC backend implementations
chunk_registry
Chunk registry for managing chunk lifecycle and reference counting
config
Configuration for the encryption and FEC pipeline
crypto
Encryption module providing convergent and standard encryption for Saorsa FEC
fec
FEC Shard Layer with Background Repair
gc
Garbage collection for unreferenced chunks
gf256
GF(256) Galois Field arithmetic for Reed-Solomon coding
ida
Information Dispersal Algorithm (IDA) implementation
metadata
Metadata management for files, chunks, and versions
pipeline
Integrated pipeline for encryption + FEC processing
quantum_crypto
Quantum-safe encryption module using saorsa-pqc
storage
Storage backend abstraction for shard storage
traits
Core traits for FEC operations
types
Common types used throughout the Saorsa FEC system
version
Version management for tracking file history and changes

Structs§

FecCodec
Main FEC encoder/decoder
FecParams
FEC parameters for encoding/decoding

Enums§

FecError
Errors that can occur during FEC operations

Type Aliases§

Result