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.
98 lines
2.7 KiB
TypeScript
Executable File
98 lines
2.7 KiB
TypeScript
Executable File
import { Hash, Input, HashXOF } from './utils.js';
|
|
export declare function keccakP(s: Uint32Array, rounds?: number): void;
|
|
export declare class Keccak extends Hash<Keccak> implements HashXOF<Keccak> {
|
|
blockLen: number;
|
|
suffix: number;
|
|
outputLen: number;
|
|
protected enableXOF: boolean;
|
|
protected rounds: number;
|
|
protected state: Uint8Array;
|
|
protected pos: number;
|
|
protected posOut: number;
|
|
protected finished: boolean;
|
|
protected state32: Uint32Array;
|
|
protected destroyed: boolean;
|
|
constructor(blockLen: number, suffix: number, outputLen: number, enableXOF?: boolean, rounds?: number);
|
|
protected keccak(): void;
|
|
update(data: Input): this;
|
|
protected finish(): void;
|
|
protected writeInto(out: Uint8Array): Uint8Array;
|
|
xofInto(out: Uint8Array): Uint8Array;
|
|
xof(bytes: number): Uint8Array;
|
|
digestInto(out: Uint8Array): Uint8Array;
|
|
digest(): Uint8Array;
|
|
destroy(): void;
|
|
_cloneInto(to?: Keccak): Keccak;
|
|
}
|
|
export declare const sha3_224: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
/**
|
|
* SHA3-256 hash function
|
|
* @param message - that would be hashed
|
|
*/
|
|
export declare const sha3_256: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
export declare const sha3_384: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
export declare const sha3_512: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
export declare const keccak_224: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
/**
|
|
* keccak-256 hash function. Different from SHA3-256.
|
|
* @param message - that would be hashed
|
|
*/
|
|
export declare const keccak_256: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
export declare const keccak_384: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
export declare const keccak_512: {
|
|
(msg: Input): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(): Hash<Keccak>;
|
|
};
|
|
export type ShakeOpts = {
|
|
dkLen?: number;
|
|
};
|
|
export declare const shake128: {
|
|
(msg: Input, opts?: ShakeOpts | undefined): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(opts: ShakeOpts): HashXOF<HashXOF<Keccak>>;
|
|
};
|
|
export declare const shake256: {
|
|
(msg: Input, opts?: ShakeOpts | undefined): Uint8Array;
|
|
outputLen: number;
|
|
blockLen: number;
|
|
create(opts: ShakeOpts): HashXOF<HashXOF<Keccak>>;
|
|
};
|