Skip to main content

Module segment

Module segment 

Source
Expand description

Direct blob-store segment access for peers.

Segments never travel over gRPC: peers with storage credentials read published index segments straight from the blob store through a local read-through cache (see docs/design/protocol.md). Blobs are immutable and content-addressed, so cache entries never invalidate.

Structs§

CachedPeerStorage
Storage decorator that caches blob reads while always delegating roots.
DiscoveredPeerStorage
Read-only peer adapter for storage discovered through a transactor.
EncryptedPeerStorage
Storage decorator that decrypts blobs for a peer reading an encrypted database directly.
SegmentSource
Read-through segment source over a blob/root store.

Enums§

SnapshotError
Failure while bootstrapping a peer from published storage.

Traits§

PeerStorage
Read-only storage operations needed by a storage-aware peer.

Functions§

load_current_snapshot
Loads the newest published current-state snapshot for db.
open_encrypted_storage
Resolves the storage keys db needs and wraps storage when it is encrypted.