Crate helia_ipns

Crate helia_ipns 

Source
Expand description

IPNS (InterPlanetary Name System) implementation for Helia in Rust

IPNS provides mutable pointers to content-addressed data.

Re-exports§

pub use record::select_best_record;
pub use record::sign_record;
pub use record::validate_ipns_record;
pub use record::verify_signature;
pub use record::IpnsRecord;
pub use routing::DhtRouter;
pub use routing::GetOptions;
pub use routing::HttpRouter;
pub use routing::IpnsRouting;
pub use routing::LocalRouter;
pub use routing::PutOptions;
pub use routing::RoutingEvent;

Modules§

keys
Key management for IPNS
record
IPNS record types and validation
routing
IPNS routing interface and implementations

Structs§

IpnsInit
Initialization options for IPNS
LocalStore
Local store for IPNS records
PublishOptions
Options for publishing IPNS records
PublishResult
Result of publishing an IPNS record
RecordMetadata
Metadata associated with a stored IPNS record
ResolveOptions
Options for resolving IPNS names
ResolveResult
Result of resolving an IPNS name

Enums§

IpnsError
Errors that can occur during IPNS operations

Constants§

DEFAULT_LIFETIME_MS
Default lifetime for IPNS records (48 hours in milliseconds)
DEFAULT_REPUBLISH_CONCURRENCY
Default republish concurrency (how many records to republish at once)
DEFAULT_REPUBLISH_INTERVAL_MS
Default republish interval (1 hour in milliseconds)
DEFAULT_TTL_NS
Default TTL for IPNS records (5 minutes in nanoseconds)
DHT_EXPIRY_MS
DHT record expiry time (24 hours in milliseconds)
IDENTITY_CODEC
Identity multihash codec
LIBP2P_KEY_CODEC
libp2p-key CID codec
MAX_RECURSIVE_DEPTH
Maximum recursion depth for resolving IPNS records
REPUBLISH_THRESHOLD_MS
Threshold before expiry to trigger republish (4 hours in milliseconds)
SHA256_CODEC
SHA256 multihash codec

Traits§

Ipns
The main IPNS interface

Functions§

ipns
Factory function to create an IPNS instance