Module ids

Module ids 

Source
Expand description

Strongly-typed ID wrappers for better type safety

This module provides newtype wrappers around string IDs to prevent mixing up different types of identifiers (e.g., passing a peer ID where a content ID is expected).

Structsยง

ContentId
Content identifier (CID) - IPFS content hash
PeerId
Peer identifier - libp2p peer ID
ProofId
Bandwidth proof identifier
TransactionId
Transaction identifier for tracking payments and rewards
UserId
User identifier