import crypto from 'crypto'; export function sha256ripemd160(publicKey: string): Buffer { const hash = crypto.createHash('SHA256').update(Buffer.from(publicKey, 'hex')).digest(); return crypto.createHash('ripemd160').update(hash).digest(); }