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§
- Ipns
Init - Initialization options for IPNS
- Local
Store - Local store for IPNS records
- Publish
Options - Options for publishing IPNS records
- Publish
Result - Result of publishing an IPNS record
- Record
Metadata - Metadata associated with a stored IPNS record
- Resolve
Options - Options for resolving IPNS names
- Resolve
Result - Result of resolving an IPNS name
Enums§
- Ipns
Error - 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