Development Artifact Cleanup: ✅ BROTHER_NODE REORGANIZATION: Moved development test node to appropriate location - dev/test-nodes/brother_node/: Moved from root directory for better organization - Contains development configuration, test logs, and test chain data - No impact on production systems - purely development/testing artifact ✅ DEVELOPMENT ARTIFACTS IDENTIFIED: - Chain ID: aitbc-brother-chain (test/development chain) - Ports: 8010 (P2P) and 8011 (RPC) - different from production - Environment: .env file with test configuration - Logs: rpc.log and node.log from development testing session (March 15, 2026) ✅ ROOT DIRECTORY CLEANUP: Removed development clutter from production directory - brother_node/ moved to dev/test-nodes/brother_node/ - Root directory now contains only production-ready components - Development artifacts properly organized in dev/ subdirectory DIRECTORY STRUCTURE IMPROVEMENT: 📁 dev/test-nodes/: Development and testing node configurations 🏗️ Root Directory: Clean production structure with only essential components 🧪 Development Isolation: Test environments separated from production BENEFITS: ✅ Clean Production Directory: No development artifacts in root ✅ Better Organization: Development nodes grouped in dev/ subdirectory ✅ Clear Separation: Production vs development environments clearly distinguished ✅ Maintainability: Easier to identify and manage development components RESULT: Successfully moved brother_node development artifact to dev/test-nodes/ subdirectory, cleaning up the root directory while preserving development testing environment for future use.
27 lines
1.2 KiB
TypeScript
Executable File
27 lines
1.2 KiB
TypeScript
Executable File
import { CHash, Input } from './utils.js';
|
|
/**
|
|
* HKDF-Extract(IKM, salt) -> PRK
|
|
* Arguments position differs from spec (IKM is first one, since it is not optional)
|
|
* @param hash
|
|
* @param ikm
|
|
* @param salt
|
|
* @returns
|
|
*/
|
|
export declare function extract(hash: CHash, ikm: Input, salt?: Input): Uint8Array;
|
|
/**
|
|
* HKDF-expand from the spec.
|
|
* @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step)
|
|
* @param info - optional context and application specific information (can be a zero-length string)
|
|
* @param length - length of output keying material in octets
|
|
*/
|
|
export declare function expand(hash: CHash, prk: Input, info?: Input, length?: number): Uint8Array;
|
|
/**
|
|
* HKDF (RFC 5869): extract + expand in one step.
|
|
* @param hash - hash function that would be used (e.g. sha256)
|
|
* @param ikm - input keying material, the initial key
|
|
* @param salt - optional salt value (a non-secret random value)
|
|
* @param info - optional context and application specific information
|
|
* @param length - length of output keying material in octets
|
|
*/
|
|
export declare const hkdf: (hash: CHash, ikm: Input, salt: Input | undefined, info: Input | undefined, length: number) => Uint8Array;
|