mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-27 08:45:07 +00:00
- Add Pi-Key WASM cryptographic module with mathematical constant sizing - Pi-sized (314 bits/40 bytes) identity keys - Euler-sized (271 bits/34 bytes) session keys - Phi-sized (161 bits/21 bytes) genesis keys - Ed25519 signing + AES-256-GCM encryption - Add comprehensive TypeScript lifecycle simulation (sim/) - 6 source files, 1,420 lines - Validates all 4 phases: Genesis → Growth → Maturation → Independence - Economic sustainability and phase transition testing - Performance optimizations - FxHashMap for 30-50% faster lookups in evolution/mod.rs - VecDeque for O(1) front removal - Batched Q-learning updates in security/mod.rs - Fixed borrow checker error in process_batch_updates() - Add benchmarks and documentation - BENCHMARKS.md with performance metrics - PERFORMANCE_OPTIMIZATIONS.md with details - docs/FINAL_REPORT.md comprehensive summary 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
No EOL
1,001 B
TypeScript
40 lines
No EOL
1,001 B
TypeScript
/**
|
|
* Phase Transition Logic
|
|
* Manages lifecycle phases and transition conditions
|
|
*/
|
|
import { Network } from './network.js';
|
|
import { MetricsCollector } from './metrics.js';
|
|
export interface PhaseTransitionCondition {
|
|
minNodes: number;
|
|
maxNodes: number;
|
|
requiredDuration?: number;
|
|
customCheck?: (network: Network) => boolean;
|
|
}
|
|
export declare class PhaseManager {
|
|
private network;
|
|
private metrics;
|
|
private conditions;
|
|
private lastPhase;
|
|
constructor(network: Network, metrics: MetricsCollector);
|
|
/**
|
|
* Check if network should transition to next phase
|
|
*/
|
|
checkTransition(): boolean;
|
|
/**
|
|
* Handle phase transition
|
|
*/
|
|
private onTransition;
|
|
/**
|
|
* Log phase-specific information
|
|
*/
|
|
private logPhaseInfo;
|
|
/**
|
|
* Get phase progress (0-1)
|
|
*/
|
|
getPhaseProgress(): number;
|
|
/**
|
|
* Get estimated ticks to next phase
|
|
*/
|
|
getTicksToNextPhase(): number;
|
|
}
|
|
//# sourceMappingURL=phases.d.ts.map
|