Skip to main content

Module core

Module core 

Source
Expand description

Core P2P node: QUIC transport, blob storage, and ring-gated transfers.

The central type is Node, which owns an iroh Endpoint, an iroh-blobs FsStore, and a RingGate. Call Node::start to bring a node online, then use Node::import_file / Node::import_directory to add blobs and Node::download to fetch them from remote peers via a ShareTicket.

Re-exports§

pub use grants::GrantStore;
pub use grants::Privilege;
pub use peers::PeerStore;

Modules§

grants
Privilege-based grant store: which peers may invoke which catalog operations.
peers
Local peer address book: EndpointId → optional nickname.

Structs§

BlobListEntry
Metadata about a locally stored blob, returned by Node::list_blobs.
CatalogEntry
A single entry returned by a BLOB_LIST command.
Node
A ringdrop P2P node.
ShareTicket
An out-of-band transfer ticket that encodes everything a receiver needs.

Enums§

ProgressEvent
Progress event emitted by Node::download_with_progress.