Warp-net/warpnet

Implement Profile Migration Mechanism Between Nodes

開放

#7 建立於 2025年5月20日

 (0 則留言) (0 個反應) (0 位負責人)Go (12 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (137 顆星)
PR 合併指標
 (平均合併 2小時 4分鐘) (30 天內合併 68 個 PR)

描述

We need to implement a secure and user-friendly mechanism that allows a user to migrate their profile (including identity, contacts, settings, and content) from one node to another.

This is essential for:

  • Device changes (e.g. switching computers),
  • Backup and recovery,
  • Node reinstallation or rehosting.

Requirements:

  1. Export:
  • Identity keys (public/private),
  • User data (name, bio, avatar, etc.),
  • Contacts/follows,
  • Posts, messages, settings.
  1. Securely encrypt the export file with a user-defined passphrase.
  2. Import:
  • Validate data integrity and signature,
  • Restore all profile data on the new node,
  • Optionally notify old peers or previous node (if reachable) of migration.

Security:

  • Prevent replay attacks or double imports.
  • Allow verification that a migration was initiated by the real user (e.g. signed intent).

Make user migration possible without manual database copy. This is essential for long-term usability and resilience of the WarpNet ecosystem.

貢獻者指南