Skip to content

Implement interface for fetching and pinning encrypted records from distributed storage #5

@veryCrunchy

Description

@veryCrunchy

Develop a Rust module for fetching and pinning encrypted uptime/downtime records from distributed storage. The interface should:

  • Fetch records by CID or other criteria.
  • Allow pinning/unpinning of records to ensure local/peer retention.
  • Handle peer-to-peer requests for data, serving records to requesting nodes.
  • Support listing pinned records for retention management.
  • Integrate authentication/authorization so only valid requests are served.

Implementation Suggestions:

  • Expand DistributedStorage trait with fetch, pin, unpin, list_pinned methods.
  • Use crates: ipfs-api, rust-libp2p, or rust-ipfs.
  • Consider a caching layer (e.g., with tokio).
  • Ensure encrypted data is only decrypted by owner node.
  • Add tests for pinning, fetching, and peer serving flows.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions