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