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.
38 lines
959 B
JavaScript
Executable File
38 lines
959 B
JavaScript
Executable File
import { ripemd160 as noble_ripemd160 } from "@noble/hashes/ripemd160";
|
|
import { getBytes, hexlify } from "../utils/index.js";
|
|
let locked = false;
|
|
const _ripemd160 = function (data) {
|
|
return noble_ripemd160(data);
|
|
};
|
|
let __ripemd160 = _ripemd160;
|
|
/**
|
|
* Compute the cryptographic RIPEMD-160 hash of %%data%%.
|
|
*
|
|
* @_docloc: api/crypto:Hash Functions
|
|
* @returns DataHexstring
|
|
*
|
|
* @example:
|
|
* ripemd160("0x")
|
|
* //_result:
|
|
*
|
|
* ripemd160("0x1337")
|
|
* //_result:
|
|
*
|
|
* ripemd160(new Uint8Array([ 0x13, 0x37 ]))
|
|
* //_result:
|
|
*
|
|
*/
|
|
export function ripemd160(_data) {
|
|
const data = getBytes(_data, "data");
|
|
return hexlify(__ripemd160(data));
|
|
}
|
|
ripemd160._ = _ripemd160;
|
|
ripemd160.lock = function () { locked = true; };
|
|
ripemd160.register = function (func) {
|
|
if (locked) {
|
|
throw new TypeError("ripemd160 is locked");
|
|
}
|
|
__ripemd160 = func;
|
|
};
|
|
Object.freeze(ripemd160);
|
|
//# sourceMappingURL=ripemd160.js.map
|