Skip to content

[ALPHA-STEP3] Update node initialization to use ZhtpIdentity::new_unified() #63

@umwelt

Description

@umwelt

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

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 initialization
  • zhtp/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 zhtp succeeds
  • Node starts successfully with new identity system

Priority

P0 - CRITICAL - Required for Step 3 completion

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions