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ยง
- Content
Id - Content identifier (CID) - IPFS content hash
- PeerId
- Peer identifier - libp2p peer ID
- ProofId
- Bandwidth proof identifier
- Transaction
Id - Transaction identifier for tracking payments and rewards
- UserId
- User identifier