-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Parent Milestone
Part of: #51 (Step 3: Runtime Integration)
Goal
Update zhtp node initialization to use ZhtpIdentity::new_unified() for identity creation.
Why
Ensures runtime uses the new unified identity system with deterministic NodeId derivation.
Dependencies
- Requires: [ALPHA MILESTONE] Step 2: Network Integration #50 (Step 2: Network Integration) complete
Tasks
- Update node startup code to call ZhtpIdentity::new_unified()
- Remove old identity creation methods
- Pass identity type, age, jurisdiction, device name to new_unified()
- Handle seed generation (new nodes) vs seed loading (existing nodes)
- Add error handling for identity creation failures
- Add logging for identity initialization
Files to Modify
zhtp/src/runtime/mod.rs- Main runtime initializationzhtp/src/runtime/did_startup.rs- Identity startup logic
Acceptance Criteria
- Node initialization uses ZhtpIdentity::new_unified()
- Old identity creation methods removed
- Error handling in place
-
cargo build --package zhtpsucceeds - Node starts successfully with new identity system
Priority
P0 - CRITICAL - Required for Step 3 completion
Metadata
Metadata
Assignees
Labels
No labels