@zenithcore/dcloud
Version:
Decentralized cloud infrastructure for ZenithKernel with IPFS, enterprise storage, and distributed websites
10 lines (8 loc) • 322 B
text/typescript
/**
* Utilities for ZenithCore DCloud (STUB)
*/
export const DCloudUtils = {
generateId: (): string => `id-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
formatBytes: (bytes: number): string => `${(bytes / 1024).toFixed(2)} KB`,
validateHash: (hash: string): boolean => /^[a-zA-Z0-9]+$/.test(hash)
};