Crate bp_core

Crate bp_core 

Source
Expand description

§bp-core — BillPouch core library

Provides all types, networking, daemon logic and control protocol for BillPouch — a P2P social distributed filesystem.

  ┌──────────────────────────────────────────────────────┐
  │                    BillPouch Network                  │
  │                                                      │
  │  ┌────────┐     ┌────────┐     ┌────────┐           │
  │  │ Pouch  │◄────│  Post  │────►│  Bill  │           │
  │  │(storage│     │(relay) │     │(I/O)   │           │
  │  └────────┘     └────────┘     └────────┘           │
  │          gossipsub + Kademlia DHT                     │
  └──────────────────────────────────────────────────────┘

§Modules

  • identity — Ed25519 keypair management (login/logout)
  • service — Service types (bill / pouch / post) and registry
  • network — libp2p swarm, gossipsub, Kademlia DHT, mDNS
  • control — Unix socket control protocol (CLI ↔ daemon)
  • daemon — Main daemon task orchestrating the above
  • config — Configuration file paths
  • error — Unified error type

Re-exports§

pub use error::BpError;
pub use error::BpResult;

Modules§

coding
Erasure coding layer — Random Linear Network Coding (RLNC) over GF(2⁸).
config
XDG-compliant configuration paths for BillPouch.
control
IPC control layer between the CLI and the daemon.
daemon
BillPouch daemon entry point.
error
Unified error type for bp-core.
identity
User identity: Ed25519 keypair persisted to disk.
invite
Signed + password-encrypted invite tokens for network access control.
network
P2P networking layer built on libp2p.
service
Service definitions for BillPouch.
storage
Local storage management for a Pouch service instance.